Versions in this module Expand all Collapse all v0 v0.20241126.2320 Nov 26, 2024 v0.20241126.1723 Nov 26, 2024 Changes in this version + func PossibleValuesForAlertCategory() []string + func PossibleValuesForAlertCriteria() []string + func PossibleValuesForAlertOperator() []string + func PossibleValuesForAlertSource() []string + func PossibleValuesForAlertStatus() []string + func PossibleValuesForAlertTimeGrainType() []string + func PossibleValuesForAlertType() []string + func PossibleValuesForExternalCloudProviderType() []string + func ValidateExternalCloudProviderTypeID(input interface{}, key string) (warnings []string, errors []error) + func ValidateScopedAlertID(input interface{}, key string) (warnings []string, errors []error) + type Alert struct + ETag *string + Id *string + Name *string + Properties *AlertProperties + Type *string + type AlertCategory string + const AlertCategoryBilling + const AlertCategoryCost + const AlertCategorySystem + const AlertCategoryUsage + func (s *AlertCategory) UnmarshalJSON(bytes []byte) error + type AlertCriteria string + const AlertCriteriaCostThresholdExceeded + const AlertCriteriaCreditThresholdApproaching + const AlertCriteriaCreditThresholdReached + const AlertCriteriaCrossCloudCollectionError + const AlertCriteriaCrossCloudNewDataAvailable + const AlertCriteriaForecastCostThresholdExceeded + const AlertCriteriaForecastUsageThresholdExceeded + const AlertCriteriaGeneralThresholdError + const AlertCriteriaInvoiceDueDateApproaching + const AlertCriteriaInvoiceDueDateReached + const AlertCriteriaMultiCurrency + const AlertCriteriaQuotaThresholdApproaching + const AlertCriteriaQuotaThresholdReached + const AlertCriteriaUsageThresholdExceeded + func (s *AlertCriteria) UnmarshalJSON(bytes []byte) error + type AlertOperationPredicate struct + ETag *string + Id *string + Name *string + Type *string + func (p AlertOperationPredicate) Matches(input Alert) bool + type AlertOperator string + const AlertOperatorEqualTo + const AlertOperatorGreaterThan + const AlertOperatorGreaterThanOrEqualTo + const AlertOperatorLessThan + const AlertOperatorLessThanOrEqualTo + const AlertOperatorNone + func (s *AlertOperator) UnmarshalJSON(bytes []byte) error + type AlertProperties struct + CloseTime *string + CostEntityId *string + CreationTime *string + Definition *AlertPropertiesDefinition + Description *string + Details *AlertPropertiesDetails + ModificationTime *string + Source *AlertSource + Status *AlertStatus + StatusModificationTime *string + StatusModificationUserName *string + type AlertPropertiesDefinition struct + Category *AlertCategory + Criteria *AlertCriteria + Type *AlertType + type AlertPropertiesDetails struct + Amount *float64 + CompanyName *string + ContactEmails *[]string + ContactGroups *[]string + ContactRoles *[]string + CurrentSpend *float64 + DepartmentName *string + EnrollmentEndDate *string + EnrollmentNumber *string + EnrollmentStartDate *string + InvoicingThreshold *float64 + MeterFilter *[]interface{} + Operator *AlertOperator + OverridingAlert *string + PeriodStartDate *string + ResourceFilter *[]interface{} + ResourceGroupFilter *[]interface{} + TagFilter *interface{} + Threshold *float64 + TimeGrainType *AlertTimeGrainType + TriggeredBy *string + Unit *string + type AlertSource string + const AlertSourcePreset + const AlertSourceUser + func (s *AlertSource) UnmarshalJSON(bytes []byte) error + type AlertStatus string + const AlertStatusActive + const AlertStatusDismissed + const AlertStatusNone + const AlertStatusOverridden + const AlertStatusResolved + func (s *AlertStatus) UnmarshalJSON(bytes []byte) error + type AlertTimeGrainType string + const AlertTimeGrainTypeAnnually + const AlertTimeGrainTypeBillingAnnual + const AlertTimeGrainTypeBillingMonth + const AlertTimeGrainTypeBillingQuarter + const AlertTimeGrainTypeMonthly + const AlertTimeGrainTypeNone + const AlertTimeGrainTypeQuarterly + func (s *AlertTimeGrainType) UnmarshalJSON(bytes []byte) error + type AlertType string + const AlertTypeBudget + const AlertTypeBudgetForecast + const AlertTypeCredit + const AlertTypeGeneral + const AlertTypeInvoice + const AlertTypeQuota + const AlertTypeXCloud + func (s *AlertType) UnmarshalJSON(bytes []byte) error + type AlertsClient struct + Client *resourcemanager.Client + func NewAlertsClientWithBaseURI(sdkApi sdkEnv.Api) (*AlertsClient, error) + func (c AlertsClient) Dismiss(ctx context.Context, id ScopedAlertId, input DismissAlertPayload) (result DismissOperationResponse, err error) + func (c AlertsClient) Get(ctx context.Context, id ScopedAlertId) (result GetOperationResponse, err error) + func (c AlertsClient) List(ctx context.Context, id commonids.ScopeId) (result ListOperationResponse, err error) + func (c AlertsClient) ListComplete(ctx context.Context, id commonids.ScopeId) (ListCompleteResult, error) + func (c AlertsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.ScopeId, predicate AlertOperationPredicate) (result ListCompleteResult, err error) + func (c AlertsClient) ListExternal(ctx context.Context, id ExternalCloudProviderTypeId) (result ListExternalOperationResponse, err error) + func (c AlertsClient) ListExternalComplete(ctx context.Context, id ExternalCloudProviderTypeId) (ListExternalCompleteResult, error) + func (c AlertsClient) ListExternalCompleteMatchingPredicate(ctx context.Context, id ExternalCloudProviderTypeId, ...) (result ListExternalCompleteResult, err error) + type DismissAlertPayload struct + Properties *AlertProperties + type DismissOperationResponse struct + HttpResponse *http.Response + Model *Alert + OData *odata.OData + type ExternalCloudProviderType string + const ExternalCloudProviderTypeExternalBillingAccounts + const ExternalCloudProviderTypeExternalSubscriptions + func (s *ExternalCloudProviderType) UnmarshalJSON(bytes []byte) error + type ExternalCloudProviderTypeId struct + ExternalCloudProviderId string + ExternalCloudProviderType ExternalCloudProviderType + func NewExternalCloudProviderTypeID(externalCloudProviderType ExternalCloudProviderType, ...) ExternalCloudProviderTypeId + func ParseExternalCloudProviderTypeID(input string) (*ExternalCloudProviderTypeId, error) + func ParseExternalCloudProviderTypeIDInsensitively(input string) (*ExternalCloudProviderTypeId, error) + func (id *ExternalCloudProviderTypeId) FromParseResult(input resourceids.ParseResult) error + func (id ExternalCloudProviderTypeId) ID() string + func (id ExternalCloudProviderTypeId) Segments() []resourceids.Segment + func (id ExternalCloudProviderTypeId) String() string + type GetOperationResponse struct + HttpResponse *http.Response + Model *Alert + OData *odata.OData + type ListCompleteResult struct + Items []Alert + LatestHttpResponse *http.Response + type ListCustomPager struct + NextLink *odata.Link + func (p *ListCustomPager) NextPageLink() *odata.Link + type ListExternalCompleteResult struct + Items []Alert + LatestHttpResponse *http.Response + type ListExternalCustomPager struct + NextLink *odata.Link + func (p *ListExternalCustomPager) NextPageLink() *odata.Link + type ListExternalOperationResponse struct + HttpResponse *http.Response + Model *[]Alert + OData *odata.OData + type ListOperationResponse struct + HttpResponse *http.Response + Model *[]Alert + OData *odata.OData + type ScopedAlertId struct + AlertId string + Scope string + func NewScopedAlertID(scope string, alertId string) ScopedAlertId + func ParseScopedAlertID(input string) (*ScopedAlertId, error) + func ParseScopedAlertIDInsensitively(input string) (*ScopedAlertId, error) + func (id *ScopedAlertId) FromParseResult(input resourceids.ParseResult) error + func (id ScopedAlertId) ID() string + func (id ScopedAlertId) Segments() []resourceids.Segment + func (id ScopedAlertId) String() string