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 BaseMetricAlertCriteriaImpl
- type BaseMultiMetricCriteriaImpl
- 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" )
func (*AggregationTypeEnum) UnmarshalJSON ¶
func (s *AggregationTypeEnum) UnmarshalJSON(bytes []byte) error
type BaseMetricAlertCriteriaImpl ¶
type BaseMetricAlertCriteriaImpl struct {
OdataType Odatatype `json:"odata.type"`
}
func (BaseMetricAlertCriteriaImpl) MetricAlertCriteria ¶
func (s BaseMetricAlertCriteriaImpl) MetricAlertCriteria() BaseMetricAlertCriteriaImpl
type BaseMultiMetricCriteriaImpl ¶
type BaseMultiMetricCriteriaImpl struct { CriterionType CriterionType `json:"criterionType"` 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 (BaseMultiMetricCriteriaImpl) MultiMetricCriteria ¶
func (s BaseMultiMetricCriteriaImpl) MultiMetricCriteria() BaseMultiMetricCriteriaImpl
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *MetricAlertResource }
type CriterionType ¶
type CriterionType string
const ( CriterionTypeDynamicThresholdCriterion CriterionType = "DynamicThresholdCriterion" CriterionTypeStaticThresholdCriterion CriterionType = "StaticThresholdCriterion" )
func (*CriterionType) UnmarshalJSON ¶
func (s *CriterionType) UnmarshalJSON(bytes []byte) error
type DeleteOperationResponse ¶
type DynamicMetricCriteria ¶
type DynamicMetricCriteria struct { AlertSensitivity DynamicThresholdSensitivity `json:"alertSensitivity"` FailingPeriods DynamicThresholdFailingPeriods `json:"failingPeriods"` IgnoreDataBefore *string `json:"ignoreDataBefore,omitempty"` Operator DynamicThresholdOperator `json:"operator"` CriterionType CriterionType `json:"criterionType"` 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)
func (DynamicMetricCriteria) MultiMetricCriteria ¶
func (s DynamicMetricCriteria) MultiMetricCriteria() BaseMultiMetricCriteriaImpl
type DynamicThresholdOperator ¶
type DynamicThresholdOperator string
const ( DynamicThresholdOperatorGreaterOrLessThan DynamicThresholdOperator = "GreaterOrLessThan" DynamicThresholdOperatorGreaterThan DynamicThresholdOperator = "GreaterThan" DynamicThresholdOperatorLessThan DynamicThresholdOperator = "LessThan" )
func (*DynamicThresholdOperator) UnmarshalJSON ¶
func (s *DynamicThresholdOperator) UnmarshalJSON(bytes []byte) error
type DynamicThresholdSensitivity ¶
type DynamicThresholdSensitivity string
const ( DynamicThresholdSensitivityHigh DynamicThresholdSensitivity = "High" DynamicThresholdSensitivityLow DynamicThresholdSensitivity = "Low" DynamicThresholdSensitivityMedium DynamicThresholdSensitivity = "Medium" )
func (*DynamicThresholdSensitivity) UnmarshalJSON ¶
func (s *DynamicThresholdSensitivity) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *MetricAlertResource }
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *MetricAlertResourceCollection }
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *MetricAlertResourceCollection }
type MetricAlertAction ¶
type MetricAlertCriteria ¶
type MetricAlertCriteria interface {
MetricAlertCriteria() BaseMetricAlertCriteriaImpl
}
func UnmarshalMetricAlertCriteriaImplementation ¶
func UnmarshalMetricAlertCriteriaImplementation(input []byte) (MetricAlertCriteria, error)
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"` OdataType Odatatype `json:"odata.type"` }
func (MetricAlertMultipleResourceMultipleMetricCriteria) MarshalJSON ¶
func (s MetricAlertMultipleResourceMultipleMetricCriteria) MarshalJSON() ([]byte, error)
func (MetricAlertMultipleResourceMultipleMetricCriteria) MetricAlertCriteria ¶
func (s MetricAlertMultipleResourceMultipleMetricCriteria) MetricAlertCriteria() BaseMetricAlertCriteriaImpl
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"` OdataType Odatatype `json:"odata.type"` }
func (MetricAlertSingleResourceMultipleMetricCriteria) MarshalJSON ¶
func (s MetricAlertSingleResourceMultipleMetricCriteria) MarshalJSON() ([]byte, error)
func (MetricAlertSingleResourceMultipleMetricCriteria) MetricAlertCriteria ¶
func (s MetricAlertSingleResourceMultipleMetricCriteria) MetricAlertCriteria() BaseMetricAlertCriteriaImpl
type MetricAlertsClient ¶
type MetricAlertsClient struct {
Client *resourcemanager.Client
}
func NewMetricAlertsClientWithBaseURI ¶
func NewMetricAlertsClientWithBaseURI(sdkApi sdkEnv.Api) (*MetricAlertsClient, error)
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"` CriterionType CriterionType `json:"criterionType"` 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)
func (MetricCriteria) MultiMetricCriteria ¶
func (s MetricCriteria) MultiMetricCriteria() BaseMultiMetricCriteriaImpl
type MetricDimension ¶
type MultiMetricCriteria ¶
type MultiMetricCriteria interface {
MultiMetricCriteria() BaseMultiMetricCriteriaImpl
}
func UnmarshalMultiMetricCriteriaImplementation ¶
func UnmarshalMultiMetricCriteriaImplementation(input []byte) (MultiMetricCriteria, error)
type Odatatype ¶
type Odatatype string
const ( OdatatypeMicrosoftPointAzurePointMonitorPointMultipleResourceMultipleMetricCriteria Odatatype = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria" OdatatypeMicrosoftPointAzurePointMonitorPointSingleResourceMultipleMetricCriteria Odatatype = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria" OdatatypeMicrosoftPointAzurePointMonitorPointWebtestLocationAvailabilityCriteria Odatatype = "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria" )
func (*Odatatype) UnmarshalJSON ¶
type RawMetricAlertCriteriaImpl ¶
type RawMetricAlertCriteriaImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
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).
func (RawMetricAlertCriteriaImpl) MetricAlertCriteria ¶
func (s RawMetricAlertCriteriaImpl) MetricAlertCriteria() BaseMetricAlertCriteriaImpl
type RawMultiMetricCriteriaImpl ¶
type RawMultiMetricCriteriaImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
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).
func (RawMultiMetricCriteriaImpl) MultiMetricCriteria ¶
func (s RawMultiMetricCriteriaImpl) MultiMetricCriteria() BaseMultiMetricCriteriaImpl
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *MetricAlertResource }
type WebtestLocationAvailabilityCriteria ¶
type WebtestLocationAvailabilityCriteria struct { ComponentId string `json:"componentId"` FailedLocationCount float64 `json:"failedLocationCount"` WebTestId string `json:"webTestId"` OdataType Odatatype `json:"odata.type"` }
func (WebtestLocationAvailabilityCriteria) MarshalJSON ¶
func (s WebtestLocationAvailabilityCriteria) MarshalJSON() ([]byte, error)
func (WebtestLocationAvailabilityCriteria) MetricAlertCriteria ¶
func (s WebtestLocationAvailabilityCriteria) MetricAlertCriteria() BaseMetricAlertCriteriaImpl
Source Files ¶
- client.go
- constants.go
- id_metricalert.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_listbyresourcegroup.go
- method_listbysubscription.go
- method_update.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