monitoringconfig

package
v0.20230210.1121632 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2023 License: MPL-2.0 Imports: 9 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2020-12-01/monitoringconfig Documentation

The monitoringconfig SDK allows for interaction with the Azure Resource Manager Service databoxedge (API Version 2020-12-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/databoxedge/2020-12-01/monitoringconfig"

Client Initialization

client := monitoringconfig.NewMonitoringConfigClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MonitoringConfigClient.CreateOrUpdate

ctx := context.TODO()
id := monitoringconfig.NewRoleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue", "roleValue")

payload := monitoringconfig.MonitoringMetricConfiguration{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: MonitoringConfigClient.Delete

ctx := context.TODO()
id := monitoringconfig.NewRoleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue", "roleValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: MonitoringConfigClient.Get

ctx := context.TODO()
id := monitoringconfig.NewRoleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue", "roleValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: MonitoringConfigClient.List

ctx := context.TODO()
id := monitoringconfig.NewRoleID("12345678-1234-9876-4563-123456789012", "example-resource-group", "dataBoxEdgeDeviceValue", "roleValue")

// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateRoleID

func ValidateRoleID(input interface{}, key string) (warnings []string, errors []error)

ValidateRoleID checks that 'input' can be parsed as a Role ID

Types

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *MonitoringMetricConfiguration
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []MonitoringMetricConfiguration
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]MonitoringMetricConfiguration
	// contains filtered or unexported fields
}

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type MetricConfiguration

type MetricConfiguration struct {
	CounterSets     []MetricCounterSet `json:"counterSets"`
	MdmAccount      *string            `json:"mdmAccount,omitempty"`
	MetricNameSpace *string            `json:"metricNameSpace,omitempty"`
	ResourceId      string             `json:"resourceId"`
}

type MetricCounter

type MetricCounter struct {
	AdditionalDimensions *[]MetricDimension `json:"additionalDimensions,omitempty"`
	DimensionFilter      *[]MetricDimension `json:"dimensionFilter,omitempty"`
	Instance             *string            `json:"instance,omitempty"`
	Name                 string             `json:"name"`
}

type MetricCounterSet

type MetricCounterSet struct {
	Counters []MetricCounter `json:"counters"`
}

type MetricDimension

type MetricDimension struct {
	SourceName string `json:"sourceName"`
	SourceType string `json:"sourceType"`
}

type MonitoringConfigClient

type MonitoringConfigClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewMonitoringConfigClientWithBaseURI

func NewMonitoringConfigClientWithBaseURI(endpoint string) MonitoringConfigClient

func (MonitoringConfigClient) CreateOrUpdate

CreateOrUpdate ...

func (MonitoringConfigClient) CreateOrUpdateThenPoll

func (c MonitoringConfigClient) CreateOrUpdateThenPoll(ctx context.Context, id RoleId, input MonitoringMetricConfiguration) error

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (MonitoringConfigClient) Delete

Delete ...

func (MonitoringConfigClient) DeleteThenPoll

func (c MonitoringConfigClient) DeleteThenPoll(ctx context.Context, id RoleId) error

DeleteThenPoll performs Delete then polls until it's completed

func (MonitoringConfigClient) Get

Get ...

func (MonitoringConfigClient) List

List ...

func (MonitoringConfigClient) ListComplete

ListComplete retrieves all of the results into a single object

func (MonitoringConfigClient) ListCompleteMatchingPredicate

func (c MonitoringConfigClient) ListCompleteMatchingPredicate(ctx context.Context, id RoleId, predicate MonitoringMetricConfigurationOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type MonitoringMetricConfiguration

type MonitoringMetricConfiguration struct {
	Id         *string                                 `json:"id,omitempty"`
	Name       *string                                 `json:"name,omitempty"`
	Properties MonitoringMetricConfigurationProperties `json:"properties"`
	Type       *string                                 `json:"type,omitempty"`
}

type MonitoringMetricConfigurationOperationPredicate

type MonitoringMetricConfigurationOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (MonitoringMetricConfigurationOperationPredicate) Matches

type MonitoringMetricConfigurationProperties

type MonitoringMetricConfigurationProperties struct {
	MetricConfigurations []MetricConfiguration `json:"metricConfigurations"`
}

type RoleId

type RoleId struct {
	SubscriptionId        string
	ResourceGroupName     string
	DataBoxEdgeDeviceName string
	RoleName              string
}

RoleId is a struct representing the Resource ID for a Role

func NewRoleID

func NewRoleID(subscriptionId string, resourceGroupName string, dataBoxEdgeDeviceName string, roleName string) RoleId

NewRoleID returns a new RoleId struct

func ParseRoleID

func ParseRoleID(input string) (*RoleId, error)

ParseRoleID parses 'input' into a RoleId

func ParseRoleIDInsensitively

func ParseRoleIDInsensitively(input string) (*RoleId, error)

ParseRoleIDInsensitively parses 'input' case-insensitively into a RoleId note: this method should only be used for API response data and not user input

func (RoleId) ID

func (id RoleId) ID() string

ID returns the formatted Role ID

func (RoleId) Segments

func (id RoleId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Role ID

func (RoleId) String

func (id RoleId) String() string

String returns a human-readable description of this Role ID

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL