Documentation ¶
Index ¶
- func PossibleValuesForAggregationTypeEnum() []string
- func PossibleValuesForCriterionType() []string
- func PossibleValuesForDynamicThresholdOperator() []string
- func PossibleValuesForDynamicThresholdSensitivity() []string
- func PossibleValuesForOdatatype() []string
- func PossibleValuesForOperator() []string
- func ValidateMetricAlertID(input interface{}, key string) (warnings []string, errors []error)
- type AggregationTypeEnum
- type CreateOrUpdateOperationResponse
- type CriterionType
- type DeleteOperationResponse
- type DynamicMetricCriteria
- type DynamicThresholdFailingPeriods
- type DynamicThresholdOperator
- type DynamicThresholdSensitivity
- type GetOperationResponse
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionOperationResponse
- type MetricAlertAction
- type MetricAlertCriteria
- type MetricAlertId
- type MetricAlertMultipleResourceMultipleMetricCriteria
- type MetricAlertProperties
- type MetricAlertPropertiesPatch
- type MetricAlertResource
- type MetricAlertResourceCollection
- type MetricAlertResourcePatch
- type MetricAlertSingleResourceMultipleMetricCriteria
- type MetricAlertsClient
- func (c MetricAlertsClient) CreateOrUpdate(ctx context.Context, id MetricAlertId, input MetricAlertResource) (result CreateOrUpdateOperationResponse, err error)
- func (c MetricAlertsClient) Delete(ctx context.Context, id MetricAlertId) (result DeleteOperationResponse, err error)
- func (c MetricAlertsClient) Get(ctx context.Context, id MetricAlertId) (result GetOperationResponse, err error)
- func (c MetricAlertsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c MetricAlertsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
- func (c MetricAlertsClient) Update(ctx context.Context, id MetricAlertId, input MetricAlertResourcePatch) (result UpdateOperationResponse, err error)
- type MetricCriteria
- type MetricDimension
- type MultiMetricCriteria
- type Odatatype
- type Operator
- type RawMetricAlertCriteriaImpl
- type RawMultiMetricCriteriaImpl
- type UpdateOperationResponse
- type WebtestLocationAvailabilityCriteria
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAggregationTypeEnum ¶
func PossibleValuesForAggregationTypeEnum() []string
func PossibleValuesForCriterionType ¶
func PossibleValuesForCriterionType() []string
func PossibleValuesForDynamicThresholdOperator ¶
func PossibleValuesForDynamicThresholdOperator() []string
func PossibleValuesForDynamicThresholdSensitivity ¶
func PossibleValuesForDynamicThresholdSensitivity() []string
func PossibleValuesForOdatatype ¶
func PossibleValuesForOdatatype() []string
func PossibleValuesForOperator ¶
func PossibleValuesForOperator() []string
func ValidateMetricAlertID ¶
ValidateMetricAlertID checks that 'input' can be parsed as a Metric Alert ID
Types ¶
type AggregationTypeEnum ¶
type AggregationTypeEnum string
const ( AggregationTypeEnumAverage AggregationTypeEnum = "Average" AggregationTypeEnumCount AggregationTypeEnum = "Count" AggregationTypeEnumMaximum AggregationTypeEnum = "Maximum" AggregationTypeEnumMinimum AggregationTypeEnum = "Minimum" AggregationTypeEnumTotal AggregationTypeEnum = "Total" )
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *MetricAlertResource }
type CriterionType ¶
type CriterionType string
const ( CriterionTypeDynamicThresholdCriterion CriterionType = "DynamicThresholdCriterion" CriterionTypeStaticThresholdCriterion CriterionType = "StaticThresholdCriterion" )
type DeleteOperationResponse ¶
type DynamicMetricCriteria ¶
type DynamicMetricCriteria struct { AlertSensitivity DynamicThresholdSensitivity `json:"alertSensitivity"` FailingPeriods DynamicThresholdFailingPeriods `json:"failingPeriods"` IgnoreDataBefore *string `json:"ignoreDataBefore,omitempty"` Operator DynamicThresholdOperator `json:"operator"` // Fields inherited from MultiMetricCriteria Dimensions *[]MetricDimension `json:"dimensions,omitempty"` MetricName string `json:"metricName"` MetricNamespace *string `json:"metricNamespace,omitempty"` Name string `json:"name"` SkipMetricValidation *bool `json:"skipMetricValidation,omitempty"` TimeAggregation AggregationTypeEnum `json:"timeAggregation"` }
func (DynamicMetricCriteria) MarshalJSON ¶
func (s DynamicMetricCriteria) MarshalJSON() ([]byte, error)
type DynamicThresholdOperator ¶
type DynamicThresholdOperator string
const ( DynamicThresholdOperatorGreaterOrLessThan DynamicThresholdOperator = "GreaterOrLessThan" DynamicThresholdOperatorGreaterThan DynamicThresholdOperator = "GreaterThan" DynamicThresholdOperatorLessThan DynamicThresholdOperator = "LessThan" )
type DynamicThresholdSensitivity ¶
type DynamicThresholdSensitivity string
const ( DynamicThresholdSensitivityHigh DynamicThresholdSensitivity = "High" DynamicThresholdSensitivityLow DynamicThresholdSensitivity = "Low" DynamicThresholdSensitivityMedium DynamicThresholdSensitivity = "Medium" )
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *MetricAlertResource }
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response Model *MetricAlertResourceCollection }
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response Model *MetricAlertResourceCollection }
type MetricAlertAction ¶
type MetricAlertCriteria ¶
type MetricAlertCriteria interface { }
type MetricAlertId ¶
MetricAlertId is a struct representing the Resource ID for a Metric Alert
func NewMetricAlertID ¶
func NewMetricAlertID(subscriptionId string, resourceGroupName string, metricAlertName string) MetricAlertId
NewMetricAlertID returns a new MetricAlertId struct
func ParseMetricAlertID ¶
func ParseMetricAlertID(input string) (*MetricAlertId, error)
ParseMetricAlertID parses 'input' into a MetricAlertId
func ParseMetricAlertIDInsensitively ¶
func ParseMetricAlertIDInsensitively(input string) (*MetricAlertId, error)
ParseMetricAlertIDInsensitively parses 'input' case-insensitively into a MetricAlertId note: this method should only be used for API response data and not user input
func (*MetricAlertId) FromParseResult ¶
func (id *MetricAlertId) FromParseResult(input resourceids.ParseResult) error
func (MetricAlertId) ID ¶
func (id MetricAlertId) ID() string
ID returns the formatted Metric Alert ID
func (MetricAlertId) Segments ¶
func (id MetricAlertId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Metric Alert ID
func (MetricAlertId) String ¶
func (id MetricAlertId) String() string
String returns a human-readable description of this Metric Alert ID
type MetricAlertMultipleResourceMultipleMetricCriteria ¶
type MetricAlertMultipleResourceMultipleMetricCriteria struct {
AllOf *[]MultiMetricCriteria `json:"allOf,omitempty"`
}
func (MetricAlertMultipleResourceMultipleMetricCriteria) MarshalJSON ¶
func (s MetricAlertMultipleResourceMultipleMetricCriteria) MarshalJSON() ([]byte, error)
func (*MetricAlertMultipleResourceMultipleMetricCriteria) UnmarshalJSON ¶
func (s *MetricAlertMultipleResourceMultipleMetricCriteria) UnmarshalJSON(bytes []byte) error
type MetricAlertProperties ¶
type MetricAlertProperties struct { Actions *[]MetricAlertAction `json:"actions,omitempty"` AutoMitigate *bool `json:"autoMitigate,omitempty"` Criteria MetricAlertCriteria `json:"criteria"` Description *string `json:"description,omitempty"` Enabled bool `json:"enabled"` EvaluationFrequency string `json:"evaluationFrequency"` IsMigrated *bool `json:"isMigrated,omitempty"` LastUpdatedTime *string `json:"lastUpdatedTime,omitempty"` Scopes []string `json:"scopes"` Severity int64 `json:"severity"` TargetResourceRegion *string `json:"targetResourceRegion,omitempty"` TargetResourceType *string `json:"targetResourceType,omitempty"` WindowSize string `json:"windowSize"` }
func (*MetricAlertProperties) GetLastUpdatedTimeAsTime ¶
func (o *MetricAlertProperties) GetLastUpdatedTimeAsTime() (*time.Time, error)
func (*MetricAlertProperties) SetLastUpdatedTimeAsTime ¶
func (o *MetricAlertProperties) SetLastUpdatedTimeAsTime(input time.Time)
func (*MetricAlertProperties) UnmarshalJSON ¶
func (s *MetricAlertProperties) UnmarshalJSON(bytes []byte) error
type MetricAlertPropertiesPatch ¶
type MetricAlertPropertiesPatch struct { Actions *[]MetricAlertAction `json:"actions,omitempty"` AutoMitigate *bool `json:"autoMitigate,omitempty"` Criteria MetricAlertCriteria `json:"criteria"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty"` EvaluationFrequency *string `json:"evaluationFrequency,omitempty"` IsMigrated *bool `json:"isMigrated,omitempty"` LastUpdatedTime *string `json:"lastUpdatedTime,omitempty"` Scopes *[]string `json:"scopes,omitempty"` Severity *int64 `json:"severity,omitempty"` TargetResourceRegion *string `json:"targetResourceRegion,omitempty"` TargetResourceType *string `json:"targetResourceType,omitempty"` WindowSize *string `json:"windowSize,omitempty"` }
func (*MetricAlertPropertiesPatch) GetLastUpdatedTimeAsTime ¶
func (o *MetricAlertPropertiesPatch) GetLastUpdatedTimeAsTime() (*time.Time, error)
func (*MetricAlertPropertiesPatch) SetLastUpdatedTimeAsTime ¶
func (o *MetricAlertPropertiesPatch) SetLastUpdatedTimeAsTime(input time.Time)
func (*MetricAlertPropertiesPatch) UnmarshalJSON ¶
func (s *MetricAlertPropertiesPatch) UnmarshalJSON(bytes []byte) error
type MetricAlertResource ¶
type MetricAlertResourceCollection ¶
type MetricAlertResourceCollection struct {
Value *[]MetricAlertResource `json:"value,omitempty"`
}
type MetricAlertResourcePatch ¶
type MetricAlertResourcePatch struct { Properties *MetricAlertPropertiesPatch `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type MetricAlertSingleResourceMultipleMetricCriteria ¶
type MetricAlertSingleResourceMultipleMetricCriteria struct {
AllOf *[]MetricCriteria `json:"allOf,omitempty"`
}
func (MetricAlertSingleResourceMultipleMetricCriteria) MarshalJSON ¶
func (s MetricAlertSingleResourceMultipleMetricCriteria) MarshalJSON() ([]byte, error)
type MetricAlertsClient ¶
func NewMetricAlertsClientWithBaseURI ¶
func NewMetricAlertsClientWithBaseURI(endpoint string) MetricAlertsClient
func (MetricAlertsClient) CreateOrUpdate ¶
func (c MetricAlertsClient) CreateOrUpdate(ctx context.Context, id MetricAlertId, input MetricAlertResource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (MetricAlertsClient) Delete ¶
func (c MetricAlertsClient) Delete(ctx context.Context, id MetricAlertId) (result DeleteOperationResponse, err error)
Delete ...
func (MetricAlertsClient) Get ¶
func (c MetricAlertsClient) Get(ctx context.Context, id MetricAlertId) (result GetOperationResponse, err error)
Get ...
func (MetricAlertsClient) ListByResourceGroup ¶
func (c MetricAlertsClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (MetricAlertsClient) ListBySubscription ¶
func (c MetricAlertsClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (MetricAlertsClient) Update ¶
func (c MetricAlertsClient) Update(ctx context.Context, id MetricAlertId, input MetricAlertResourcePatch) (result UpdateOperationResponse, err error)
Update ...
type MetricCriteria ¶
type MetricCriteria struct { Operator Operator `json:"operator"` Threshold float64 `json:"threshold"` // Fields inherited from MultiMetricCriteria Dimensions *[]MetricDimension `json:"dimensions,omitempty"` MetricName string `json:"metricName"` MetricNamespace *string `json:"metricNamespace,omitempty"` Name string `json:"name"` SkipMetricValidation *bool `json:"skipMetricValidation,omitempty"` TimeAggregation AggregationTypeEnum `json:"timeAggregation"` }
func (MetricCriteria) MarshalJSON ¶
func (s MetricCriteria) MarshalJSON() ([]byte, error)
type MetricDimension ¶
type MultiMetricCriteria ¶
type MultiMetricCriteria interface { }
type Odatatype ¶
type Odatatype string
const ( OdatatypeMicrosoftPointAzurePointMonitorPointMultipleResourceMultipleMetricCriteria Odatatype = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria" OdatatypeMicrosoftPointAzurePointMonitorPointSingleResourceMultipleMetricCriteria Odatatype = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria" OdatatypeMicrosoftPointAzurePointMonitorPointWebtestLocationAvailabilityCriteria Odatatype = "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria" )
type RawMetricAlertCriteriaImpl ¶
RawMetricAlertCriteriaImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
type RawMultiMetricCriteriaImpl ¶
RawMultiMetricCriteriaImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response Model *MetricAlertResource }
type WebtestLocationAvailabilityCriteria ¶
type WebtestLocationAvailabilityCriteria struct { ComponentId string `json:"componentId"` FailedLocationCount float64 `json:"failedLocationCount"` WebTestId string `json:"webTestId"` }
func (WebtestLocationAvailabilityCriteria) MarshalJSON ¶
func (s WebtestLocationAvailabilityCriteria) MarshalJSON() ([]byte, error)
Source Files ¶
- client.go
- constants.go
- id_metricalert.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_listbyresourcegroup_autorest.go
- method_listbysubscription_autorest.go
- method_update_autorest.go
- model_dynamicmetriccriteria.go
- model_dynamicthresholdfailingperiods.go
- model_metricalertaction.go
- model_metricalertcriteria.go
- model_metricalertmultipleresourcemultiplemetriccriteria.go
- model_metricalertproperties.go
- model_metricalertpropertiespatch.go
- model_metricalertresource.go
- model_metricalertresourcecollection.go
- model_metricalertresourcepatch.go
- model_metricalertsingleresourcemultiplemetriccriteria.go
- model_metriccriteria.go
- model_metricdimension.go
- model_multimetriccriteria.go
- model_webtestlocationavailabilitycriteria.go
- version.go