Versions in this module Expand all Collapse all v1 v1.0.1 Sep 13, 2022 v1.0.0 Sep 12, 2022 Changes in this version + const DefaultBaseURI + func UserAgent() string + func Version() string + type Actions struct + ActionGroups *[]string + CustomProperties map[string]*string + func (a Actions) MarshalJSON() ([]byte, error) + type AzureEntityResource struct + Etag *string + ID *string + Name *string + Type *string + func (aer AzureEntityResource) MarshalJSON() ([]byte, error) + type BaseClient struct + BaseURI string + SubscriptionID string + func New(subscriptionID string) BaseClient + func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient + type Client struct + func NewClient(subscriptionID string) Client + func NewClientWithBaseURI(baseURI string, subscriptionID string) Client + func (client Client) CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, ...) (result ResourceType, err error) + func (client Client) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, ruleName string, ...) (*http.Request, error) + func (client Client) CreateOrUpdateResponder(resp *http.Response) (result ResourceType, err error) + func (client Client) CreateOrUpdateSender(req *http.Request) (*http.Response, error) + func (client Client) Delete(ctx context.Context, resourceGroupName string, ruleName string) (result autorest.Response, err error) + func (client Client) DeletePreparer(ctx context.Context, resourceGroupName string, ruleName string) (*http.Request, error) + func (client Client) DeleteResponder(resp *http.Response) (result autorest.Response, err error) + func (client Client) DeleteSender(req *http.Request) (*http.Response, error) + func (client Client) Get(ctx context.Context, resourceGroupName string, ruleName string) (result ResourceType, err error) + func (client Client) GetPreparer(ctx context.Context, resourceGroupName string, ruleName string) (*http.Request, error) + func (client Client) GetResponder(resp *http.Response) (result ResourceType, err error) + func (client Client) GetSender(req *http.Request) (*http.Response, error) + func (client Client) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ResourceCollectionPage, err error) + func (client Client) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ResourceCollectionIterator, err error) + func (client Client) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error) + func (client Client) ListByResourceGroupResponder(resp *http.Response) (result ResourceCollection, err error) + func (client Client) ListByResourceGroupSender(req *http.Request) (*http.Response, error) + func (client Client) ListBySubscription(ctx context.Context) (result ResourceCollectionPage, err error) + func (client Client) ListBySubscriptionComplete(ctx context.Context) (result ResourceCollectionIterator, err error) + func (client Client) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error) + func (client Client) ListBySubscriptionResponder(resp *http.Response) (result ResourceCollection, err error) + func (client Client) ListBySubscriptionSender(req *http.Request) (*http.Response, error) + func (client Client) Update(ctx context.Context, resourceGroupName string, ruleName string, ...) (result ResourceType, err error) + func (client Client) UpdatePreparer(ctx context.Context, resourceGroupName string, ruleName string, ...) (*http.Request, error) + func (client Client) UpdateResponder(resp *http.Response) (result ResourceType, err error) + func (client Client) UpdateSender(req *http.Request) (*http.Response, error) + type Condition struct + Dimensions *[]Dimension + FailingPeriods *ConditionFailingPeriods + MetricMeasureColumn *string + MetricName *string + Operator ConditionOperator + Query *string + ResourceIDColumn *string + Threshold *float64 + TimeAggregation TimeAggregation + type ConditionFailingPeriods struct + MinFailingPeriodsToAlert *int64 + NumberOfEvaluationPeriods *int64 + type ConditionOperator string + const ConditionOperatorEquals + const ConditionOperatorGreaterThan + const ConditionOperatorGreaterThanOrEqual + const ConditionOperatorLessThan + const ConditionOperatorLessThanOrEqual + func PossibleConditionOperatorValues() []ConditionOperator + type CreatedByType string + const CreatedByTypeApplication + const CreatedByTypeKey + const CreatedByTypeManagedIdentity + const CreatedByTypeUser + func PossibleCreatedByTypeValues() []CreatedByType + type Criteria struct + AllOf *[]Condition + type Dimension struct + Name *string + Operator DimensionOperator + Values *[]string + type DimensionOperator string + const DimensionOperatorExclude + const DimensionOperatorInclude + func PossibleDimensionOperatorValues() []DimensionOperator + type ErrorAdditionalInfo struct + Info interface{} + Type *string + func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error) + type ErrorContract struct + Error *ErrorResponse + type ErrorResponse struct + AdditionalInfo *[]ErrorAdditionalInfo + Code *string + Details *[]ErrorResponse + Message *string + Target *string + func (er ErrorResponse) MarshalJSON() ([]byte, error) + type Kind string + const KindLogAlert + const KindLogToMetric + func PossibleKindValues() []Kind + type Properties struct + Actions *Actions + AutoMitigate *bool + CheckWorkspaceAlertsStorageConfigured *bool + CreatedWithAPIVersion *string + Criteria *Criteria + Description *string + DisplayName *string + Enabled *bool + EvaluationFrequency *string + IsLegacyLogAnalyticsRule *bool + IsWorkspaceAlertsStorageConfigured *bool + MuteActionsDuration *string + OverrideQueryTimeRange *string + Scopes *[]string + Severity *int64 + SkipQueryValidation *bool + TargetResourceTypes *[]string + WindowSize *string + func (p Properties) MarshalJSON() ([]byte, error) + type ProxyResource struct + ID *string + Name *string + Type *string + func (pr ProxyResource) MarshalJSON() ([]byte, error) + type Resource struct + ID *string + Name *string + Type *string + func (r Resource) MarshalJSON() ([]byte, error) + type ResourceCollection struct + NextLink *string + Value *[]ResourceType + func (rc ResourceCollection) IsEmpty() bool + func (rc ResourceCollection) MarshalJSON() ([]byte, error) + type ResourceCollectionIterator struct + func NewResourceCollectionIterator(page ResourceCollectionPage) ResourceCollectionIterator + func (iter *ResourceCollectionIterator) Next() error + func (iter *ResourceCollectionIterator) NextWithContext(ctx context.Context) (err error) + func (iter ResourceCollectionIterator) NotDone() bool + func (iter ResourceCollectionIterator) Response() ResourceCollection + func (iter ResourceCollectionIterator) Value() ResourceType + type ResourceCollectionPage struct + func NewResourceCollectionPage(cur ResourceCollection, ...) ResourceCollectionPage + func (page *ResourceCollectionPage) Next() error + func (page *ResourceCollectionPage) NextWithContext(ctx context.Context) (err error) + func (page ResourceCollectionPage) NotDone() bool + func (page ResourceCollectionPage) Response() ResourceCollection + func (page ResourceCollectionPage) Values() []ResourceType + type ResourcePatch struct + Tags map[string]*string + func (rp *ResourcePatch) UnmarshalJSON(body []byte) error + func (rp ResourcePatch) MarshalJSON() ([]byte, error) + type ResourceType struct + Etag *string + ID *string + Kind Kind + Location *string + Name *string + SystemData *SystemData + Tags map[string]*string + Type *string + func (rt *ResourceType) UnmarshalJSON(body []byte) error + func (rt ResourceType) MarshalJSON() ([]byte, error) + type SystemData struct + CreatedAt *date.Time + CreatedBy *string + CreatedByType CreatedByType + LastModifiedAt *date.Time + LastModifiedBy *string + LastModifiedByType CreatedByType + type TimeAggregation string + const TimeAggregationAverage + const TimeAggregationCount + const TimeAggregationMaximum + const TimeAggregationMinimum + const TimeAggregationTotal + func PossibleTimeAggregationValues() []TimeAggregation + type TrackedResource struct + ID *string + Location *string + Name *string + Tags map[string]*string + Type *string + func (tr TrackedResource) MarshalJSON() ([]byte, error)