package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev

# README

github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalertsstatus Documentation

The metricalertsstatus SDK allows for interaction with the Azure Resource Manager Service insights (API Version 2018-03-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/insights/2018-03-01/metricalertsstatus"

Client Initialization

client := metricalertsstatus.NewMetricAlertsStatusClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MetricAlertsStatusClient.List

ctx := context.TODO()
id := metricalertsstatus.NewMetricAlertID("12345678-1234-9876-4563-123456789012", "example-resource-group", "metricAlertValue")

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

Example Usage: MetricAlertsStatusClient.ListByName

ctx := context.TODO()
id := metricalertsstatus.NewStatusID("12345678-1234-9876-4563-123456789012", "example-resource-group", "metricAlertValue", "statusValue")

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

# Functions

NewMetricAlertID returns a new MetricAlertId struct.
No description provided by the author
NewStatusID returns a new StatusId struct.
ParseMetricAlertID parses 'input' into a MetricAlertId.
ParseMetricAlertIDInsensitively parses 'input' case-insensitively into a MetricAlertId note: this method should only be used for API response data and not user input.
ParseStatusID parses 'input' into a StatusId.
ParseStatusIDInsensitively parses 'input' case-insensitively into a StatusId note: this method should only be used for API response data and not user input.
ValidateMetricAlertID checks that 'input' can be parsed as a Metric Alert ID.
ValidateStatusID checks that 'input' can be parsed as a Status ID.

# Structs

No description provided by the author
No description provided by the author
MetricAlertId is a struct representing the Resource ID for a Metric Alert.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StatusId is a struct representing the Resource ID for a Status.