Documentation ¶
Index ¶
- func PossibleValuesForAlertModificationEvent() []string
- func PossibleValuesForAlertState() []string
- func PossibleValuesForAlertsSortByFields() []string
- func PossibleValuesForAlertsSummaryGroupByFields() []string
- func PossibleValuesForIdentifier() []string
- func PossibleValuesForMetadataIdentifier() []string
- func PossibleValuesForMonitorCondition() []string
- func PossibleValuesForMonitorService() []string
- func PossibleValuesForSeverity() []string
- func PossibleValuesForSignalType() []string
- func PossibleValuesForSortOrder() []string
- func PossibleValuesForTimeRange() []string
- func ValidateAlertID(input interface{}, key string) (warnings []string, errors []error)
- type ActionStatus
- type Alert
- type AlertId
- type AlertModification
- type AlertModificationEvent
- type AlertModificationItem
- type AlertModificationProperties
- type AlertOperationPredicate
- type AlertProperties
- type AlertState
- type AlertsChangeStateOperationOptions
- type AlertsChangeStateOperationResponse
- type AlertsGetAllCompleteResult
- type AlertsGetAllOperationOptions
- type AlertsGetAllOperationResponse
- type AlertsGetByIdOperationResponse
- type AlertsGetHistoryOperationResponse
- type AlertsGetSummaryOperationOptions
- type AlertsGetSummaryOperationResponse
- type AlertsManagementsClient
- func (c AlertsManagementsClient) AlertsChangeState(ctx context.Context, id AlertId, input Comments, ...) (result AlertsChangeStateOperationResponse, err error)
- func (c AlertsManagementsClient) AlertsGetAll(ctx context.Context, id commonids.SubscriptionId, ...) (result AlertsGetAllOperationResponse, err error)
- func (c AlertsManagementsClient) AlertsGetAllComplete(ctx context.Context, id commonids.SubscriptionId, ...) (AlertsGetAllCompleteResult, error)
- func (c AlertsManagementsClient) AlertsGetAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result AlertsGetAllCompleteResult, err error)
- func (c AlertsManagementsClient) AlertsGetById(ctx context.Context, id AlertId) (result AlertsGetByIdOperationResponse, err error)
- func (c AlertsManagementsClient) AlertsGetHistory(ctx context.Context, id AlertId) (result AlertsGetHistoryOperationResponse, err error)
- func (c AlertsManagementsClient) AlertsGetSummary(ctx context.Context, id commonids.SubscriptionId, ...) (result AlertsGetSummaryOperationResponse, err error)
- func (c AlertsManagementsClient) AlertsMetaData(ctx context.Context, options AlertsMetaDataOperationOptions) (result AlertsMetaDataOperationResponse, err error)
- type AlertsMetaData
- type AlertsMetaDataOperationOptions
- type AlertsMetaDataOperationResponse
- type AlertsMetaDataProperties
- type AlertsSortByFields
- type AlertsSummary
- type AlertsSummaryGroup
- type AlertsSummaryGroupByFields
- type AlertsSummaryGroupItem
- type Comments
- type Essentials
- func (o *Essentials) GetLastModifiedDateTimeAsTime() (*time.Time, error)
- func (o *Essentials) GetMonitorConditionResolvedDateTimeAsTime() (*time.Time, error)
- func (o *Essentials) GetStartDateTimeAsTime() (*time.Time, error)
- func (o *Essentials) SetLastModifiedDateTimeAsTime(input time.Time)
- func (o *Essentials) SetMonitorConditionResolvedDateTimeAsTime(input time.Time)
- func (o *Essentials) SetStartDateTimeAsTime(input time.Time)
- type Identifier
- type MetadataIdentifier
- type MonitorCondition
- type MonitorService
- type RawAlertsMetaDataPropertiesImpl
- type Severity
- type SignalType
- type SortOrder
- type TimeRange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAlertModificationEvent ¶
func PossibleValuesForAlertModificationEvent() []string
func PossibleValuesForAlertState ¶
func PossibleValuesForAlertState() []string
func PossibleValuesForAlertsSortByFields ¶
func PossibleValuesForAlertsSortByFields() []string
func PossibleValuesForAlertsSummaryGroupByFields ¶
func PossibleValuesForAlertsSummaryGroupByFields() []string
func PossibleValuesForIdentifier ¶
func PossibleValuesForIdentifier() []string
func PossibleValuesForMetadataIdentifier ¶
func PossibleValuesForMetadataIdentifier() []string
func PossibleValuesForMonitorCondition ¶
func PossibleValuesForMonitorCondition() []string
func PossibleValuesForMonitorService ¶
func PossibleValuesForMonitorService() []string
func PossibleValuesForSeverity ¶
func PossibleValuesForSeverity() []string
func PossibleValuesForSignalType ¶
func PossibleValuesForSignalType() []string
func PossibleValuesForSortOrder ¶
func PossibleValuesForSortOrder() []string
func PossibleValuesForTimeRange ¶
func PossibleValuesForTimeRange() []string
func ValidateAlertID ¶
ValidateAlertID checks that 'input' can be parsed as a Alert ID
Types ¶
type ActionStatus ¶
type ActionStatus struct {
IsSuppressed *bool `json:"isSuppressed,omitempty"`
}
type Alert ¶
type Alert struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *AlertProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type AlertId ¶
AlertId is a struct representing the Resource ID for a Alert
func NewAlertID ¶
NewAlertID returns a new AlertId struct
func ParseAlertID ¶
ParseAlertID parses 'input' into a AlertId
func ParseAlertIDInsensitively ¶
ParseAlertIDInsensitively parses 'input' case-insensitively into a AlertId note: this method should only be used for API response data and not user input
func (*AlertId) FromParseResult ¶ added in v0.20231127.1171502
func (id *AlertId) FromParseResult(input resourceids.ParseResult) error
func (AlertId) Segments ¶
func (id AlertId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Alert ID
type AlertModification ¶
type AlertModification struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *AlertModificationProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type AlertModificationEvent ¶
type AlertModificationEvent string
const ( AlertModificationEventActionRuleSuppressed AlertModificationEvent = "ActionRuleSuppressed" AlertModificationEventActionRuleTriggered AlertModificationEvent = "ActionRuleTriggered" AlertModificationEventActionsFailed AlertModificationEvent = "ActionsFailed" AlertModificationEventActionsSuppressed AlertModificationEvent = "ActionsSuppressed" AlertModificationEventActionsTriggered AlertModificationEvent = "ActionsTriggered" AlertModificationEventAlertCreated AlertModificationEvent = "AlertCreated" AlertModificationEventMonitorConditionChange AlertModificationEvent = "MonitorConditionChange" AlertModificationEventSeverityChange AlertModificationEvent = "SeverityChange" AlertModificationEventStateChange AlertModificationEvent = "StateChange" )
func (*AlertModificationEvent) UnmarshalJSON ¶
func (s *AlertModificationEvent) UnmarshalJSON(bytes []byte) error
type AlertModificationItem ¶
type AlertModificationItem struct { Comments *string `json:"comments,omitempty"` Description *string `json:"description,omitempty"` ModificationEvent *AlertModificationEvent `json:"modificationEvent,omitempty"` ModifiedAt *string `json:"modifiedAt,omitempty"` ModifiedBy *string `json:"modifiedBy,omitempty"` NewValue *string `json:"newValue,omitempty"` OldValue *string `json:"oldValue,omitempty"` }
type AlertModificationProperties ¶
type AlertModificationProperties struct { AlertId *string `json:"alertId,omitempty"` Modifications *[]AlertModificationItem `json:"modifications,omitempty"` }
type AlertOperationPredicate ¶
func (AlertOperationPredicate) Matches ¶
func (p AlertOperationPredicate) Matches(input Alert) bool
type AlertProperties ¶
type AlertProperties struct { Context *interface{} `json:"context,omitempty"` EgressConfig *interface{} `json:"egressConfig,omitempty"` Essentials *Essentials `json:"essentials,omitempty"` }
type AlertState ¶
type AlertState string
const ( AlertStateAcknowledged AlertState = "Acknowledged" AlertStateClosed AlertState = "Closed" AlertStateNew AlertState = "New" )
func (*AlertState) UnmarshalJSON ¶
func (s *AlertState) UnmarshalJSON(bytes []byte) error
type AlertsChangeStateOperationOptions ¶
type AlertsChangeStateOperationOptions struct {
NewState *AlertState
}
func DefaultAlertsChangeStateOperationOptions ¶
func DefaultAlertsChangeStateOperationOptions() AlertsChangeStateOperationOptions
func (AlertsChangeStateOperationOptions) ToHeaders ¶
func (o AlertsChangeStateOperationOptions) ToHeaders() *client.Headers
func (AlertsChangeStateOperationOptions) ToOData ¶
func (o AlertsChangeStateOperationOptions) ToOData() *odata.Query
func (AlertsChangeStateOperationOptions) ToQuery ¶
func (o AlertsChangeStateOperationOptions) ToQuery() *client.QueryParams
type AlertsGetAllOperationOptions ¶
type AlertsGetAllOperationOptions struct { AlertRule *string AlertState *AlertState CustomTimeRange *string IncludeContext *bool IncludeEgressConfig *bool MonitorCondition *MonitorCondition MonitorService *MonitorService PageCount *int64 Select *string Severity *Severity SmartGroupId *string SortBy *AlertsSortByFields SortOrder *SortOrder TargetResource *string TargetResourceGroup *string TargetResourceType *string TimeRange *TimeRange }
func DefaultAlertsGetAllOperationOptions ¶
func DefaultAlertsGetAllOperationOptions() AlertsGetAllOperationOptions
func (AlertsGetAllOperationOptions) ToHeaders ¶
func (o AlertsGetAllOperationOptions) ToHeaders() *client.Headers
func (AlertsGetAllOperationOptions) ToOData ¶
func (o AlertsGetAllOperationOptions) ToOData() *odata.Query
func (AlertsGetAllOperationOptions) ToQuery ¶
func (o AlertsGetAllOperationOptions) ToQuery() *client.QueryParams
type AlertsGetHistoryOperationResponse ¶
type AlertsGetHistoryOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AlertModification }
type AlertsGetSummaryOperationOptions ¶
type AlertsGetSummaryOperationOptions struct { AlertRule *string AlertState *AlertState CustomTimeRange *string Groupby *AlertsSummaryGroupByFields IncludeSmartGroupsCount *bool MonitorCondition *MonitorCondition MonitorService *MonitorService Severity *Severity TargetResource *string TargetResourceGroup *string TargetResourceType *string TimeRange *TimeRange }
func DefaultAlertsGetSummaryOperationOptions ¶
func DefaultAlertsGetSummaryOperationOptions() AlertsGetSummaryOperationOptions
func (AlertsGetSummaryOperationOptions) ToHeaders ¶
func (o AlertsGetSummaryOperationOptions) ToHeaders() *client.Headers
func (AlertsGetSummaryOperationOptions) ToOData ¶
func (o AlertsGetSummaryOperationOptions) ToOData() *odata.Query
func (AlertsGetSummaryOperationOptions) ToQuery ¶
func (o AlertsGetSummaryOperationOptions) ToQuery() *client.QueryParams
type AlertsGetSummaryOperationResponse ¶
type AlertsGetSummaryOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AlertsSummary }
type AlertsManagementsClient ¶
type AlertsManagementsClient struct {
Client *resourcemanager.Client
}
func NewAlertsManagementsClientWithBaseURI ¶
func NewAlertsManagementsClientWithBaseURI(sdkApi sdkEnv.Api) (*AlertsManagementsClient, error)
func (AlertsManagementsClient) AlertsChangeState ¶
func (c AlertsManagementsClient) AlertsChangeState(ctx context.Context, id AlertId, input Comments, options AlertsChangeStateOperationOptions) (result AlertsChangeStateOperationResponse, err error)
AlertsChangeState ...
func (AlertsManagementsClient) AlertsGetAll ¶
func (c AlertsManagementsClient) AlertsGetAll(ctx context.Context, id commonids.SubscriptionId, options AlertsGetAllOperationOptions) (result AlertsGetAllOperationResponse, err error)
AlertsGetAll ...
func (AlertsManagementsClient) AlertsGetAllComplete ¶
func (c AlertsManagementsClient) AlertsGetAllComplete(ctx context.Context, id commonids.SubscriptionId, options AlertsGetAllOperationOptions) (AlertsGetAllCompleteResult, error)
AlertsGetAllComplete retrieves all the results into a single object
func (AlertsManagementsClient) AlertsGetAllCompleteMatchingPredicate ¶
func (c AlertsManagementsClient) AlertsGetAllCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options AlertsGetAllOperationOptions, predicate AlertOperationPredicate) (result AlertsGetAllCompleteResult, err error)
AlertsGetAllCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (AlertsManagementsClient) AlertsGetById ¶
func (c AlertsManagementsClient) AlertsGetById(ctx context.Context, id AlertId) (result AlertsGetByIdOperationResponse, err error)
AlertsGetById ...
func (AlertsManagementsClient) AlertsGetHistory ¶
func (c AlertsManagementsClient) AlertsGetHistory(ctx context.Context, id AlertId) (result AlertsGetHistoryOperationResponse, err error)
AlertsGetHistory ...
func (AlertsManagementsClient) AlertsGetSummary ¶
func (c AlertsManagementsClient) AlertsGetSummary(ctx context.Context, id commonids.SubscriptionId, options AlertsGetSummaryOperationOptions) (result AlertsGetSummaryOperationResponse, err error)
AlertsGetSummary ...
func (AlertsManagementsClient) AlertsMetaData ¶
func (c AlertsManagementsClient) AlertsMetaData(ctx context.Context, options AlertsMetaDataOperationOptions) (result AlertsMetaDataOperationResponse, err error)
AlertsMetaData ...
type AlertsMetaData ¶
type AlertsMetaData struct {
Properties AlertsMetaDataProperties `json:"properties"`
}
func (*AlertsMetaData) UnmarshalJSON ¶
func (s *AlertsMetaData) UnmarshalJSON(bytes []byte) error
type AlertsMetaDataOperationOptions ¶
type AlertsMetaDataOperationOptions struct {
Identifier *Identifier
}
func DefaultAlertsMetaDataOperationOptions ¶
func DefaultAlertsMetaDataOperationOptions() AlertsMetaDataOperationOptions
func (AlertsMetaDataOperationOptions) ToHeaders ¶
func (o AlertsMetaDataOperationOptions) ToHeaders() *client.Headers
func (AlertsMetaDataOperationOptions) ToOData ¶
func (o AlertsMetaDataOperationOptions) ToOData() *odata.Query
func (AlertsMetaDataOperationOptions) ToQuery ¶
func (o AlertsMetaDataOperationOptions) ToQuery() *client.QueryParams
type AlertsMetaDataOperationResponse ¶
type AlertsMetaDataOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *AlertsMetaData }
type AlertsMetaDataProperties ¶
type AlertsMetaDataProperties interface { }
type AlertsSortByFields ¶
type AlertsSortByFields string
const ( AlertsSortByFieldsAlertState AlertsSortByFields = "alertState" AlertsSortByFieldsLastModifiedDateTime AlertsSortByFields = "lastModifiedDateTime" AlertsSortByFieldsMonitorCondition AlertsSortByFields = "monitorCondition" AlertsSortByFieldsName AlertsSortByFields = "name" AlertsSortByFieldsSeverity AlertsSortByFields = "severity" AlertsSortByFieldsStartDateTime AlertsSortByFields = "startDateTime" AlertsSortByFieldsTargetResource AlertsSortByFields = "targetResource" AlertsSortByFieldsTargetResourceGroup AlertsSortByFields = "targetResourceGroup" AlertsSortByFieldsTargetResourceName AlertsSortByFields = "targetResourceName" AlertsSortByFieldsTargetResourceType AlertsSortByFields = "targetResourceType" )
func (*AlertsSortByFields) UnmarshalJSON ¶
func (s *AlertsSortByFields) UnmarshalJSON(bytes []byte) error
type AlertsSummary ¶
type AlertsSummary struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *AlertsSummaryGroup `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type AlertsSummaryGroup ¶
type AlertsSummaryGroup struct { Groupedby *string `json:"groupedby,omitempty"` SmartGroupsCount *int64 `json:"smartGroupsCount,omitempty"` Total *int64 `json:"total,omitempty"` Values *[]AlertsSummaryGroupItem `json:"values,omitempty"` }
type AlertsSummaryGroupByFields ¶
type AlertsSummaryGroupByFields string
const ( AlertsSummaryGroupByFieldsAlertRule AlertsSummaryGroupByFields = "alertRule" AlertsSummaryGroupByFieldsAlertState AlertsSummaryGroupByFields = "alertState" AlertsSummaryGroupByFieldsMonitorCondition AlertsSummaryGroupByFields = "monitorCondition" AlertsSummaryGroupByFieldsMonitorService AlertsSummaryGroupByFields = "monitorService" AlertsSummaryGroupByFieldsSeverity AlertsSummaryGroupByFields = "severity" AlertsSummaryGroupByFieldsSignalType AlertsSummaryGroupByFields = "signalType" )
func (*AlertsSummaryGroupByFields) UnmarshalJSON ¶
func (s *AlertsSummaryGroupByFields) UnmarshalJSON(bytes []byte) error
type AlertsSummaryGroupItem ¶
type AlertsSummaryGroupItem struct { Count *int64 `json:"count,omitempty"` Groupedby *string `json:"groupedby,omitempty"` Name *string `json:"name,omitempty"` Values *[]AlertsSummaryGroupItem `json:"values,omitempty"` }
type Essentials ¶
type Essentials struct { ActionStatus *ActionStatus `json:"actionStatus,omitempty"` AlertRule *string `json:"alertRule,omitempty"` AlertState *AlertState `json:"alertState,omitempty"` Description *string `json:"description,omitempty"` LastModifiedDateTime *string `json:"lastModifiedDateTime,omitempty"` LastModifiedUserName *string `json:"lastModifiedUserName,omitempty"` MonitorCondition *MonitorCondition `json:"monitorCondition,omitempty"` MonitorConditionResolvedDateTime *string `json:"monitorConditionResolvedDateTime,omitempty"` MonitorService *MonitorService `json:"monitorService,omitempty"` Severity *Severity `json:"severity,omitempty"` SignalType *SignalType `json:"signalType,omitempty"` SmartGroupId *string `json:"smartGroupId,omitempty"` SmartGroupingReason *string `json:"smartGroupingReason,omitempty"` SourceCreatedId *string `json:"sourceCreatedId,omitempty"` StartDateTime *string `json:"startDateTime,omitempty"` TargetResource *string `json:"targetResource,omitempty"` TargetResourceGroup *string `json:"targetResourceGroup,omitempty"` TargetResourceName *string `json:"targetResourceName,omitempty"` TargetResourceType *string `json:"targetResourceType,omitempty"` }
func (*Essentials) GetLastModifiedDateTimeAsTime ¶
func (o *Essentials) GetLastModifiedDateTimeAsTime() (*time.Time, error)
func (*Essentials) GetMonitorConditionResolvedDateTimeAsTime ¶
func (o *Essentials) GetMonitorConditionResolvedDateTimeAsTime() (*time.Time, error)
func (*Essentials) GetStartDateTimeAsTime ¶
func (o *Essentials) GetStartDateTimeAsTime() (*time.Time, error)
func (*Essentials) SetLastModifiedDateTimeAsTime ¶
func (o *Essentials) SetLastModifiedDateTimeAsTime(input time.Time)
func (*Essentials) SetMonitorConditionResolvedDateTimeAsTime ¶
func (o *Essentials) SetMonitorConditionResolvedDateTimeAsTime(input time.Time)
func (*Essentials) SetStartDateTimeAsTime ¶
func (o *Essentials) SetStartDateTimeAsTime(input time.Time)
type Identifier ¶
type Identifier string
const (
IdentifierMonitorServiceList Identifier = "MonitorServiceList"
)
func (*Identifier) UnmarshalJSON ¶
func (s *Identifier) UnmarshalJSON(bytes []byte) error
type MetadataIdentifier ¶
type MetadataIdentifier string
const (
MetadataIdentifierMonitorServiceList MetadataIdentifier = "MonitorServiceList"
)
func (*MetadataIdentifier) UnmarshalJSON ¶
func (s *MetadataIdentifier) UnmarshalJSON(bytes []byte) error
type MonitorCondition ¶
type MonitorCondition string
const ( MonitorConditionFired MonitorCondition = "Fired" MonitorConditionResolved MonitorCondition = "Resolved" )
func (*MonitorCondition) UnmarshalJSON ¶
func (s *MonitorCondition) UnmarshalJSON(bytes []byte) error
type MonitorService ¶
type MonitorService string
const ( MonitorServiceActivityLogAdministrative MonitorService = "ActivityLog Administrative" MonitorServiceActivityLogAutoscale MonitorService = "ActivityLog Autoscale" MonitorServiceActivityLogPolicy MonitorService = "ActivityLog Policy" MonitorServiceActivityLogRecommendation MonitorService = "ActivityLog Recommendation" MonitorServiceActivityLogSecurity MonitorService = "ActivityLog Security" MonitorServiceApplicationInsights MonitorService = "Application Insights" MonitorServiceLogAnalytics MonitorService = "Log Analytics" MonitorServiceNagios MonitorService = "Nagios" MonitorServicePlatform MonitorService = "Platform" MonitorServiceSCOM MonitorService = "SCOM" MonitorServiceServiceHealth MonitorService = "ServiceHealth" MonitorServiceSmartDetector MonitorService = "SmartDetector" MonitorServiceVMInsights MonitorService = "VM Insights" MonitorServiceZabbix MonitorService = "Zabbix" )
func (*MonitorService) UnmarshalJSON ¶
func (s *MonitorService) UnmarshalJSON(bytes []byte) error
type RawAlertsMetaDataPropertiesImpl ¶
RawAlertsMetaDataPropertiesImpl 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 SignalType ¶
type SignalType string
const ( SignalTypeLog SignalType = "Log" SignalTypeMetric SignalType = "Metric" SignalTypeUnknown SignalType = "Unknown" )
func (*SignalType) UnmarshalJSON ¶
func (s *SignalType) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_alert.go
- method_alertschangestate.go
- method_alertsgetall.go
- method_alertsgetbyid.go
- method_alertsgethistory.go
- method_alertsgetsummary.go
- method_alertsmetadata.go
- model_actionstatus.go
- model_alert.go
- model_alertmodification.go
- model_alertmodificationitem.go
- model_alertmodificationproperties.go
- model_alertproperties.go
- model_alertsmetadata.go
- model_alertsmetadataproperties.go
- model_alertssummary.go
- model_alertssummarygroup.go
- model_alertssummarygroupitem.go
- model_comments.go
- model_essentials.go
- predicates.go
- version.go