Documentation ¶
Overview ¶
Package insights implements the Azure ARM Insights service API version .
Monitor Management Client
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type Action
- type ActionGroup
- type ActionGroupList
- type ActionGroupPatch
- type ActionGroupPatchBody
- type ActionGroupResource
- type ActivityLogAlert
- type ActivityLogAlertActionGroup
- type ActivityLogAlertActionList
- type ActivityLogAlertAllOfCondition
- type ActivityLogAlertLeafCondition
- type ActivityLogAlertList
- type ActivityLogAlertPatch
- type ActivityLogAlertPatchBody
- type ActivityLogAlertResource
- type ActivityLogsClient
- func (client ActivityLogsClient) List(ctx context.Context, filter string, selectParameter string) (result EventDataCollectionPage, err error)
- func (client ActivityLogsClient) ListPreparer(ctx context.Context, filter string, selectParameter string) (*http.Request, error)
- func (client ActivityLogsClient) ListResponder(resp *http.Response) (result EventDataCollection, err error)
- func (client ActivityLogsClient) ListSender(req *http.Request) (*http.Response, error)
- type AggregationType
- type AlertRule
- type AlertRuleResource
- type AlertRuleResourceCollection
- type AlertRuleResourcePatch
- type AlertSeverity
- type AlertingAction
- func (aa AlertingAction) AsAction() (*Action, bool)
- func (aa AlertingAction) AsAlertingAction() (*AlertingAction, bool)
- func (aa AlertingAction) AsBasicAction() (BasicAction, bool)
- func (aa AlertingAction) AsLogToMetricAction() (*LogToMetricAction, bool)
- func (aa AlertingAction) MarshalJSON() ([]byte, error)
- type AutomationRunbookReceiver
- type AutoscaleNotification
- type AutoscaleProfile
- type AutoscaleSetting
- type AutoscaleSettingResource
- type AutoscaleSettingResourceCollection
- type AutoscaleSettingResourceCollectionIterator
- func (iter *AutoscaleSettingResourceCollectionIterator) Next() error
- func (iter *AutoscaleSettingResourceCollectionIterator) NextWithContext(ctx context.Context) (err error)
- func (iter AutoscaleSettingResourceCollectionIterator) NotDone() bool
- func (iter AutoscaleSettingResourceCollectionIterator) Response() AutoscaleSettingResourceCollection
- func (iter AutoscaleSettingResourceCollectionIterator) Value() AutoscaleSettingResource
- type AutoscaleSettingResourceCollectionPage
- func (page *AutoscaleSettingResourceCollectionPage) Next() error
- func (page *AutoscaleSettingResourceCollectionPage) NextWithContext(ctx context.Context) (err error)
- func (page AutoscaleSettingResourceCollectionPage) NotDone() bool
- func (page AutoscaleSettingResourceCollectionPage) Response() AutoscaleSettingResourceCollection
- func (page AutoscaleSettingResourceCollectionPage) Values() []AutoscaleSettingResource
- type AutoscaleSettingResourcePatch
- type AzNsActionGroup
- type AzureAppPushReceiver
- type AzureFunctionReceiver
- type BaseClient
- type Baseline
- type BaselineMetadataValue
- type BaselineProperties
- type BaselineResponse
- type BasicAction
- type BasicMetricAlertCriteria
- type BasicMultiMetricCriteria
- type BasicRuleAction
- type BasicRuleCondition
- type BasicRuleDataSource
- type CalculateBaselineResponse
- type CategoryType
- type ComparisonOperationType
- type ConditionOperator
- type ConditionalOperator
- type Criteria
- type CriterionType
- type DiagnosticSettings
- type DiagnosticSettingsCategory
- type DiagnosticSettingsCategoryResource
- type DiagnosticSettingsCategoryResourceCollection
- type DiagnosticSettingsResource
- type DiagnosticSettingsResourceCollection
- type Dimension
- type DynamicMetricCriteria
- func (dmc DynamicMetricCriteria) AsBasicMultiMetricCriteria() (BasicMultiMetricCriteria, bool)
- func (dmc DynamicMetricCriteria) AsDynamicMetricCriteria() (*DynamicMetricCriteria, bool)
- func (dmc DynamicMetricCriteria) AsMetricCriteria() (*MetricCriteria, bool)
- func (dmc DynamicMetricCriteria) AsMultiMetricCriteria() (*MultiMetricCriteria, bool)
- func (dmc DynamicMetricCriteria) MarshalJSON() ([]byte, error)
- func (dmc *DynamicMetricCriteria) UnmarshalJSON(body []byte) error
- type DynamicThresholdFailingPeriods
- type DynamicThresholdOperator
- type DynamicThresholdSensitivity
- type EmailNotification
- type EmailReceiver
- type EnableRequest
- type Enabled
- type ErrorResponse
- type EventCategoryCollection
- type EventData
- type EventDataCollection
- type EventDataCollectionIterator
- func (iter *EventDataCollectionIterator) Next() error
- func (iter *EventDataCollectionIterator) NextWithContext(ctx context.Context) (err error)
- func (iter EventDataCollectionIterator) NotDone() bool
- func (iter EventDataCollectionIterator) Response() EventDataCollection
- func (iter EventDataCollectionIterator) Value() EventData
- type EventDataCollectionPage
- func (page *EventDataCollectionPage) Next() error
- func (page *EventDataCollectionPage) NextWithContext(ctx context.Context) (err error)
- func (page EventDataCollectionPage) NotDone() bool
- func (page EventDataCollectionPage) Response() EventDataCollection
- func (page EventDataCollectionPage) Values() []EventData
- type EventLevel
- type HTTPRequestInfo
- type Incident
- type IncidentListResult
- type ItsmReceiver
- type LocalizableString
- type LocationThresholdRuleCondition
- func (ltrc LocationThresholdRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool)
- func (ltrc LocationThresholdRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool)
- func (ltrc LocationThresholdRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool)
- func (ltrc LocationThresholdRuleCondition) AsRuleCondition() (*RuleCondition, bool)
- func (ltrc LocationThresholdRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)
- func (ltrc LocationThresholdRuleCondition) MarshalJSON() ([]byte, error)
- func (ltrc *LocationThresholdRuleCondition) UnmarshalJSON(body []byte) error
- type LogMetricTrigger
- type LogProfileCollection
- type LogProfileProperties
- type LogProfileResource
- type LogProfileResourcePatch
- type LogSearchRule
- type LogSearchRulePatch
- type LogSearchRuleResource
- type LogSearchRuleResourceCollection
- type LogSearchRuleResourcePatch
- type LogSettings
- type LogToMetricAction
- func (ltma LogToMetricAction) AsAction() (*Action, bool)
- func (ltma LogToMetricAction) AsAlertingAction() (*AlertingAction, bool)
- func (ltma LogToMetricAction) AsBasicAction() (BasicAction, bool)
- func (ltma LogToMetricAction) AsLogToMetricAction() (*LogToMetricAction, bool)
- func (ltma LogToMetricAction) MarshalJSON() ([]byte, error)
- type LogicAppReceiver
- type ManagementEventAggregationCondition
- type ManagementEventRuleCondition
- func (merc ManagementEventRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool)
- func (merc ManagementEventRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool)
- func (merc ManagementEventRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool)
- func (merc ManagementEventRuleCondition) AsRuleCondition() (*RuleCondition, bool)
- func (merc ManagementEventRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)
- func (merc ManagementEventRuleCondition) MarshalJSON() ([]byte, error)
- func (merc *ManagementEventRuleCondition) UnmarshalJSON(body []byte) error
- type MetadataValue
- type Metric
- type MetricAlertAction
- type MetricAlertCriteria
- func (mac MetricAlertCriteria) AsBasicMetricAlertCriteria() (BasicMetricAlertCriteria, bool)
- func (mac MetricAlertCriteria) AsMetricAlertCriteria() (*MetricAlertCriteria, bool)
- func (mac MetricAlertCriteria) AsMetricAlertMultipleResourceMultipleMetricCriteria() (*MetricAlertMultipleResourceMultipleMetricCriteria, bool)
- func (mac MetricAlertCriteria) AsMetricAlertSingleResourceMultipleMetricCriteria() (*MetricAlertSingleResourceMultipleMetricCriteria, bool)
- func (mac MetricAlertCriteria) AsWebtestLocationAvailabilityCriteria() (*WebtestLocationAvailabilityCriteria, bool)
- func (mac MetricAlertCriteria) MarshalJSON() ([]byte, error)
- func (mac *MetricAlertCriteria) UnmarshalJSON(body []byte) error
- type MetricAlertMultipleResourceMultipleMetricCriteria
- func (mamrmmc MetricAlertMultipleResourceMultipleMetricCriteria) AsBasicMetricAlertCriteria() (BasicMetricAlertCriteria, bool)
- func (mamrmmc MetricAlertMultipleResourceMultipleMetricCriteria) AsMetricAlertCriteria() (*MetricAlertCriteria, bool)
- func (mamrmmc MetricAlertMultipleResourceMultipleMetricCriteria) AsMetricAlertMultipleResourceMultipleMetricCriteria() (*MetricAlertMultipleResourceMultipleMetricCriteria, bool)
- func (mamrmmc MetricAlertMultipleResourceMultipleMetricCriteria) AsMetricAlertSingleResourceMultipleMetricCriteria() (*MetricAlertSingleResourceMultipleMetricCriteria, bool)
- func (mamrmmc MetricAlertMultipleResourceMultipleMetricCriteria) AsWebtestLocationAvailabilityCriteria() (*WebtestLocationAvailabilityCriteria, bool)
- func (mamrmmc MetricAlertMultipleResourceMultipleMetricCriteria) MarshalJSON() ([]byte, error)
- func (mamrmmc *MetricAlertMultipleResourceMultipleMetricCriteria) UnmarshalJSON(body []byte) error
- type MetricAlertProperties
- type MetricAlertResource
- type MetricAlertResourceCollection
- type MetricAlertResourcePatch
- type MetricAlertSingleResourceMultipleMetricCriteria
- func (masrmmc MetricAlertSingleResourceMultipleMetricCriteria) AsBasicMetricAlertCriteria() (BasicMetricAlertCriteria, bool)
- func (masrmmc MetricAlertSingleResourceMultipleMetricCriteria) AsMetricAlertCriteria() (*MetricAlertCriteria, bool)
- func (masrmmc MetricAlertSingleResourceMultipleMetricCriteria) AsMetricAlertMultipleResourceMultipleMetricCriteria() (*MetricAlertMultipleResourceMultipleMetricCriteria, bool)
- func (masrmmc MetricAlertSingleResourceMultipleMetricCriteria) AsMetricAlertSingleResourceMultipleMetricCriteria() (*MetricAlertSingleResourceMultipleMetricCriteria, bool)
- func (masrmmc MetricAlertSingleResourceMultipleMetricCriteria) AsWebtestLocationAvailabilityCriteria() (*WebtestLocationAvailabilityCriteria, bool)
- func (masrmmc MetricAlertSingleResourceMultipleMetricCriteria) MarshalJSON() ([]byte, error)
- func (masrmmc *MetricAlertSingleResourceMultipleMetricCriteria) UnmarshalJSON(body []byte) error
- type MetricAlertStatus
- type MetricAlertStatusCollection
- type MetricAlertStatusProperties
- type MetricAvailability
- type MetricCriteria
- func (mc MetricCriteria) AsBasicMultiMetricCriteria() (BasicMultiMetricCriteria, bool)
- func (mc MetricCriteria) AsDynamicMetricCriteria() (*DynamicMetricCriteria, bool)
- func (mc MetricCriteria) AsMetricCriteria() (*MetricCriteria, bool)
- func (mc MetricCriteria) AsMultiMetricCriteria() (*MultiMetricCriteria, bool)
- func (mc MetricCriteria) MarshalJSON() ([]byte, error)
- func (mc *MetricCriteria) UnmarshalJSON(body []byte) error
- type MetricDefinition
- type MetricDefinitionCollection
- type MetricDimension
- type MetricSettings
- type MetricStatisticType
- type MetricTrigger
- type MetricTriggerType
- type MetricValue
- type MultiMetricCriteria
- func (mmc MultiMetricCriteria) AsBasicMultiMetricCriteria() (BasicMultiMetricCriteria, bool)
- func (mmc MultiMetricCriteria) AsDynamicMetricCriteria() (*DynamicMetricCriteria, bool)
- func (mmc MultiMetricCriteria) AsMetricCriteria() (*MetricCriteria, bool)
- func (mmc MultiMetricCriteria) AsMultiMetricCriteria() (*MultiMetricCriteria, bool)
- func (mmc MultiMetricCriteria) MarshalJSON() ([]byte, error)
- func (mmc *MultiMetricCriteria) UnmarshalJSON(body []byte) error
- type OdataType
- type OdataTypeBasicAction
- type OdataTypeBasicMetricAlertCriteria
- type OdataTypeBasicRuleAction
- type OdataTypeBasicRuleCondition
- type Operation
- type OperationDisplay
- type OperationListResult
- type Operator
- type ProvisioningState
- type ProxyOnlyResource
- type QueryType
- type ReceiverStatus
- type Recurrence
- type RecurrenceFrequency
- type RecurrentSchedule
- type Resource
- type Response
- type ResultType
- type RetentionPolicy
- type RuleAction
- func (ra RuleAction) AsBasicRuleAction() (BasicRuleAction, bool)
- func (ra RuleAction) AsRuleAction() (*RuleAction, bool)
- func (ra RuleAction) AsRuleEmailAction() (*RuleEmailAction, bool)
- func (ra RuleAction) AsRuleWebhookAction() (*RuleWebhookAction, bool)
- func (ra RuleAction) MarshalJSON() ([]byte, error)
- type RuleCondition
- func (rc RuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool)
- func (rc RuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool)
- func (rc RuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool)
- func (rc RuleCondition) AsRuleCondition() (*RuleCondition, bool)
- func (rc RuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)
- func (rc RuleCondition) MarshalJSON() ([]byte, error)
- func (rc *RuleCondition) UnmarshalJSON(body []byte) error
- type RuleDataSource
- func (rds RuleDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool)
- func (rds RuleDataSource) AsRuleDataSource() (*RuleDataSource, bool)
- func (rds RuleDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool)
- func (rds RuleDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool)
- func (rds RuleDataSource) MarshalJSON() ([]byte, error)
- type RuleEmailAction
- func (rea RuleEmailAction) AsBasicRuleAction() (BasicRuleAction, bool)
- func (rea RuleEmailAction) AsRuleAction() (*RuleAction, bool)
- func (rea RuleEmailAction) AsRuleEmailAction() (*RuleEmailAction, bool)
- func (rea RuleEmailAction) AsRuleWebhookAction() (*RuleWebhookAction, bool)
- func (rea RuleEmailAction) MarshalJSON() ([]byte, error)
- type RuleManagementEventClaimsDataSource
- type RuleManagementEventDataSource
- func (rmeds RuleManagementEventDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool)
- func (rmeds RuleManagementEventDataSource) AsRuleDataSource() (*RuleDataSource, bool)
- func (rmeds RuleManagementEventDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool)
- func (rmeds RuleManagementEventDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool)
- func (rmeds RuleManagementEventDataSource) MarshalJSON() ([]byte, error)
- type RuleMetricDataSource
- func (rmds RuleMetricDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool)
- func (rmds RuleMetricDataSource) AsRuleDataSource() (*RuleDataSource, bool)
- func (rmds RuleMetricDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool)
- func (rmds RuleMetricDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool)
- func (rmds RuleMetricDataSource) MarshalJSON() ([]byte, error)
- type RuleWebhookAction
- func (rwa RuleWebhookAction) AsBasicRuleAction() (BasicRuleAction, bool)
- func (rwa RuleWebhookAction) AsRuleAction() (*RuleAction, bool)
- func (rwa RuleWebhookAction) AsRuleEmailAction() (*RuleEmailAction, bool)
- func (rwa RuleWebhookAction) AsRuleWebhookAction() (*RuleWebhookAction, bool)
- func (rwa RuleWebhookAction) MarshalJSON() ([]byte, error)
- type ScaleAction
- type ScaleCapacity
- type ScaleDirection
- type ScaleRule
- type ScaleRuleMetricDimension
- type ScaleRuleMetricDimensionOperationType
- type ScaleType
- type Schedule
- type SenderAuthorization
- type Sensitivity
- type SmsReceiver
- type Source
- type ThresholdRuleCondition
- func (trc ThresholdRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool)
- func (trc ThresholdRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool)
- func (trc ThresholdRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool)
- func (trc ThresholdRuleCondition) AsRuleCondition() (*RuleCondition, bool)
- func (trc ThresholdRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)
- func (trc ThresholdRuleCondition) MarshalJSON() ([]byte, error)
- func (trc *ThresholdRuleCondition) UnmarshalJSON(body []byte) error
- type TimeAggregationOperator
- type TimeAggregationType
- type TimeSeriesElement
- type TimeSeriesInformation
- type TimeWindow
- type TriggerCondition
- type Unit
- type VoiceReceiver
- type WebhookNotification
- type WebhookReceiver
- type WebtestLocationAvailabilityCriteria
- func (wlac WebtestLocationAvailabilityCriteria) AsBasicMetricAlertCriteria() (BasicMetricAlertCriteria, bool)
- func (wlac WebtestLocationAvailabilityCriteria) AsMetricAlertCriteria() (*MetricAlertCriteria, bool)
- func (wlac WebtestLocationAvailabilityCriteria) AsMetricAlertMultipleResourceMultipleMetricCriteria() (*MetricAlertMultipleResourceMultipleMetricCriteria, bool)
- func (wlac WebtestLocationAvailabilityCriteria) AsMetricAlertSingleResourceMultipleMetricCriteria() (*MetricAlertSingleResourceMultipleMetricCriteria, bool)
- func (wlac WebtestLocationAvailabilityCriteria) AsWebtestLocationAvailabilityCriteria() (*WebtestLocationAvailabilityCriteria, bool)
- func (wlac WebtestLocationAvailabilityCriteria) MarshalJSON() ([]byte, error)
- func (wlac *WebtestLocationAvailabilityCriteria) UnmarshalJSON(body []byte) error
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Insights
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type Action ¶
type Action struct { // OdataType - Possible values include: 'OdataTypeAction', 'OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesAlertingAction', 'OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesLogToMetricAction' OdataType OdataTypeBasicAction `json:"odata.type,omitempty"` }
Action action descriptor.
func (Action) AsAlertingAction ¶
func (a Action) AsAlertingAction() (*AlertingAction, bool)
AsAlertingAction is the BasicAction implementation for Action.
func (Action) AsBasicAction ¶
func (a Action) AsBasicAction() (BasicAction, bool)
AsBasicAction is the BasicAction implementation for Action.
func (Action) AsLogToMetricAction ¶
func (a Action) AsLogToMetricAction() (*LogToMetricAction, bool)
AsLogToMetricAction is the BasicAction implementation for Action.
func (Action) MarshalJSON ¶
MarshalJSON is the custom marshaler for Action.
type ActionGroup ¶
type ActionGroup struct { // GroupShortName - The short name of the action group. This will be used in SMS messages. GroupShortName *string `json:"groupShortName,omitempty"` // Enabled - Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Enabled *bool `json:"enabled,omitempty"` // EmailReceivers - The list of email receivers that are part of this action group. EmailReceivers *[]EmailReceiver `json:"emailReceivers,omitempty"` // SmsReceivers - The list of SMS receivers that are part of this action group. SmsReceivers *[]SmsReceiver `json:"smsReceivers,omitempty"` // WebhookReceivers - The list of webhook receivers that are part of this action group. WebhookReceivers *[]WebhookReceiver `json:"webhookReceivers,omitempty"` // ItsmReceivers - The list of ITSM receivers that are part of this action group. ItsmReceivers *[]ItsmReceiver `json:"itsmReceivers,omitempty"` // AzureAppPushReceivers - The list of AzureAppPush receivers that are part of this action group. AzureAppPushReceivers *[]AzureAppPushReceiver `json:"azureAppPushReceivers,omitempty"` // AutomationRunbookReceivers - The list of AutomationRunbook receivers that are part of this action group. AutomationRunbookReceivers *[]AutomationRunbookReceiver `json:"automationRunbookReceivers,omitempty"` // VoiceReceivers - The list of voice receivers that are part of this action group. VoiceReceivers *[]VoiceReceiver `json:"voiceReceivers,omitempty"` // LogicAppReceivers - The list of logic app receivers that are part of this action group. LogicAppReceivers *[]LogicAppReceiver `json:"logicAppReceivers,omitempty"` // AzureFunctionReceivers - The list of azure function receivers that are part of this action group. AzureFunctionReceivers *[]AzureFunctionReceiver `json:"azureFunctionReceivers,omitempty"` }
ActionGroup an Azure action group.
type ActionGroupList ¶
type ActionGroupList struct { autorest.Response `json:"-"` // Value - The list of action groups. Value *[]ActionGroupResource `json:"value,omitempty"` // NextLink - Provides the link to retrieve the next set of elements. NextLink *string `json:"nextLink,omitempty"` }
ActionGroupList a list of action groups.
type ActionGroupPatch ¶
type ActionGroupPatch struct { // Enabled - Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated. Enabled *bool `json:"enabled,omitempty"` }
ActionGroupPatch an Azure action group for patch operations.
type ActionGroupPatchBody ¶
type ActionGroupPatchBody struct { // Tags - Resource tags Tags map[string]*string `json:"tags"` // ActionGroupPatch - The action group settings for an update operation. *ActionGroupPatch `json:"properties,omitempty"` }
ActionGroupPatchBody an action group object for the body of patch operations.
func (ActionGroupPatchBody) MarshalJSON ¶
func (agpb ActionGroupPatchBody) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ActionGroupPatchBody.
func (*ActionGroupPatchBody) UnmarshalJSON ¶
func (agpb *ActionGroupPatchBody) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ActionGroupPatchBody struct.
type ActionGroupResource ¶
type ActionGroupResource struct { autorest.Response `json:"-"` // ActionGroup - The action groups properties of the resource. *ActionGroup `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
ActionGroupResource an action group resource.
func (ActionGroupResource) MarshalJSON ¶
func (agr ActionGroupResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ActionGroupResource.
func (*ActionGroupResource) UnmarshalJSON ¶
func (agr *ActionGroupResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ActionGroupResource struct.
type ActivityLogAlert ¶
type ActivityLogAlert struct { // Scopes - A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item. Scopes *[]string `json:"scopes,omitempty"` // Enabled - Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated. Enabled *bool `json:"enabled,omitempty"` // Condition - The condition that will cause this alert to activate. Condition *ActivityLogAlertAllOfCondition `json:"condition,omitempty"` // Actions - The actions that will activate when the condition is met. Actions *ActivityLogAlertActionList `json:"actions,omitempty"` // Description - A description of this activity log alert. Description *string `json:"description,omitempty"` }
ActivityLogAlert an Azure activity log alert.
type ActivityLogAlertActionGroup ¶
type ActivityLogAlertActionGroup struct { // ActionGroupID - The resourceId of the action group. This cannot be null or empty. ActionGroupID *string `json:"actionGroupId,omitempty"` // WebhookProperties - the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload. WebhookProperties map[string]*string `json:"webhookProperties"` }
ActivityLogAlertActionGroup a pointer to an Azure Action Group.
func (ActivityLogAlertActionGroup) MarshalJSON ¶
func (alaag ActivityLogAlertActionGroup) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ActivityLogAlertActionGroup.
type ActivityLogAlertActionList ¶
type ActivityLogAlertActionList struct { // ActionGroups - The list of activity log alerts. ActionGroups *[]ActivityLogAlertActionGroup `json:"actionGroups,omitempty"` }
ActivityLogAlertActionList a list of activity log alert actions.
type ActivityLogAlertAllOfCondition ¶
type ActivityLogAlertAllOfCondition struct { // AllOf - The list of activity log alert conditions. AllOf *[]ActivityLogAlertLeafCondition `json:"allOf,omitempty"` }
ActivityLogAlertAllOfCondition an Activity Log alert condition that is met when all its member conditions are met.
type ActivityLogAlertLeafCondition ¶
type ActivityLogAlertLeafCondition struct { // Field - The name of the field that this condition will examine. The possible values for this field are (case-insensitive): 'resourceId', 'category', 'caller', 'level', 'operationName', 'resourceGroup', 'resourceProvider', 'status', 'subStatus', 'resourceType', or anything beginning with 'properties.'. Field *string `json:"field,omitempty"` // Equals - The field value will be compared to this value (case-insensitive) to determine if the condition is met. Equals *string `json:"equals,omitempty"` }
ActivityLogAlertLeafCondition an Activity Log alert condition that is met by comparing an activity log field and value.
type ActivityLogAlertList ¶
type ActivityLogAlertList struct { autorest.Response `json:"-"` // Value - The list of activity log alerts. Value *[]ActivityLogAlertResource `json:"value,omitempty"` // NextLink - Provides the link to retrieve the next set of elements. NextLink *string `json:"nextLink,omitempty"` }
ActivityLogAlertList a list of activity log alerts.
type ActivityLogAlertPatch ¶
type ActivityLogAlertPatch struct { // Enabled - Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated. Enabled *bool `json:"enabled,omitempty"` }
ActivityLogAlertPatch an Azure activity log alert for patch operations.
type ActivityLogAlertPatchBody ¶
type ActivityLogAlertPatchBody struct { // Tags - Resource tags Tags map[string]*string `json:"tags"` // ActivityLogAlertPatch - The activity log alert settings for an update operation. *ActivityLogAlertPatch `json:"properties,omitempty"` }
ActivityLogAlertPatchBody an activity log alert object for the body of patch operations.
func (ActivityLogAlertPatchBody) MarshalJSON ¶
func (alapb ActivityLogAlertPatchBody) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ActivityLogAlertPatchBody.
func (*ActivityLogAlertPatchBody) UnmarshalJSON ¶
func (alapb *ActivityLogAlertPatchBody) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ActivityLogAlertPatchBody struct.
type ActivityLogAlertResource ¶
type ActivityLogAlertResource struct { autorest.Response `json:"-"` // ActivityLogAlert - The activity log alert properties of the resource. *ActivityLogAlert `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
ActivityLogAlertResource an activity log alert resource.
func (ActivityLogAlertResource) MarshalJSON ¶
func (alar ActivityLogAlertResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ActivityLogAlertResource.
func (*ActivityLogAlertResource) UnmarshalJSON ¶
func (alar *ActivityLogAlertResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ActivityLogAlertResource struct.
type ActivityLogsClient ¶
type ActivityLogsClient struct {
BaseClient
}
ActivityLogsClient is the monitor Management Client
func NewActivityLogsClient ¶
func NewActivityLogsClient(subscriptionID string) ActivityLogsClient
NewActivityLogsClient creates an instance of the ActivityLogsClient client.
func NewActivityLogsClientWithBaseURI ¶
func NewActivityLogsClientWithBaseURI(baseURI string, subscriptionID string) ActivityLogsClient
NewActivityLogsClientWithBaseURI creates an instance of the ActivityLogsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ActivityLogsClient) List ¶
func (client ActivityLogsClient) List(ctx context.Context, filter string, selectParameter string) (result EventDataCollectionPage, err error)
List provides the list of records from the activity logs. Parameters: filter - reduces the set of data collected.<br>This argument is required and it also requires at least the start date/time.<br>The **$filter** argument is very restricted and allows only the following patterns.<br>- *List events for a resource group*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceGroupName eq 'resourceGroupName'.<br>- *List events for resource*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceUri eq 'resourceURI'.<br>- *List events for a subscription in a time range*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z'.<br>- *List events for a resource provider*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and resourceProvider eq 'resourceProviderName'.<br>- *List events for a correlation Id*: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and correlationId eq 'correlationID'.<br><br>**NOTE**: No other syntax is allowed. selectParameter - used to fetch events with only the given properties.<br>The **$select** argument is a comma separated list of property names to be returned. Possible values are: *authorization*, *claims*, *correlationId*, *description*, *eventDataId*, *eventName*, *eventTimestamp*, *httpRequest*, *level*, *operationId*, *operationName*, *properties*, *resourceGroupName*, *resourceProviderName*, *resourceId*, *status*, *submissionTimestamp*, *subStatus*, *subscriptionId*
func (ActivityLogsClient) ListPreparer ¶
func (client ActivityLogsClient) ListPreparer(ctx context.Context, filter string, selectParameter string) (*http.Request, error)
ListPreparer prepares the List request.
func (ActivityLogsClient) ListResponder ¶
func (client ActivityLogsClient) ListResponder(resp *http.Response) (result EventDataCollection, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ActivityLogsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type AggregationType ¶
type AggregationType string
AggregationType enumerates the values for aggregation type.
const ( // Average ... Average AggregationType = "Average" // Count ... Count AggregationType = "Count" // Maximum ... Maximum AggregationType = "Maximum" // Minimum ... Minimum AggregationType = "Minimum" // None ... None AggregationType = "None" // Total ... Total AggregationType = "Total" )
func PossibleAggregationTypeValues ¶
func PossibleAggregationTypeValues() []AggregationType
PossibleAggregationTypeValues returns an array of possible values for the AggregationType const type.
type AlertRule ¶
type AlertRule struct { // Name - the name of the alert rule. Name *string `json:"name,omitempty"` // Description - the description of the alert rule that will be included in the alert email. Description *string `json:"description,omitempty"` // IsEnabled - the flag that indicates whether the alert rule is enabled. IsEnabled *bool `json:"isEnabled,omitempty"` // Condition - the condition that results in the alert rule being activated. Condition BasicRuleCondition `json:"condition,omitempty"` // Actions - the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. Actions *[]BasicRuleAction `json:"actions,omitempty"` // LastUpdatedTime - READ-ONLY; Last time the rule was updated in ISO8601 format. LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"` }
AlertRule an alert rule.
func (AlertRule) MarshalJSON ¶
MarshalJSON is the custom marshaler for AlertRule.
func (*AlertRule) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for AlertRule struct.
type AlertRuleResource ¶
type AlertRuleResource struct { autorest.Response `json:"-"` // AlertRule - The alert rule properties of the resource. *AlertRule `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
AlertRuleResource the alert rule resource.
func (AlertRuleResource) MarshalJSON ¶
func (arr AlertRuleResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AlertRuleResource.
func (*AlertRuleResource) UnmarshalJSON ¶
func (arr *AlertRuleResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AlertRuleResource struct.
type AlertRuleResourceCollection ¶
type AlertRuleResourceCollection struct { autorest.Response `json:"-"` // Value - the values for the alert rule resources. Value *[]AlertRuleResource `json:"value,omitempty"` }
AlertRuleResourceCollection represents a collection of alert rule resources.
type AlertRuleResourcePatch ¶
type AlertRuleResourcePatch struct { // Tags - Resource tags Tags map[string]*string `json:"tags"` // AlertRule - The properties of an alert rule. *AlertRule `json:"properties,omitempty"` }
AlertRuleResourcePatch the alert rule object for patch operations.
func (AlertRuleResourcePatch) MarshalJSON ¶
func (arrp AlertRuleResourcePatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AlertRuleResourcePatch.
func (*AlertRuleResourcePatch) UnmarshalJSON ¶
func (arrp *AlertRuleResourcePatch) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AlertRuleResourcePatch struct.
type AlertSeverity ¶
type AlertSeverity string
AlertSeverity enumerates the values for alert severity.
const ( // Four ... Four AlertSeverity = "4" // One ... One AlertSeverity = "1" // Three ... Three AlertSeverity = "3" // Two ... Two AlertSeverity = "2" // Zero ... Zero AlertSeverity = "0" )
func PossibleAlertSeverityValues ¶
func PossibleAlertSeverityValues() []AlertSeverity
PossibleAlertSeverityValues returns an array of possible values for the AlertSeverity const type.
type AlertingAction ¶
type AlertingAction struct { // Severity - Severity of the alert. Possible values include: 'Zero', 'One', 'Two', 'Three', 'Four' Severity AlertSeverity `json:"severity,omitempty"` // AznsAction - Azure action group reference. AznsAction *AzNsActionGroup `json:"aznsAction,omitempty"` // ThrottlingInMin - time (in minutes) for which Alerts should be throttled or suppressed. ThrottlingInMin *int32 `json:"throttlingInMin,omitempty"` // Trigger - The trigger condition that results in the alert rule being. Trigger *TriggerCondition `json:"trigger,omitempty"` // OdataType - Possible values include: 'OdataTypeAction', 'OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesAlertingAction', 'OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesLogToMetricAction' OdataType OdataTypeBasicAction `json:"odata.type,omitempty"` }
AlertingAction specify action need to be taken when rule type is Alert
func (AlertingAction) AsAction ¶
func (aa AlertingAction) AsAction() (*Action, bool)
AsAction is the BasicAction implementation for AlertingAction.
func (AlertingAction) AsAlertingAction ¶
func (aa AlertingAction) AsAlertingAction() (*AlertingAction, bool)
AsAlertingAction is the BasicAction implementation for AlertingAction.
func (AlertingAction) AsBasicAction ¶
func (aa AlertingAction) AsBasicAction() (BasicAction, bool)
AsBasicAction is the BasicAction implementation for AlertingAction.
func (AlertingAction) AsLogToMetricAction ¶
func (aa AlertingAction) AsLogToMetricAction() (*LogToMetricAction, bool)
AsLogToMetricAction is the BasicAction implementation for AlertingAction.
func (AlertingAction) MarshalJSON ¶
func (aa AlertingAction) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AlertingAction.
type AutomationRunbookReceiver ¶
type AutomationRunbookReceiver struct { // AutomationAccountID - The Azure automation account Id which holds this runbook and authenticate to Azure resource. AutomationAccountID *string `json:"automationAccountId,omitempty"` // RunbookName - The name for this runbook. RunbookName *string `json:"runbookName,omitempty"` // WebhookResourceID - The resource id for webhook linked to this runbook. WebhookResourceID *string `json:"webhookResourceId,omitempty"` // IsGlobalRunbook - Indicates whether this instance is global runbook. IsGlobalRunbook *bool `json:"isGlobalRunbook,omitempty"` // Name - Indicates name of the webhook. Name *string `json:"name,omitempty"` // ServiceURI - The URI where webhooks should be sent. ServiceURI *string `json:"serviceUri,omitempty"` }
AutomationRunbookReceiver the Azure Automation Runbook notification receiver.
type AutoscaleNotification ¶
type AutoscaleNotification struct { // Operation - the operation associated with the notification and its value must be "scale" Operation *string `json:"operation,omitempty"` // Email - the email notification. Email *EmailNotification `json:"email,omitempty"` // Webhooks - the collection of webhook notifications. Webhooks *[]WebhookNotification `json:"webhooks,omitempty"` }
AutoscaleNotification autoscale notification.
type AutoscaleProfile ¶
type AutoscaleProfile struct { // Name - the name of the profile. Name *string `json:"name,omitempty"` // Capacity - the number of instances that can be used during this profile. Capacity *ScaleCapacity `json:"capacity,omitempty"` // Rules - the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified. Rules *[]ScaleRule `json:"rules,omitempty"` // FixedDate - the specific date-time for the profile. This element is not used if the Recurrence element is used. FixedDate *TimeWindow `json:"fixedDate,omitempty"` // Recurrence - the repeating times at which this profile begins. This element is not used if the FixedDate element is used. Recurrence *Recurrence `json:"recurrence,omitempty"` }
AutoscaleProfile autoscale profile.
type AutoscaleSetting ¶
type AutoscaleSetting struct { // Profiles - the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified. Profiles *[]AutoscaleProfile `json:"profiles,omitempty"` // Notifications - the collection of notifications. Notifications *[]AutoscaleNotification `json:"notifications,omitempty"` // Enabled - the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is 'true'. Enabled *bool `json:"enabled,omitempty"` // Name - the name of the autoscale setting. Name *string `json:"name,omitempty"` // TargetResourceURI - the resource identifier of the resource that the autoscale setting should be added to. TargetResourceURI *string `json:"targetResourceUri,omitempty"` }
AutoscaleSetting a setting that contains all of the configuration for the automatic scaling of a resource.
type AutoscaleSettingResource ¶
type AutoscaleSettingResource struct { autorest.Response `json:"-"` // AutoscaleSetting - The autoscale setting of the resource. *AutoscaleSetting `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
AutoscaleSettingResource the autoscale setting resource.
func (AutoscaleSettingResource) MarshalJSON ¶
func (asr AutoscaleSettingResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AutoscaleSettingResource.
func (*AutoscaleSettingResource) UnmarshalJSON ¶
func (asr *AutoscaleSettingResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AutoscaleSettingResource struct.
type AutoscaleSettingResourceCollection ¶
type AutoscaleSettingResourceCollection struct { autorest.Response `json:"-"` // Value - the values for the autoscale setting resources. Value *[]AutoscaleSettingResource `json:"value,omitempty"` // NextLink - URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` }
AutoscaleSettingResourceCollection represents a collection of autoscale setting resources.
func (AutoscaleSettingResourceCollection) IsEmpty ¶
func (asrc AutoscaleSettingResourceCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type AutoscaleSettingResourceCollectionIterator ¶
type AutoscaleSettingResourceCollectionIterator struct {
// contains filtered or unexported fields
}
AutoscaleSettingResourceCollectionIterator provides access to a complete listing of AutoscaleSettingResource values.
func NewAutoscaleSettingResourceCollectionIterator ¶
func NewAutoscaleSettingResourceCollectionIterator(page AutoscaleSettingResourceCollectionPage) AutoscaleSettingResourceCollectionIterator
Creates a new instance of the AutoscaleSettingResourceCollectionIterator type.
func (*AutoscaleSettingResourceCollectionIterator) Next ¶
func (iter *AutoscaleSettingResourceCollectionIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*AutoscaleSettingResourceCollectionIterator) NextWithContext ¶
func (iter *AutoscaleSettingResourceCollectionIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (AutoscaleSettingResourceCollectionIterator) NotDone ¶
func (iter AutoscaleSettingResourceCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (AutoscaleSettingResourceCollectionIterator) Response ¶
func (iter AutoscaleSettingResourceCollectionIterator) Response() AutoscaleSettingResourceCollection
Response returns the raw server response from the last page request.
func (AutoscaleSettingResourceCollectionIterator) Value ¶
func (iter AutoscaleSettingResourceCollectionIterator) Value() AutoscaleSettingResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type AutoscaleSettingResourceCollectionPage ¶
type AutoscaleSettingResourceCollectionPage struct {
// contains filtered or unexported fields
}
AutoscaleSettingResourceCollectionPage contains a page of AutoscaleSettingResource values.
func NewAutoscaleSettingResourceCollectionPage ¶
func NewAutoscaleSettingResourceCollectionPage(cur AutoscaleSettingResourceCollection, getNextPage func(context.Context, AutoscaleSettingResourceCollection) (AutoscaleSettingResourceCollection, error)) AutoscaleSettingResourceCollectionPage
Creates a new instance of the AutoscaleSettingResourceCollectionPage type.
func (*AutoscaleSettingResourceCollectionPage) Next ¶
func (page *AutoscaleSettingResourceCollectionPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*AutoscaleSettingResourceCollectionPage) NextWithContext ¶
func (page *AutoscaleSettingResourceCollectionPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (AutoscaleSettingResourceCollectionPage) NotDone ¶
func (page AutoscaleSettingResourceCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (AutoscaleSettingResourceCollectionPage) Response ¶
func (page AutoscaleSettingResourceCollectionPage) Response() AutoscaleSettingResourceCollection
Response returns the raw server response from the last page request.
func (AutoscaleSettingResourceCollectionPage) Values ¶
func (page AutoscaleSettingResourceCollectionPage) Values() []AutoscaleSettingResource
Values returns the slice of values for the current page or nil if there are no values.
type AutoscaleSettingResourcePatch ¶
type AutoscaleSettingResourcePatch struct { // Tags - Resource tags Tags map[string]*string `json:"tags"` // AutoscaleSetting - The autoscale setting properties of the update operation. *AutoscaleSetting `json:"properties,omitempty"` }
AutoscaleSettingResourcePatch the autoscale setting object for patch operations.
func (AutoscaleSettingResourcePatch) MarshalJSON ¶
func (asrp AutoscaleSettingResourcePatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AutoscaleSettingResourcePatch.
func (*AutoscaleSettingResourcePatch) UnmarshalJSON ¶
func (asrp *AutoscaleSettingResourcePatch) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AutoscaleSettingResourcePatch struct.
type AzNsActionGroup ¶
type AzNsActionGroup struct { // ActionGroup - Azure Action Group reference. ActionGroup *[]string `json:"actionGroup,omitempty"` // EmailSubject - Custom subject override for all email ids in Azure action group EmailSubject *string `json:"emailSubject,omitempty"` // CustomWebhookPayload - Custom payload to be sent for all webhook URI in Azure action group CustomWebhookPayload *string `json:"customWebhookPayload,omitempty"` }
AzNsActionGroup azure action group
type AzureAppPushReceiver ¶
type AzureAppPushReceiver struct { // Name - The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // EmailAddress - The email address registered for the Azure mobile app. EmailAddress *string `json:"emailAddress,omitempty"` }
AzureAppPushReceiver the Azure mobile App push notification receiver.
type AzureFunctionReceiver ¶
type AzureFunctionReceiver struct { // Name - The name of the azure function receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // FunctionAppResourceID - The azure resource id of the function app. FunctionAppResourceID *string `json:"functionAppResourceId,omitempty"` // FunctionName - The function name in the function app. FunctionName *string `json:"functionName,omitempty"` // HTTPTriggerURL - The http trigger url where http request sent to. HTTPTriggerURL *string `json:"httpTriggerUrl,omitempty"` }
AzureFunctionReceiver an azure function receiver.
type BaseClient ¶
BaseClient is the base client for Insights.
func New ¶
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
type Baseline ¶
type Baseline struct { // Sensitivity - the sensitivity of the baseline. Possible values include: 'SensitivityLow', 'SensitivityMedium', 'SensitivityHigh' Sensitivity Sensitivity `json:"sensitivity,omitempty"` // LowThresholds - The low thresholds of the baseline. LowThresholds *[]float64 `json:"lowThresholds,omitempty"` // HighThresholds - The high thresholds of the baseline. HighThresholds *[]float64 `json:"highThresholds,omitempty"` }
Baseline the baseline values for a single sensitivity value.
type BaselineMetadataValue ¶
type BaselineMetadataValue struct { // Name - the name of the metadata. Name *LocalizableString `json:"name,omitempty"` // Value - the value of the metadata. Value *string `json:"value,omitempty"` }
BaselineMetadataValue represents a baseline metadata value.
type BaselineProperties ¶
type BaselineProperties struct { // Timespan - The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested. Timespan *string `json:"timespan,omitempty"` // Interval - The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made. Interval *string `json:"interval,omitempty"` // Aggregation - The aggregation type of the metric. Aggregation *string `json:"aggregation,omitempty"` // Timestamps - the array of timestamps of the baselines. Timestamps *[]date.Time `json:"timestamps,omitempty"` // Baseline - the baseline values for each sensitivity. Baseline *[]Baseline `json:"baseline,omitempty"` // Metadata - the baseline metadata values. Metadata *[]BaselineMetadataValue `json:"metadata,omitempty"` }
BaselineProperties the baseline properties class.
type BaselineResponse ¶
type BaselineResponse struct { autorest.Response `json:"-"` // ID - READ-ONLY; the metric baseline Id. ID *string `json:"id,omitempty"` // Type - READ-ONLY; the resource type of the baseline resource. Type *string `json:"type,omitempty"` // Name - READ-ONLY; the name and the display name of the metric, i.e. it is localizable string. Name *LocalizableString `json:"name,omitempty"` // BaselineProperties - the properties of the baseline. *BaselineProperties `json:"properties,omitempty"` }
BaselineResponse the response to a baseline query.
func (BaselineResponse) MarshalJSON ¶
func (br BaselineResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for BaselineResponse.
func (*BaselineResponse) UnmarshalJSON ¶
func (br *BaselineResponse) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for BaselineResponse struct.
type BasicAction ¶
type BasicAction interface { AsAlertingAction() (*AlertingAction, bool) AsLogToMetricAction() (*LogToMetricAction, bool) AsAction() (*Action, bool) }
BasicAction action descriptor.
type BasicMetricAlertCriteria ¶
type BasicMetricAlertCriteria interface { AsMetricAlertSingleResourceMultipleMetricCriteria() (*MetricAlertSingleResourceMultipleMetricCriteria, bool) AsWebtestLocationAvailabilityCriteria() (*WebtestLocationAvailabilityCriteria, bool) AsMetricAlertMultipleResourceMultipleMetricCriteria() (*MetricAlertMultipleResourceMultipleMetricCriteria, bool) AsMetricAlertCriteria() (*MetricAlertCriteria, bool) }
BasicMetricAlertCriteria the rule criteria that defines the conditions of the alert rule.
type BasicMultiMetricCriteria ¶
type BasicMultiMetricCriteria interface { AsMetricCriteria() (*MetricCriteria, bool) AsDynamicMetricCriteria() (*DynamicMetricCriteria, bool) AsMultiMetricCriteria() (*MultiMetricCriteria, bool) }
BasicMultiMetricCriteria the types of conditions for a multi resource alert.
type BasicRuleAction ¶
type BasicRuleAction interface { AsRuleEmailAction() (*RuleEmailAction, bool) AsRuleWebhookAction() (*RuleWebhookAction, bool) AsRuleAction() (*RuleAction, bool) }
BasicRuleAction the action that is performed when the alert rule becomes active, and when an alert condition is resolved.
type BasicRuleCondition ¶
type BasicRuleCondition interface { AsThresholdRuleCondition() (*ThresholdRuleCondition, bool) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool) AsRuleCondition() (*RuleCondition, bool) }
BasicRuleCondition the condition that results in the alert rule being activated.
type BasicRuleDataSource ¶
type BasicRuleDataSource interface { AsRuleMetricDataSource() (*RuleMetricDataSource, bool) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool) AsRuleDataSource() (*RuleDataSource, bool) }
BasicRuleDataSource the resource from which the rule collects its data.
type CalculateBaselineResponse ¶
type CalculateBaselineResponse struct { autorest.Response `json:"-"` // Type - the resource type of the baseline resource. Type *string `json:"type,omitempty"` // Timestamps - the array of timestamps of the baselines. Timestamps *[]date.Time `json:"timestamps,omitempty"` // Baseline - the baseline values for each sensitivity. Baseline *[]Baseline `json:"baseline,omitempty"` }
CalculateBaselineResponse the response to a calculate baseline call.
type CategoryType ¶
type CategoryType string
CategoryType enumerates the values for category type.
const ( // Logs ... Logs CategoryType = "Logs" // Metrics ... Metrics CategoryType = "Metrics" )
func PossibleCategoryTypeValues ¶
func PossibleCategoryTypeValues() []CategoryType
PossibleCategoryTypeValues returns an array of possible values for the CategoryType const type.
type ComparisonOperationType ¶
type ComparisonOperationType string
ComparisonOperationType enumerates the values for comparison operation type.
const ( // Equals ... Equals ComparisonOperationType = "Equals" // GreaterThan ... GreaterThan ComparisonOperationType = "GreaterThan" // GreaterThanOrEqual ... GreaterThanOrEqual ComparisonOperationType = "GreaterThanOrEqual" // LessThan ... LessThan ComparisonOperationType = "LessThan" // LessThanOrEqual ... LessThanOrEqual ComparisonOperationType = "LessThanOrEqual" // NotEquals ... NotEquals ComparisonOperationType = "NotEquals" )
func PossibleComparisonOperationTypeValues ¶
func PossibleComparisonOperationTypeValues() []ComparisonOperationType
PossibleComparisonOperationTypeValues returns an array of possible values for the ComparisonOperationType const type.
type ConditionOperator ¶
type ConditionOperator string
ConditionOperator enumerates the values for condition operator.
const ( // ConditionOperatorGreaterThan ... ConditionOperatorGreaterThan ConditionOperator = "GreaterThan" // ConditionOperatorGreaterThanOrEqual ... ConditionOperatorGreaterThanOrEqual ConditionOperator = "GreaterThanOrEqual" // ConditionOperatorLessThan ... ConditionOperatorLessThan ConditionOperator = "LessThan" // ConditionOperatorLessThanOrEqual ... ConditionOperatorLessThanOrEqual ConditionOperator = "LessThanOrEqual" )
func PossibleConditionOperatorValues ¶
func PossibleConditionOperatorValues() []ConditionOperator
PossibleConditionOperatorValues returns an array of possible values for the ConditionOperator const type.
type ConditionalOperator ¶
type ConditionalOperator string
ConditionalOperator enumerates the values for conditional operator.
const ( // ConditionalOperatorEqual ... ConditionalOperatorEqual ConditionalOperator = "Equal" // ConditionalOperatorGreaterThan ... ConditionalOperatorGreaterThan ConditionalOperator = "GreaterThan" // ConditionalOperatorLessThan ... ConditionalOperatorLessThan ConditionalOperator = "LessThan" )
func PossibleConditionalOperatorValues ¶
func PossibleConditionalOperatorValues() []ConditionalOperator
PossibleConditionalOperatorValues returns an array of possible values for the ConditionalOperator const type.
type Criteria ¶
type Criteria struct { // MetricName - Name of the metric MetricName *string `json:"metricName,omitempty"` // Dimensions - List of Dimensions for creating metric Dimensions *[]Dimension `json:"dimensions,omitempty"` }
Criteria specifies the criteria for converting log to metric.
type CriterionType ¶
type CriterionType string
CriterionType enumerates the values for criterion type.
const ( // CriterionTypeDynamicThresholdCriterion ... CriterionTypeDynamicThresholdCriterion CriterionType = "DynamicThresholdCriterion" // CriterionTypeMultiMetricCriteria ... CriterionTypeMultiMetricCriteria CriterionType = "MultiMetricCriteria" // CriterionTypeStaticThresholdCriterion ... CriterionTypeStaticThresholdCriterion CriterionType = "StaticThresholdCriterion" )
func PossibleCriterionTypeValues ¶
func PossibleCriterionTypeValues() []CriterionType
PossibleCriterionTypeValues returns an array of possible values for the CriterionType const type.
type DiagnosticSettings ¶
type DiagnosticSettings struct { // StorageAccountID - The resource ID of the storage account to which you would like to send Diagnostic Logs. StorageAccountID *string `json:"storageAccountId,omitempty"` // ServiceBusRuleID - The service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility. ServiceBusRuleID *string `json:"serviceBusRuleId,omitempty"` // EventHubAuthorizationRuleID - The resource Id for the event hub authorization rule. EventHubAuthorizationRuleID *string `json:"eventHubAuthorizationRuleId,omitempty"` // EventHubName - The name of the event hub. If none is specified, the default event hub will be selected. EventHubName *string `json:"eventHubName,omitempty"` // Metrics - The list of metric settings. Metrics *[]MetricSettings `json:"metrics,omitempty"` // Logs - The list of logs settings. Logs *[]LogSettings `json:"logs,omitempty"` // WorkspaceID - The full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example: /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2 WorkspaceID *string `json:"workspaceId,omitempty"` // LogAnalyticsDestinationType - A string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use a destination type constructed as follows: <normalized service identity>_<normalized category name>. Possible values are: Dedicated and null (null is default.) LogAnalyticsDestinationType *string `json:"logAnalyticsDestinationType,omitempty"` }
DiagnosticSettings the diagnostic settings.
type DiagnosticSettingsCategory ¶
type DiagnosticSettingsCategory struct { // CategoryType - The type of the diagnostic settings category. Possible values include: 'Metrics', 'Logs' CategoryType CategoryType `json:"categoryType,omitempty"` }
DiagnosticSettingsCategory the diagnostic settings Category.
type DiagnosticSettingsCategoryResource ¶
type DiagnosticSettingsCategoryResource struct { autorest.Response `json:"-"` // DiagnosticSettingsCategory - The properties of a Diagnostic Settings Category. *DiagnosticSettingsCategory `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` }
DiagnosticSettingsCategoryResource the diagnostic settings category resource.
func (DiagnosticSettingsCategoryResource) MarshalJSON ¶
func (dscr DiagnosticSettingsCategoryResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DiagnosticSettingsCategoryResource.
func (*DiagnosticSettingsCategoryResource) UnmarshalJSON ¶
func (dscr *DiagnosticSettingsCategoryResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DiagnosticSettingsCategoryResource struct.
type DiagnosticSettingsCategoryResourceCollection ¶
type DiagnosticSettingsCategoryResourceCollection struct { autorest.Response `json:"-"` // Value - The collection of diagnostic settings category resources. Value *[]DiagnosticSettingsCategoryResource `json:"value,omitempty"` }
DiagnosticSettingsCategoryResourceCollection represents a collection of diagnostic setting category resources.
type DiagnosticSettingsResource ¶
type DiagnosticSettingsResource struct { autorest.Response `json:"-"` // DiagnosticSettings - Properties of a Diagnostic Settings Resource. *DiagnosticSettings `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` }
DiagnosticSettingsResource the diagnostic setting resource.
func (DiagnosticSettingsResource) MarshalJSON ¶
func (dsr DiagnosticSettingsResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DiagnosticSettingsResource.
func (*DiagnosticSettingsResource) UnmarshalJSON ¶
func (dsr *DiagnosticSettingsResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DiagnosticSettingsResource struct.
type DiagnosticSettingsResourceCollection ¶
type DiagnosticSettingsResourceCollection struct { autorest.Response `json:"-"` // Value - The collection of diagnostic settings resources;. Value *[]DiagnosticSettingsResource `json:"value,omitempty"` }
DiagnosticSettingsResourceCollection represents a collection of alert rule resources.
type Dimension ¶
type Dimension struct { // Name - Name of the dimension Name *string `json:"name,omitempty"` // Operator - Operator for dimension values Operator *string `json:"operator,omitempty"` // Values - List of dimension values Values *[]string `json:"values,omitempty"` }
Dimension specifies the criteria for converting log to metric.
type DynamicMetricCriteria ¶
type DynamicMetricCriteria struct { // Operator - The operator used to compare the metric value against the threshold. Possible values include: 'DynamicThresholdOperatorGreaterThan', 'DynamicThresholdOperatorLessThan', 'DynamicThresholdOperatorGreaterOrLessThan' Operator DynamicThresholdOperator `json:"operator,omitempty"` // AlertSensitivity - The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern. Possible values include: 'Low', 'Medium', 'High' AlertSensitivity DynamicThresholdSensitivity `json:"alertSensitivity,omitempty"` // FailingPeriods - The minimum number of violations required within the selected lookback time window required to raise an alert. FailingPeriods *DynamicThresholdFailingPeriods `json:"failingPeriods,omitempty"` // IgnoreDataBefore - Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format) IgnoreDataBefore *date.Time `json:"ignoreDataBefore,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Name - Name of the criteria. Name *string `json:"name,omitempty"` // MetricName - Name of the metric. MetricName *string `json:"metricName,omitempty"` // MetricNamespace - Namespace of the metric. MetricNamespace *string `json:"metricNamespace,omitempty"` // TimeAggregation - the criteria time aggregation types. TimeAggregation interface{} `json:"timeAggregation,omitempty"` // Dimensions - List of dimension conditions. Dimensions *[]MetricDimension `json:"dimensions,omitempty"` // SkipMetricValidation - Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. SkipMetricValidation *bool `json:"skipMetricValidation,omitempty"` // CriterionType - Possible values include: 'CriterionTypeMultiMetricCriteria', 'CriterionTypeStaticThresholdCriterion', 'CriterionTypeDynamicThresholdCriterion' CriterionType CriterionType `json:"criterionType,omitempty"` }
DynamicMetricCriteria criterion for dynamic threshold.
func (DynamicMetricCriteria) AsBasicMultiMetricCriteria ¶
func (dmc DynamicMetricCriteria) AsBasicMultiMetricCriteria() (BasicMultiMetricCriteria, bool)
AsBasicMultiMetricCriteria is the BasicMultiMetricCriteria implementation for DynamicMetricCriteria.
func (DynamicMetricCriteria) AsDynamicMetricCriteria ¶
func (dmc DynamicMetricCriteria) AsDynamicMetricCriteria() (*DynamicMetricCriteria, bool)
AsDynamicMetricCriteria is the BasicMultiMetricCriteria implementation for DynamicMetricCriteria.
func (DynamicMetricCriteria) AsMetricCriteria ¶
func (dmc DynamicMetricCriteria) AsMetricCriteria() (*MetricCriteria, bool)
AsMetricCriteria is the BasicMultiMetricCriteria implementation for DynamicMetricCriteria.
func (DynamicMetricCriteria) AsMultiMetricCriteria ¶
func (dmc DynamicMetricCriteria) AsMultiMetricCriteria() (*MultiMetricCriteria, bool)
AsMultiMetricCriteria is the BasicMultiMetricCriteria implementation for DynamicMetricCriteria.
func (DynamicMetricCriteria) MarshalJSON ¶
func (dmc DynamicMetricCriteria) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for DynamicMetricCriteria.
func (*DynamicMetricCriteria) UnmarshalJSON ¶
func (dmc *DynamicMetricCriteria) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for DynamicMetricCriteria struct.
type DynamicThresholdFailingPeriods ¶
type DynamicThresholdFailingPeriods struct { // NumberOfEvaluationPeriods - The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points. NumberOfEvaluationPeriods *float64 `json:"numberOfEvaluationPeriods,omitempty"` // MinFailingPeriodsToAlert - The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods. MinFailingPeriodsToAlert *float64 `json:"minFailingPeriodsToAlert,omitempty"` }
DynamicThresholdFailingPeriods the minimum number of violations required within the selected lookback time window required to raise an alert.
type DynamicThresholdOperator ¶
type DynamicThresholdOperator string
DynamicThresholdOperator enumerates the values for dynamic threshold operator.
const ( // DynamicThresholdOperatorGreaterOrLessThan ... DynamicThresholdOperatorGreaterOrLessThan DynamicThresholdOperator = "GreaterOrLessThan" // DynamicThresholdOperatorGreaterThan ... DynamicThresholdOperatorGreaterThan DynamicThresholdOperator = "GreaterThan" // DynamicThresholdOperatorLessThan ... DynamicThresholdOperatorLessThan DynamicThresholdOperator = "LessThan" )
func PossibleDynamicThresholdOperatorValues ¶
func PossibleDynamicThresholdOperatorValues() []DynamicThresholdOperator
PossibleDynamicThresholdOperatorValues returns an array of possible values for the DynamicThresholdOperator const type.
type DynamicThresholdSensitivity ¶
type DynamicThresholdSensitivity string
DynamicThresholdSensitivity enumerates the values for dynamic threshold sensitivity.
const ( // High ... High DynamicThresholdSensitivity = "High" // Low ... Low DynamicThresholdSensitivity = "Low" // Medium ... Medium DynamicThresholdSensitivity = "Medium" )
func PossibleDynamicThresholdSensitivityValues ¶
func PossibleDynamicThresholdSensitivityValues() []DynamicThresholdSensitivity
PossibleDynamicThresholdSensitivityValues returns an array of possible values for the DynamicThresholdSensitivity const type.
type EmailNotification ¶
type EmailNotification struct { // SendToSubscriptionAdministrator - a value indicating whether to send email to subscription administrator. SendToSubscriptionAdministrator *bool `json:"sendToSubscriptionAdministrator,omitempty"` // SendToSubscriptionCoAdministrators - a value indicating whether to send email to subscription co-administrators. SendToSubscriptionCoAdministrators *bool `json:"sendToSubscriptionCoAdministrators,omitempty"` // CustomEmails - the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored. CustomEmails *[]string `json:"customEmails,omitempty"` }
EmailNotification email notification of an autoscale event.
type EmailReceiver ¶
type EmailReceiver struct { // Name - The name of the email receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // EmailAddress - The email address of this receiver. EmailAddress *string `json:"emailAddress,omitempty"` // Status - READ-ONLY; The receiver status of the e-mail. Possible values include: 'ReceiverStatusNotSpecified', 'ReceiverStatusEnabled', 'ReceiverStatusDisabled' Status ReceiverStatus `json:"status,omitempty"` }
EmailReceiver an email receiver.
func (EmailReceiver) MarshalJSON ¶
func (er EmailReceiver) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EmailReceiver.
type EnableRequest ¶
type EnableRequest struct { // ReceiverName - The name of the receiver to resubscribe. ReceiverName *string `json:"receiverName,omitempty"` }
EnableRequest describes a receiver that should be resubscribed.
type Enabled ¶
type Enabled string
Enabled enumerates the values for enabled.
func PossibleEnabledValues ¶
func PossibleEnabledValues() []Enabled
PossibleEnabledValues returns an array of possible values for the Enabled const type.
type ErrorResponse ¶
type ErrorResponse struct { // Code - Error code Code *string `json:"code,omitempty"` // Message - Error message indicating why the operation failed. Message *string `json:"message,omitempty"` }
ErrorResponse describes the format of Error response.
type EventCategoryCollection ¶
type EventCategoryCollection struct { autorest.Response `json:"-"` // Value - the list that includes the Azure event categories. Value *[]LocalizableString `json:"value,omitempty"` }
EventCategoryCollection a collection of event categories. Currently possible values are: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.
type EventData ¶
type EventData struct { // Authorization - READ-ONLY; The sender authorization information. Authorization *SenderAuthorization `json:"authorization,omitempty"` // Claims - READ-ONLY; key value pairs to identify ARM permissions. Claims map[string]*string `json:"claims"` // Caller - READ-ONLY; the email address of the user who has performed the operation, the UPN claim or SPN claim based on availability. Caller *string `json:"caller,omitempty"` // Description - READ-ONLY; the description of the event. Description *string `json:"description,omitempty"` // ID - READ-ONLY; the Id of this event as required by ARM for RBAC. It contains the EventDataID and a timestamp information. ID *string `json:"id,omitempty"` // EventDataID - READ-ONLY; the event data Id. This is a unique identifier for an event. EventDataID *string `json:"eventDataId,omitempty"` // CorrelationID - READ-ONLY; the correlation Id, usually a GUID in the string format. The correlation Id is shared among the events that belong to the same uber operation. CorrelationID *string `json:"correlationId,omitempty"` // EventName - READ-ONLY; the event name. This value should not be confused with OperationName. For practical purposes, OperationName might be more appealing to end users. EventName *LocalizableString `json:"eventName,omitempty"` // Category - READ-ONLY; the event category. Category *LocalizableString `json:"category,omitempty"` // HTTPRequest - READ-ONLY; the HTTP request info. Usually includes the 'clientRequestId', 'clientIpAddress' (IP address of the user who initiated the event) and 'method' (HTTP method e.g. PUT). HTTPRequest *HTTPRequestInfo `json:"httpRequest,omitempty"` // Level - READ-ONLY; the event level. Possible values include: 'Critical', 'Error', 'Warning', 'Informational', 'Verbose' Level EventLevel `json:"level,omitempty"` // ResourceGroupName - READ-ONLY; the resource group name of the impacted resource. ResourceGroupName *string `json:"resourceGroupName,omitempty"` // ResourceProviderName - READ-ONLY; the resource provider name of the impacted resource. ResourceProviderName *LocalizableString `json:"resourceProviderName,omitempty"` // ResourceID - READ-ONLY; the resource uri that uniquely identifies the resource that caused this event. ResourceID *string `json:"resourceId,omitempty"` // ResourceType - READ-ONLY; the resource type ResourceType *LocalizableString `json:"resourceType,omitempty"` // OperationID - READ-ONLY; It is usually a GUID shared among the events corresponding to single operation. This value should not be confused with EventName. OperationID *string `json:"operationId,omitempty"` // OperationName - READ-ONLY; the operation name. OperationName *LocalizableString `json:"operationName,omitempty"` // Properties - READ-ONLY; the set of <Key, Value> pairs (usually a Dictionary<String, String>) that includes details about the event. Properties map[string]*string `json:"properties"` // Status - READ-ONLY; a string describing the status of the operation. Some typical values are: Started, In progress, Succeeded, Failed, Resolved. Status *LocalizableString `json:"status,omitempty"` // SubStatus - READ-ONLY; the event sub status. Most of the time, when included, this captures the HTTP status code of the REST call. Common values are: OK (HTTP Status Code: 200), Created (HTTP Status Code: 201), Accepted (HTTP Status Code: 202), No Content (HTTP Status Code: 204), Bad Request(HTTP Status Code: 400), Not Found (HTTP Status Code: 404), Conflict (HTTP Status Code: 409), Internal Server Error (HTTP Status Code: 500), Service Unavailable (HTTP Status Code:503), Gateway Timeout (HTTP Status Code: 504) SubStatus *LocalizableString `json:"subStatus,omitempty"` // EventTimestamp - READ-ONLY; the timestamp of when the event was generated by the Azure service processing the request corresponding the event. It in ISO 8601 format. EventTimestamp *date.Time `json:"eventTimestamp,omitempty"` // SubmissionTimestamp - READ-ONLY; the timestamp of when the event became available for querying via this API. It is in ISO 8601 format. This value should not be confused eventTimestamp. As there might be a delay between the occurrence time of the event, and the time that the event is submitted to the Azure logging infrastructure. SubmissionTimestamp *date.Time `json:"submissionTimestamp,omitempty"` // SubscriptionID - READ-ONLY; the Azure subscription Id usually a GUID. SubscriptionID *string `json:"subscriptionId,omitempty"` // TenantID - READ-ONLY; the Azure tenant Id TenantID *string `json:"tenantId,omitempty"` }
EventData the Azure event log entries are of type EventData
func (EventData) MarshalJSON ¶
MarshalJSON is the custom marshaler for EventData.
type EventDataCollection ¶
type EventDataCollection struct { autorest.Response `json:"-"` // Value - this list that includes the Azure audit logs. Value *[]EventData `json:"value,omitempty"` // NextLink - Provides the link to retrieve the next set of events. NextLink *string `json:"nextLink,omitempty"` }
EventDataCollection represents collection of events.
func (EventDataCollection) IsEmpty ¶
func (edc EventDataCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type EventDataCollectionIterator ¶
type EventDataCollectionIterator struct {
// contains filtered or unexported fields
}
EventDataCollectionIterator provides access to a complete listing of EventData values.
func NewEventDataCollectionIterator ¶
func NewEventDataCollectionIterator(page EventDataCollectionPage) EventDataCollectionIterator
Creates a new instance of the EventDataCollectionIterator type.
func (*EventDataCollectionIterator) Next ¶
func (iter *EventDataCollectionIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*EventDataCollectionIterator) NextWithContext ¶
func (iter *EventDataCollectionIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (EventDataCollectionIterator) NotDone ¶
func (iter EventDataCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (EventDataCollectionIterator) Response ¶
func (iter EventDataCollectionIterator) Response() EventDataCollection
Response returns the raw server response from the last page request.
func (EventDataCollectionIterator) Value ¶
func (iter EventDataCollectionIterator) Value() EventData
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type EventDataCollectionPage ¶
type EventDataCollectionPage struct {
// contains filtered or unexported fields
}
EventDataCollectionPage contains a page of EventData values.
func NewEventDataCollectionPage ¶
func NewEventDataCollectionPage(cur EventDataCollection, getNextPage func(context.Context, EventDataCollection) (EventDataCollection, error)) EventDataCollectionPage
Creates a new instance of the EventDataCollectionPage type.
func (*EventDataCollectionPage) Next ¶
func (page *EventDataCollectionPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*EventDataCollectionPage) NextWithContext ¶
func (page *EventDataCollectionPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (EventDataCollectionPage) NotDone ¶
func (page EventDataCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (EventDataCollectionPage) Response ¶
func (page EventDataCollectionPage) Response() EventDataCollection
Response returns the raw server response from the last page request.
func (EventDataCollectionPage) Values ¶
func (page EventDataCollectionPage) Values() []EventData
Values returns the slice of values for the current page or nil if there are no values.
type EventLevel ¶
type EventLevel string
EventLevel enumerates the values for event level.
const ( // Critical ... Critical EventLevel = "Critical" // Error ... Error EventLevel = "Error" // Informational ... Informational EventLevel = "Informational" // Verbose ... Verbose EventLevel = "Verbose" // Warning ... Warning EventLevel = "Warning" )
func PossibleEventLevelValues ¶
func PossibleEventLevelValues() []EventLevel
PossibleEventLevelValues returns an array of possible values for the EventLevel const type.
type HTTPRequestInfo ¶
type HTTPRequestInfo struct { // ClientRequestID - the client request id. ClientRequestID *string `json:"clientRequestId,omitempty"` // ClientIPAddress - the client Ip Address ClientIPAddress *string `json:"clientIpAddress,omitempty"` // Method - the Http request method. Method *string `json:"method,omitempty"` // URI - the Uri. URI *string `json:"uri,omitempty"` }
HTTPRequestInfo the Http request info.
type Incident ¶
type Incident struct { autorest.Response `json:"-"` // Name - READ-ONLY; Incident name. Name *string `json:"name,omitempty"` // RuleName - READ-ONLY; Rule name that is associated with the incident. RuleName *string `json:"ruleName,omitempty"` // IsActive - READ-ONLY; A boolean to indicate whether the incident is active or resolved. IsActive *bool `json:"isActive,omitempty"` // ActivatedTime - READ-ONLY; The time at which the incident was activated in ISO8601 format. ActivatedTime *date.Time `json:"activatedTime,omitempty"` // ResolvedTime - READ-ONLY; The time at which the incident was resolved in ISO8601 format. If null, it means the incident is still active. ResolvedTime *date.Time `json:"resolvedTime,omitempty"` }
Incident an alert incident indicates the activation status of an alert rule.
type IncidentListResult ¶
type IncidentListResult struct { autorest.Response `json:"-"` // Value - the incident collection. Value *[]Incident `json:"value,omitempty"` }
IncidentListResult the List incidents operation response.
type ItsmReceiver ¶
type ItsmReceiver struct { // Name - The name of the Itsm receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // WorkspaceID - OMS LA instance identifier. WorkspaceID *string `json:"workspaceId,omitempty"` // ConnectionID - Unique identification of ITSM connection among multiple defined in above workspace. ConnectionID *string `json:"connectionId,omitempty"` // TicketConfiguration - JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well. TicketConfiguration *string `json:"ticketConfiguration,omitempty"` // Region - Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope' Region *string `json:"region,omitempty"` }
ItsmReceiver an Itsm receiver.
type LocalizableString ¶
type LocalizableString struct { // Value - the invariant value. Value *string `json:"value,omitempty"` // LocalizedValue - the locale specific value. LocalizedValue *string `json:"localizedValue,omitempty"` }
LocalizableString the localizable string class.
type LocationThresholdRuleCondition ¶
type LocationThresholdRuleCondition struct { // WindowSize - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day. WindowSize *string `json:"windowSize,omitempty"` // FailedLocationCount - the number of locations that must fail to activate the alert. FailedLocationCount *int32 `json:"failedLocationCount,omitempty"` // DataSource - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource. DataSource BasicRuleDataSource `json:"dataSource,omitempty"` // OdataType - Possible values include: 'OdataTypeRuleCondition', 'OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition', 'OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition', 'OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition' OdataType OdataTypeBasicRuleCondition `json:"odata.type,omitempty"` }
LocationThresholdRuleCondition a rule condition based on a certain number of locations failing.
func (LocationThresholdRuleCondition) AsBasicRuleCondition ¶
func (ltrc LocationThresholdRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool)
AsBasicRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (LocationThresholdRuleCondition) AsLocationThresholdRuleCondition ¶
func (ltrc LocationThresholdRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool)
AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (LocationThresholdRuleCondition) AsManagementEventRuleCondition ¶
func (ltrc LocationThresholdRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool)
AsManagementEventRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (LocationThresholdRuleCondition) AsRuleCondition ¶
func (ltrc LocationThresholdRuleCondition) AsRuleCondition() (*RuleCondition, bool)
AsRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (LocationThresholdRuleCondition) AsThresholdRuleCondition ¶
func (ltrc LocationThresholdRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)
AsThresholdRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.
func (LocationThresholdRuleCondition) MarshalJSON ¶
func (ltrc LocationThresholdRuleCondition) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LocationThresholdRuleCondition.
func (*LocationThresholdRuleCondition) UnmarshalJSON ¶
func (ltrc *LocationThresholdRuleCondition) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for LocationThresholdRuleCondition struct.
type LogMetricTrigger ¶
type LogMetricTrigger struct { // ThresholdOperator - Evaluation operation for Metric -'GreaterThan' or 'LessThan' or 'Equal'. Possible values include: 'ConditionalOperatorGreaterThan', 'ConditionalOperatorLessThan', 'ConditionalOperatorEqual' ThresholdOperator ConditionalOperator `json:"thresholdOperator,omitempty"` // Threshold - The threshold of the metric trigger. Threshold *float64 `json:"threshold,omitempty"` // MetricTriggerType - Metric Trigger Type - 'Consecutive' or 'Total'. Possible values include: 'MetricTriggerTypeConsecutive', 'MetricTriggerTypeTotal' MetricTriggerType MetricTriggerType `json:"metricTriggerType,omitempty"` // MetricColumn - Evaluation of metric on a particular column MetricColumn *string `json:"metricColumn,omitempty"` }
LogMetricTrigger a log metrics trigger descriptor.
type LogProfileCollection ¶
type LogProfileCollection struct { autorest.Response `json:"-"` // Value - the values of the log profiles. Value *[]LogProfileResource `json:"value,omitempty"` }
LogProfileCollection represents a collection of log profiles.
type LogProfileProperties ¶
type LogProfileProperties struct { // StorageAccountID - the resource id of the storage account to which you would like to send the Activity Log. StorageAccountID *string `json:"storageAccountId,omitempty"` // ServiceBusRuleID - The service bus rule ID of the service bus namespace in which you would like to have Event Hubs created for streaming the Activity Log. The rule ID is of the format: '{service bus resource ID}/authorizationrules/{key name}'. ServiceBusRuleID *string `json:"serviceBusRuleId,omitempty"` // Locations - List of regions for which Activity Log events should be stored or streamed. It is a comma separated list of valid ARM locations including the 'global' location. Locations *[]string `json:"locations,omitempty"` // Categories - the categories of the logs. These categories are created as is convenient to the user. Some values are: 'Write', 'Delete', and/or 'Action.' Categories *[]string `json:"categories,omitempty"` // RetentionPolicy - the retention policy for the events in the log. RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"` }
LogProfileProperties the log profile properties.
type LogProfileResource ¶
type LogProfileResource struct { autorest.Response `json:"-"` // LogProfileProperties - The log profile properties of the resource. *LogProfileProperties `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
LogProfileResource the log profile resource.
func (LogProfileResource) MarshalJSON ¶
func (lpr LogProfileResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LogProfileResource.
func (*LogProfileResource) UnmarshalJSON ¶
func (lpr *LogProfileResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for LogProfileResource struct.
type LogProfileResourcePatch ¶
type LogProfileResourcePatch struct { // Tags - Resource tags Tags map[string]*string `json:"tags"` // LogProfileProperties - The log profile properties for an update operation. *LogProfileProperties `json:"properties,omitempty"` }
LogProfileResourcePatch the log profile resource for patch operations.
func (LogProfileResourcePatch) MarshalJSON ¶
func (lprp LogProfileResourcePatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LogProfileResourcePatch.
func (*LogProfileResourcePatch) UnmarshalJSON ¶
func (lprp *LogProfileResourcePatch) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for LogProfileResourcePatch struct.
type LogSearchRule ¶
type LogSearchRule struct { // Description - The description of the Log Search rule. Description *string `json:"description,omitempty"` // Enabled - The flag which indicates whether the Log Search rule is enabled. Value should be true or false. Possible values include: 'True', 'False' Enabled Enabled `json:"enabled,omitempty"` // LastUpdatedTime - READ-ONLY; Last time the rule was updated in IS08601 format. LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"` // ProvisioningState - READ-ONLY; Provisioning state of the scheduled query rule. Possible values include: 'Succeeded', 'Deploying', 'Canceled', 'Failed' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // Source - Data Source against which rule will Query Data Source *Source `json:"source,omitempty"` // Schedule - Schedule (Frequency, Time Window) for rule. Required for action type - AlertingAction Schedule *Schedule `json:"schedule,omitempty"` // Action - Action needs to be taken on rule execution. Action BasicAction `json:"action,omitempty"` }
LogSearchRule log Search Rule Definition
func (LogSearchRule) MarshalJSON ¶
func (lsr LogSearchRule) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LogSearchRule.
func (*LogSearchRule) UnmarshalJSON ¶
func (lsr *LogSearchRule) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for LogSearchRule struct.
type LogSearchRulePatch ¶
type LogSearchRulePatch struct { // Enabled - The flag which indicates whether the Log Search rule is enabled. Value should be true or false. Possible values include: 'True', 'False' Enabled Enabled `json:"enabled,omitempty"` }
LogSearchRulePatch log Search Rule Definition for Patching
type LogSearchRuleResource ¶
type LogSearchRuleResource struct { autorest.Response `json:"-"` // LogSearchRule - The rule properties of the resource. *LogSearchRule `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
LogSearchRuleResource the Log Search Rule resource.
func (LogSearchRuleResource) MarshalJSON ¶
func (lsrr LogSearchRuleResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LogSearchRuleResource.
func (*LogSearchRuleResource) UnmarshalJSON ¶
func (lsrr *LogSearchRuleResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for LogSearchRuleResource struct.
type LogSearchRuleResourceCollection ¶
type LogSearchRuleResourceCollection struct { autorest.Response `json:"-"` // Value - The values for the Log Search Rule resources. Value *[]LogSearchRuleResource `json:"value,omitempty"` }
LogSearchRuleResourceCollection represents a collection of Log Search rule resources.
type LogSearchRuleResourcePatch ¶
type LogSearchRuleResourcePatch struct { // Tags - Resource tags Tags map[string]*string `json:"tags"` // LogSearchRulePatch - The log search rule properties of the resource. *LogSearchRulePatch `json:"properties,omitempty"` }
LogSearchRuleResourcePatch the log search rule resource for patch operations.
func (LogSearchRuleResourcePatch) MarshalJSON ¶
func (lsrrp LogSearchRuleResourcePatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LogSearchRuleResourcePatch.
func (*LogSearchRuleResourcePatch) UnmarshalJSON ¶
func (lsrrp *LogSearchRuleResourcePatch) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for LogSearchRuleResourcePatch struct.
type LogSettings ¶
type LogSettings struct { // Category - Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation. Category *string `json:"category,omitempty"` // Enabled - a value indicating whether this log is enabled. Enabled *bool `json:"enabled,omitempty"` // RetentionPolicy - the retention policy for this log. RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"` }
LogSettings part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.
type LogToMetricAction ¶
type LogToMetricAction struct { // Criteria - Criteria of Metric Criteria *[]Criteria `json:"criteria,omitempty"` // OdataType - Possible values include: 'OdataTypeAction', 'OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesAlertingAction', 'OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesLogToMetricAction' OdataType OdataTypeBasicAction `json:"odata.type,omitempty"` }
LogToMetricAction specify action need to be taken when rule type is converting log to metric
func (LogToMetricAction) AsAction ¶
func (ltma LogToMetricAction) AsAction() (*Action, bool)
AsAction is the BasicAction implementation for LogToMetricAction.
func (LogToMetricAction) AsAlertingAction ¶
func (ltma LogToMetricAction) AsAlertingAction() (*AlertingAction, bool)
AsAlertingAction is the BasicAction implementation for LogToMetricAction.
func (LogToMetricAction) AsBasicAction ¶
func (ltma LogToMetricAction) AsBasicAction() (BasicAction, bool)
AsBasicAction is the BasicAction implementation for LogToMetricAction.
func (LogToMetricAction) AsLogToMetricAction ¶
func (ltma LogToMetricAction) AsLogToMetricAction() (*LogToMetricAction, bool)
AsLogToMetricAction is the BasicAction implementation for LogToMetricAction.
func (LogToMetricAction) MarshalJSON ¶
func (ltma LogToMetricAction) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for LogToMetricAction.
type LogicAppReceiver ¶
type LogicAppReceiver struct { // Name - The name of the logic app receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // ResourceID - The azure resource id of the logic app receiver. ResourceID *string `json:"resourceId,omitempty"` // CallbackURL - The callback url where http request sent to. CallbackURL *string `json:"callbackUrl,omitempty"` }
LogicAppReceiver a logic app receiver.
type ManagementEventAggregationCondition ¶
type ManagementEventAggregationCondition struct { // Operator - the condition operator. Possible values include: 'ConditionOperatorGreaterThan', 'ConditionOperatorGreaterThanOrEqual', 'ConditionOperatorLessThan', 'ConditionOperatorLessThanOrEqual' Operator ConditionOperator `json:"operator,omitempty"` // Threshold - The threshold value that activates the alert. Threshold *float64 `json:"threshold,omitempty"` // WindowSize - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day. WindowSize *string `json:"windowSize,omitempty"` }
ManagementEventAggregationCondition how the data that is collected should be combined over time.
type ManagementEventRuleCondition ¶
type ManagementEventRuleCondition struct { // Aggregation - How the data that is collected should be combined over time and when the alert is activated. Note that for management event alerts aggregation is optional – if it is not provided then any event will cause the alert to activate. Aggregation *ManagementEventAggregationCondition `json:"aggregation,omitempty"` // DataSource - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource. DataSource BasicRuleDataSource `json:"dataSource,omitempty"` // OdataType - Possible values include: 'OdataTypeRuleCondition', 'OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition', 'OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition', 'OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition' OdataType OdataTypeBasicRuleCondition `json:"odata.type,omitempty"` }
ManagementEventRuleCondition a management event rule condition.
func (ManagementEventRuleCondition) AsBasicRuleCondition ¶
func (merc ManagementEventRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool)
AsBasicRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (ManagementEventRuleCondition) AsLocationThresholdRuleCondition ¶
func (merc ManagementEventRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool)
AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (ManagementEventRuleCondition) AsManagementEventRuleCondition ¶
func (merc ManagementEventRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool)
AsManagementEventRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (ManagementEventRuleCondition) AsRuleCondition ¶
func (merc ManagementEventRuleCondition) AsRuleCondition() (*RuleCondition, bool)
AsRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (ManagementEventRuleCondition) AsThresholdRuleCondition ¶
func (merc ManagementEventRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)
AsThresholdRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.
func (ManagementEventRuleCondition) MarshalJSON ¶
func (merc ManagementEventRuleCondition) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ManagementEventRuleCondition.
func (*ManagementEventRuleCondition) UnmarshalJSON ¶
func (merc *ManagementEventRuleCondition) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ManagementEventRuleCondition struct.
type MetadataValue ¶
type MetadataValue struct { // Name - the name of the metadata. Name *LocalizableString `json:"name,omitempty"` // Value - the value of the metadata. Value *string `json:"value,omitempty"` }
MetadataValue represents a metric metadata value.
type Metric ¶
type Metric struct { // ID - the metric Id. ID *string `json:"id,omitempty"` // Type - the resource type of the metric resource. Type *string `json:"type,omitempty"` // Name - the name and the display name of the metric, i.e. it is localizable string. Name *LocalizableString `json:"name,omitempty"` // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified', 'UnitCores', 'UnitMilliCores', 'UnitNanoCores', 'UnitBitsPerSecond' Unit Unit `json:"unit,omitempty"` // Timeseries - the time series returned when a data query is performed. Timeseries *[]TimeSeriesElement `json:"timeseries,omitempty"` }
Metric the result data of a query.
type MetricAlertAction ¶
type MetricAlertAction struct { // ActionGroupID - the id of the action group to use. ActionGroupID *string `json:"actionGroupId,omitempty"` // WebHookProperties - The properties of a webhook object. WebHookProperties map[string]*string `json:"webHookProperties"` }
MetricAlertAction an alert action.
func (MetricAlertAction) MarshalJSON ¶
func (maa MetricAlertAction) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MetricAlertAction.
type MetricAlertCriteria ¶
type MetricAlertCriteria struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // OdataType - Possible values include: 'OdataTypeMetricAlertCriteria', 'OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria', 'OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria', 'OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria' OdataType OdataTypeBasicMetricAlertCriteria `json:"odata.type,omitempty"` }
MetricAlertCriteria the rule criteria that defines the conditions of the alert rule.
func (MetricAlertCriteria) AsBasicMetricAlertCriteria ¶
func (mac MetricAlertCriteria) AsBasicMetricAlertCriteria() (BasicMetricAlertCriteria, bool)
AsBasicMetricAlertCriteria is the BasicMetricAlertCriteria implementation for MetricAlertCriteria.
func (MetricAlertCriteria) AsMetricAlertCriteria ¶
func (mac MetricAlertCriteria) AsMetricAlertCriteria() (*MetricAlertCriteria, bool)
AsMetricAlertCriteria is the BasicMetricAlertCriteria implementation for MetricAlertCriteria.
func (MetricAlertCriteria) AsMetricAlertMultipleResourceMultipleMetricCriteria ¶
func (mac MetricAlertCriteria) AsMetricAlertMultipleResourceMultipleMetricCriteria() (*MetricAlertMultipleResourceMultipleMetricCriteria, bool)
AsMetricAlertMultipleResourceMultipleMetricCriteria is the BasicMetricAlertCriteria implementation for MetricAlertCriteria.
func (MetricAlertCriteria) AsMetricAlertSingleResourceMultipleMetricCriteria ¶
func (mac MetricAlertCriteria) AsMetricAlertSingleResourceMultipleMetricCriteria() (*MetricAlertSingleResourceMultipleMetricCriteria, bool)
AsMetricAlertSingleResourceMultipleMetricCriteria is the BasicMetricAlertCriteria implementation for MetricAlertCriteria.
func (MetricAlertCriteria) AsWebtestLocationAvailabilityCriteria ¶
func (mac MetricAlertCriteria) AsWebtestLocationAvailabilityCriteria() (*WebtestLocationAvailabilityCriteria, bool)
AsWebtestLocationAvailabilityCriteria is the BasicMetricAlertCriteria implementation for MetricAlertCriteria.
func (MetricAlertCriteria) MarshalJSON ¶
func (mac MetricAlertCriteria) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MetricAlertCriteria.
func (*MetricAlertCriteria) UnmarshalJSON ¶
func (mac *MetricAlertCriteria) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MetricAlertCriteria struct.
type MetricAlertMultipleResourceMultipleMetricCriteria ¶
type MetricAlertMultipleResourceMultipleMetricCriteria struct { // AllOf - the list of multiple metric criteria for this 'all of' operation. AllOf *[]BasicMultiMetricCriteria `json:"allOf,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // OdataType - Possible values include: 'OdataTypeMetricAlertCriteria', 'OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria', 'OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria', 'OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria' OdataType OdataTypeBasicMetricAlertCriteria `json:"odata.type,omitempty"` }
MetricAlertMultipleResourceMultipleMetricCriteria specifies the metric alert criteria for multiple resource that has multiple metric criteria.
func (MetricAlertMultipleResourceMultipleMetricCriteria) AsBasicMetricAlertCriteria ¶
func (mamrmmc MetricAlertMultipleResourceMultipleMetricCriteria) AsBasicMetricAlertCriteria() (BasicMetricAlertCriteria, bool)
AsBasicMetricAlertCriteria is the BasicMetricAlertCriteria implementation for MetricAlertMultipleResourceMultipleMetricCriteria.
func (MetricAlertMultipleResourceMultipleMetricCriteria) AsMetricAlertCriteria ¶
func (mamrmmc MetricAlertMultipleResourceMultipleMetricCriteria) AsMetricAlertCriteria() (*MetricAlertCriteria, bool)
AsMetricAlertCriteria is the BasicMetricAlertCriteria implementation for MetricAlertMultipleResourceMultipleMetricCriteria.
func (MetricAlertMultipleResourceMultipleMetricCriteria) AsMetricAlertMultipleResourceMultipleMetricCriteria ¶
func (mamrmmc MetricAlertMultipleResourceMultipleMetricCriteria) AsMetricAlertMultipleResourceMultipleMetricCriteria() (*MetricAlertMultipleResourceMultipleMetricCriteria, bool)
AsMetricAlertMultipleResourceMultipleMetricCriteria is the BasicMetricAlertCriteria implementation for MetricAlertMultipleResourceMultipleMetricCriteria.
func (MetricAlertMultipleResourceMultipleMetricCriteria) AsMetricAlertSingleResourceMultipleMetricCriteria ¶
func (mamrmmc MetricAlertMultipleResourceMultipleMetricCriteria) AsMetricAlertSingleResourceMultipleMetricCriteria() (*MetricAlertSingleResourceMultipleMetricCriteria, bool)
AsMetricAlertSingleResourceMultipleMetricCriteria is the BasicMetricAlertCriteria implementation for MetricAlertMultipleResourceMultipleMetricCriteria.
func (MetricAlertMultipleResourceMultipleMetricCriteria) AsWebtestLocationAvailabilityCriteria ¶
func (mamrmmc MetricAlertMultipleResourceMultipleMetricCriteria) AsWebtestLocationAvailabilityCriteria() (*WebtestLocationAvailabilityCriteria, bool)
AsWebtestLocationAvailabilityCriteria is the BasicMetricAlertCriteria implementation for MetricAlertMultipleResourceMultipleMetricCriteria.
func (MetricAlertMultipleResourceMultipleMetricCriteria) MarshalJSON ¶
func (mamrmmc MetricAlertMultipleResourceMultipleMetricCriteria) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MetricAlertMultipleResourceMultipleMetricCriteria.
func (*MetricAlertMultipleResourceMultipleMetricCriteria) UnmarshalJSON ¶
func (mamrmmc *MetricAlertMultipleResourceMultipleMetricCriteria) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MetricAlertMultipleResourceMultipleMetricCriteria struct.
type MetricAlertProperties ¶
type MetricAlertProperties struct { // Description - the description of the metric alert that will be included in the alert email. Description *string `json:"description,omitempty"` // Severity - Alert severity {0, 1, 2, 3, 4} Severity *int32 `json:"severity,omitempty"` // Enabled - the flag that indicates whether the metric alert is enabled. Enabled *bool `json:"enabled,omitempty"` // Scopes - the list of resource id's that this metric alert is scoped to. Scopes *[]string `json:"scopes,omitempty"` // EvaluationFrequency - how often the metric alert is evaluated represented in ISO 8601 duration format. EvaluationFrequency *string `json:"evaluationFrequency,omitempty"` // WindowSize - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. WindowSize *string `json:"windowSize,omitempty"` // TargetResourceType - the resource type of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria. TargetResourceType *string `json:"targetResourceType,omitempty"` // TargetResourceRegion - the region of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria. TargetResourceRegion *string `json:"targetResourceRegion,omitempty"` // Criteria - defines the specific alert criteria information. Criteria BasicMetricAlertCriteria `json:"criteria,omitempty"` // AutoMitigate - the flag that indicates whether the alert should be auto resolved or not. The default is true. AutoMitigate *bool `json:"autoMitigate,omitempty"` // Actions - the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. Actions *[]MetricAlertAction `json:"actions,omitempty"` // LastUpdatedTime - READ-ONLY; Last time the rule was updated in ISO8601 format. LastUpdatedTime *date.Time `json:"lastUpdatedTime,omitempty"` }
MetricAlertProperties an alert rule.
func (MetricAlertProperties) MarshalJSON ¶
func (mapVar MetricAlertProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MetricAlertProperties.
func (*MetricAlertProperties) UnmarshalJSON ¶
func (mapVar *MetricAlertProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MetricAlertProperties struct.
type MetricAlertResource ¶
type MetricAlertResource struct { autorest.Response `json:"-"` // MetricAlertProperties - The alert rule properties of the resource. *MetricAlertProperties `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
MetricAlertResource the metric alert resource.
func (MetricAlertResource) MarshalJSON ¶
func (mar MetricAlertResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MetricAlertResource.
func (*MetricAlertResource) UnmarshalJSON ¶
func (mar *MetricAlertResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MetricAlertResource struct.
type MetricAlertResourceCollection ¶
type MetricAlertResourceCollection struct { autorest.Response `json:"-"` // Value - the values for the alert rule resources. Value *[]MetricAlertResource `json:"value,omitempty"` }
MetricAlertResourceCollection represents a collection of alert rule resources.
type MetricAlertResourcePatch ¶
type MetricAlertResourcePatch struct { // Tags - Resource tags Tags map[string]*string `json:"tags"` // MetricAlertProperties - The alert rule properties of the resource. *MetricAlertProperties `json:"properties,omitempty"` }
MetricAlertResourcePatch the metric alert resource for patch operations.
func (MetricAlertResourcePatch) MarshalJSON ¶
func (marp MetricAlertResourcePatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MetricAlertResourcePatch.
func (*MetricAlertResourcePatch) UnmarshalJSON ¶
func (marp *MetricAlertResourcePatch) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MetricAlertResourcePatch struct.
type MetricAlertSingleResourceMultipleMetricCriteria ¶
type MetricAlertSingleResourceMultipleMetricCriteria struct { // AllOf - The list of metric criteria for this 'all of' operation. AllOf *[]MetricCriteria `json:"allOf,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // OdataType - Possible values include: 'OdataTypeMetricAlertCriteria', 'OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria', 'OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria', 'OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria' OdataType OdataTypeBasicMetricAlertCriteria `json:"odata.type,omitempty"` }
MetricAlertSingleResourceMultipleMetricCriteria specifies the metric alert criteria for a single resource that has multiple metric criteria.
func (MetricAlertSingleResourceMultipleMetricCriteria) AsBasicMetricAlertCriteria ¶
func (masrmmc MetricAlertSingleResourceMultipleMetricCriteria) AsBasicMetricAlertCriteria() (BasicMetricAlertCriteria, bool)
AsBasicMetricAlertCriteria is the BasicMetricAlertCriteria implementation for MetricAlertSingleResourceMultipleMetricCriteria.
func (MetricAlertSingleResourceMultipleMetricCriteria) AsMetricAlertCriteria ¶
func (masrmmc MetricAlertSingleResourceMultipleMetricCriteria) AsMetricAlertCriteria() (*MetricAlertCriteria, bool)
AsMetricAlertCriteria is the BasicMetricAlertCriteria implementation for MetricAlertSingleResourceMultipleMetricCriteria.
func (MetricAlertSingleResourceMultipleMetricCriteria) AsMetricAlertMultipleResourceMultipleMetricCriteria ¶
func (masrmmc MetricAlertSingleResourceMultipleMetricCriteria) AsMetricAlertMultipleResourceMultipleMetricCriteria() (*MetricAlertMultipleResourceMultipleMetricCriteria, bool)
AsMetricAlertMultipleResourceMultipleMetricCriteria is the BasicMetricAlertCriteria implementation for MetricAlertSingleResourceMultipleMetricCriteria.
func (MetricAlertSingleResourceMultipleMetricCriteria) AsMetricAlertSingleResourceMultipleMetricCriteria ¶
func (masrmmc MetricAlertSingleResourceMultipleMetricCriteria) AsMetricAlertSingleResourceMultipleMetricCriteria() (*MetricAlertSingleResourceMultipleMetricCriteria, bool)
AsMetricAlertSingleResourceMultipleMetricCriteria is the BasicMetricAlertCriteria implementation for MetricAlertSingleResourceMultipleMetricCriteria.
func (MetricAlertSingleResourceMultipleMetricCriteria) AsWebtestLocationAvailabilityCriteria ¶
func (masrmmc MetricAlertSingleResourceMultipleMetricCriteria) AsWebtestLocationAvailabilityCriteria() (*WebtestLocationAvailabilityCriteria, bool)
AsWebtestLocationAvailabilityCriteria is the BasicMetricAlertCriteria implementation for MetricAlertSingleResourceMultipleMetricCriteria.
func (MetricAlertSingleResourceMultipleMetricCriteria) MarshalJSON ¶
func (masrmmc MetricAlertSingleResourceMultipleMetricCriteria) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MetricAlertSingleResourceMultipleMetricCriteria.
func (*MetricAlertSingleResourceMultipleMetricCriteria) UnmarshalJSON ¶
func (masrmmc *MetricAlertSingleResourceMultipleMetricCriteria) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MetricAlertSingleResourceMultipleMetricCriteria struct.
type MetricAlertStatus ¶
type MetricAlertStatus struct { // Name - The status name. Name *string `json:"name,omitempty"` // ID - The alert rule arm id. ID *string `json:"id,omitempty"` // Type - The extended resource type name. Type *string `json:"type,omitempty"` // Properties - The alert status properties of the metric alert status. Properties *MetricAlertStatusProperties `json:"properties,omitempty"` }
MetricAlertStatus an alert status.
type MetricAlertStatusCollection ¶
type MetricAlertStatusCollection struct { autorest.Response `json:"-"` // Value - the values for the alert rule resources. Value *[]MetricAlertStatus `json:"value,omitempty"` }
MetricAlertStatusCollection represents a collection of alert rule resources.
type MetricAlertStatusProperties ¶
type MetricAlertStatusProperties struct { // Dimensions - An object describing the type of the dimensions. Dimensions map[string]*string `json:"dimensions"` // Status - status value Status *string `json:"status,omitempty"` // Timestamp - UTC time when the status was checked. Timestamp *date.Time `json:"timestamp,omitempty"` }
MetricAlertStatusProperties an alert status properties.
func (MetricAlertStatusProperties) MarshalJSON ¶
func (masp MetricAlertStatusProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MetricAlertStatusProperties.
type MetricAvailability ¶
type MetricAvailability struct { // TimeGrain - the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc. TimeGrain *string `json:"timeGrain,omitempty"` // Retention - the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc. Retention *string `json:"retention,omitempty"` }
MetricAvailability metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain.
type MetricCriteria ¶
type MetricCriteria struct { // Operator - the criteria operator. Possible values include: 'OperatorEquals', 'OperatorNotEquals', 'OperatorGreaterThan', 'OperatorGreaterThanOrEqual', 'OperatorLessThan', 'OperatorLessThanOrEqual' Operator Operator `json:"operator,omitempty"` // Threshold - the criteria threshold value that activates the alert. Threshold *float64 `json:"threshold,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Name - Name of the criteria. Name *string `json:"name,omitempty"` // MetricName - Name of the metric. MetricName *string `json:"metricName,omitempty"` // MetricNamespace - Namespace of the metric. MetricNamespace *string `json:"metricNamespace,omitempty"` // TimeAggregation - the criteria time aggregation types. TimeAggregation interface{} `json:"timeAggregation,omitempty"` // Dimensions - List of dimension conditions. Dimensions *[]MetricDimension `json:"dimensions,omitempty"` // SkipMetricValidation - Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. SkipMetricValidation *bool `json:"skipMetricValidation,omitempty"` // CriterionType - Possible values include: 'CriterionTypeMultiMetricCriteria', 'CriterionTypeStaticThresholdCriterion', 'CriterionTypeDynamicThresholdCriterion' CriterionType CriterionType `json:"criterionType,omitempty"` }
MetricCriteria criterion to filter metrics.
func (MetricCriteria) AsBasicMultiMetricCriteria ¶
func (mc MetricCriteria) AsBasicMultiMetricCriteria() (BasicMultiMetricCriteria, bool)
AsBasicMultiMetricCriteria is the BasicMultiMetricCriteria implementation for MetricCriteria.
func (MetricCriteria) AsDynamicMetricCriteria ¶
func (mc MetricCriteria) AsDynamicMetricCriteria() (*DynamicMetricCriteria, bool)
AsDynamicMetricCriteria is the BasicMultiMetricCriteria implementation for MetricCriteria.
func (MetricCriteria) AsMetricCriteria ¶
func (mc MetricCriteria) AsMetricCriteria() (*MetricCriteria, bool)
AsMetricCriteria is the BasicMultiMetricCriteria implementation for MetricCriteria.
func (MetricCriteria) AsMultiMetricCriteria ¶
func (mc MetricCriteria) AsMultiMetricCriteria() (*MultiMetricCriteria, bool)
AsMultiMetricCriteria is the BasicMultiMetricCriteria implementation for MetricCriteria.
func (MetricCriteria) MarshalJSON ¶
func (mc MetricCriteria) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MetricCriteria.
func (*MetricCriteria) UnmarshalJSON ¶
func (mc *MetricCriteria) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MetricCriteria struct.
type MetricDefinition ¶
type MetricDefinition struct { // IsDimensionRequired - Flag to indicate whether the dimension is required. IsDimensionRequired *bool `json:"isDimensionRequired,omitempty"` // ResourceID - the resource identifier of the resource that emitted the metric. ResourceID *string `json:"resourceId,omitempty"` // Namespace - the namespace the metric belongs to. Namespace *string `json:"namespace,omitempty"` // Name - the name and the display name of the metric, i.e. it is a localizable string. Name *LocalizableString `json:"name,omitempty"` // Unit - the unit of the metric. Possible values include: 'UnitCount', 'UnitBytes', 'UnitSeconds', 'UnitCountPerSecond', 'UnitBytesPerSecond', 'UnitPercent', 'UnitMilliSeconds', 'UnitByteSeconds', 'UnitUnspecified', 'UnitCores', 'UnitMilliCores', 'UnitNanoCores', 'UnitBitsPerSecond' Unit Unit `json:"unit,omitempty"` // PrimaryAggregationType - the primary aggregation type value defining how to use the values for display. Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total' PrimaryAggregationType AggregationType `json:"primaryAggregationType,omitempty"` // SupportedAggregationTypes - the collection of what aggregation types are supported. SupportedAggregationTypes *[]AggregationType `json:"supportedAggregationTypes,omitempty"` // MetricAvailabilities - the collection of what aggregation intervals are available to be queried. MetricAvailabilities *[]MetricAvailability `json:"metricAvailabilities,omitempty"` // ID - the resource identifier of the metric definition. ID *string `json:"id,omitempty"` // Dimensions - the name and the display name of the dimension, i.e. it is a localizable string. Dimensions *[]LocalizableString `json:"dimensions,omitempty"` }
MetricDefinition metric definition class specifies the metadata for a metric.
type MetricDefinitionCollection ¶
type MetricDefinitionCollection struct { autorest.Response `json:"-"` // Value - the values for the metric definitions. Value *[]MetricDefinition `json:"value,omitempty"` }
MetricDefinitionCollection represents collection of metric definitions.
type MetricDimension ¶
type MetricDimension struct { // Name - Name of the dimension. Name *string `json:"name,omitempty"` // Operator - the dimension operator. Only 'Include' and 'Exclude' are supported Operator *string `json:"operator,omitempty"` // Values - list of dimension values. Values *[]string `json:"values,omitempty"` }
MetricDimension specifies a metric dimension.
type MetricSettings ¶
type MetricSettings struct { // TimeGrain - the timegrain of the metric in ISO8601 format. TimeGrain *string `json:"timeGrain,omitempty"` // Category - Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation. Category *string `json:"category,omitempty"` // Enabled - a value indicating whether this category is enabled. Enabled *bool `json:"enabled,omitempty"` // RetentionPolicy - the retention policy for this category. RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"` }
MetricSettings part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric.
type MetricStatisticType ¶
type MetricStatisticType string
MetricStatisticType enumerates the values for metric statistic type.
const ( // MetricStatisticTypeAverage ... MetricStatisticTypeAverage MetricStatisticType = "Average" // MetricStatisticTypeMax ... MetricStatisticTypeMax MetricStatisticType = "Max" // MetricStatisticTypeMin ... MetricStatisticTypeMin MetricStatisticType = "Min" // MetricStatisticTypeSum ... MetricStatisticTypeSum MetricStatisticType = "Sum" )
func PossibleMetricStatisticTypeValues ¶
func PossibleMetricStatisticTypeValues() []MetricStatisticType
PossibleMetricStatisticTypeValues returns an array of possible values for the MetricStatisticType const type.
type MetricTrigger ¶
type MetricTrigger struct { // MetricName - the name of the metric that defines what the rule monitors. MetricName *string `json:"metricName,omitempty"` // MetricNamespace - the namespace of the metric that defines what the rule monitors. MetricNamespace *string `json:"metricNamespace,omitempty"` // MetricResourceURI - the resource identifier of the resource the rule monitors. MetricResourceURI *string `json:"metricResourceUri,omitempty"` // TimeGrain - the granularity of metrics the rule monitors. Must be one of the predefined values returned from metric definitions for the metric. Must be between 12 hours and 1 minute. TimeGrain *string `json:"timeGrain,omitempty"` // Statistic - the metric statistic type. How the metrics from multiple instances are combined. Possible values include: 'MetricStatisticTypeAverage', 'MetricStatisticTypeMin', 'MetricStatisticTypeMax', 'MetricStatisticTypeSum' Statistic MetricStatisticType `json:"statistic,omitempty"` // TimeWindow - the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes. TimeWindow *string `json:"timeWindow,omitempty"` // TimeAggregation - time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'TimeAggregationTypeAverage', 'TimeAggregationTypeMinimum', 'TimeAggregationTypeMaximum', 'TimeAggregationTypeTotal', 'TimeAggregationTypeCount', 'TimeAggregationTypeLast' TimeAggregation TimeAggregationType `json:"timeAggregation,omitempty"` // Operator - the operator that is used to compare the metric data and the threshold. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual' Operator ComparisonOperationType `json:"operator,omitempty"` // Threshold - the threshold of the metric that triggers the scale action. Threshold *float64 `json:"threshold,omitempty"` // Dimensions - List of dimension conditions. For example: [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}]. Dimensions *[]ScaleRuleMetricDimension `json:"dimensions,omitempty"` }
MetricTrigger the trigger that results in a scaling action.
type MetricTriggerType ¶
type MetricTriggerType string
MetricTriggerType enumerates the values for metric trigger type.
const ( // MetricTriggerTypeConsecutive ... MetricTriggerTypeConsecutive MetricTriggerType = "Consecutive" // MetricTriggerTypeTotal ... MetricTriggerTypeTotal MetricTriggerType = "Total" )
func PossibleMetricTriggerTypeValues ¶
func PossibleMetricTriggerTypeValues() []MetricTriggerType
PossibleMetricTriggerTypeValues returns an array of possible values for the MetricTriggerType const type.
type MetricValue ¶
type MetricValue struct { // TimeStamp - the timestamp for the metric value in ISO 8601 format. TimeStamp *date.Time `json:"timeStamp,omitempty"` // Average - the average value in the time range. Average *float64 `json:"average,omitempty"` // Minimum - the least value in the time range. Minimum *float64 `json:"minimum,omitempty"` // Maximum - the greatest value in the time range. Maximum *float64 `json:"maximum,omitempty"` // Total - the sum of all of the values in the time range. Total *float64 `json:"total,omitempty"` // Count - the number of samples in the time range. Can be used to determine the number of values that contributed to the average value. Count *float64 `json:"count,omitempty"` }
MetricValue represents a metric value.
type MultiMetricCriteria ¶
type MultiMetricCriteria struct { // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // Name - Name of the criteria. Name *string `json:"name,omitempty"` // MetricName - Name of the metric. MetricName *string `json:"metricName,omitempty"` // MetricNamespace - Namespace of the metric. MetricNamespace *string `json:"metricNamespace,omitempty"` // TimeAggregation - the criteria time aggregation types. TimeAggregation interface{} `json:"timeAggregation,omitempty"` // Dimensions - List of dimension conditions. Dimensions *[]MetricDimension `json:"dimensions,omitempty"` // SkipMetricValidation - Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped. SkipMetricValidation *bool `json:"skipMetricValidation,omitempty"` // CriterionType - Possible values include: 'CriterionTypeMultiMetricCriteria', 'CriterionTypeStaticThresholdCriterion', 'CriterionTypeDynamicThresholdCriterion' CriterionType CriterionType `json:"criterionType,omitempty"` }
MultiMetricCriteria the types of conditions for a multi resource alert.
func (MultiMetricCriteria) AsBasicMultiMetricCriteria ¶
func (mmc MultiMetricCriteria) AsBasicMultiMetricCriteria() (BasicMultiMetricCriteria, bool)
AsBasicMultiMetricCriteria is the BasicMultiMetricCriteria implementation for MultiMetricCriteria.
func (MultiMetricCriteria) AsDynamicMetricCriteria ¶
func (mmc MultiMetricCriteria) AsDynamicMetricCriteria() (*DynamicMetricCriteria, bool)
AsDynamicMetricCriteria is the BasicMultiMetricCriteria implementation for MultiMetricCriteria.
func (MultiMetricCriteria) AsMetricCriteria ¶
func (mmc MultiMetricCriteria) AsMetricCriteria() (*MetricCriteria, bool)
AsMetricCriteria is the BasicMultiMetricCriteria implementation for MultiMetricCriteria.
func (MultiMetricCriteria) AsMultiMetricCriteria ¶
func (mmc MultiMetricCriteria) AsMultiMetricCriteria() (*MultiMetricCriteria, bool)
AsMultiMetricCriteria is the BasicMultiMetricCriteria implementation for MultiMetricCriteria.
func (MultiMetricCriteria) MarshalJSON ¶
func (mmc MultiMetricCriteria) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MultiMetricCriteria.
func (*MultiMetricCriteria) UnmarshalJSON ¶
func (mmc *MultiMetricCriteria) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MultiMetricCriteria struct.
type OdataType ¶
type OdataType string
OdataType enumerates the values for odata type.
const ( // OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource ... OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource OdataType = "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource" // OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource ... OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource OdataType = "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource" // OdataTypeRuleDataSource ... OdataTypeRuleDataSource OdataType = "RuleDataSource" )
func PossibleOdataTypeValues ¶
func PossibleOdataTypeValues() []OdataType
PossibleOdataTypeValues returns an array of possible values for the OdataType const type.
type OdataTypeBasicAction ¶
type OdataTypeBasicAction string
OdataTypeBasicAction enumerates the values for odata type basic action.
const ( // OdataTypeAction ... OdataTypeAction OdataTypeBasicAction = "Action" // OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesAlertingAction ... OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesAlertingAction OdataTypeBasicAction = "" /* 145-byte string literal not displayed */ // OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesLogToMetricAction ... OdataTypeMicrosoftWindowsAzureManagementMonitoringAlertsModelsMicrosoftAppInsightsNexusDataContractsResourcesScheduledQueryRulesLogToMetricAction OdataTypeBasicAction = "" /* 148-byte string literal not displayed */ )
func PossibleOdataTypeBasicActionValues ¶
func PossibleOdataTypeBasicActionValues() []OdataTypeBasicAction
PossibleOdataTypeBasicActionValues returns an array of possible values for the OdataTypeBasicAction const type.
type OdataTypeBasicMetricAlertCriteria ¶
type OdataTypeBasicMetricAlertCriteria string
OdataTypeBasicMetricAlertCriteria enumerates the values for odata type basic metric alert criteria.
const ( // OdataTypeMetricAlertCriteria ... OdataTypeMetricAlertCriteria OdataTypeBasicMetricAlertCriteria = "MetricAlertCriteria" // OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria ... OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria OdataTypeBasicMetricAlertCriteria = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria" // OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria ... OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria OdataTypeBasicMetricAlertCriteria = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria" // OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria ... OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria OdataTypeBasicMetricAlertCriteria = "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria" )
func PossibleOdataTypeBasicMetricAlertCriteriaValues ¶
func PossibleOdataTypeBasicMetricAlertCriteriaValues() []OdataTypeBasicMetricAlertCriteria
PossibleOdataTypeBasicMetricAlertCriteriaValues returns an array of possible values for the OdataTypeBasicMetricAlertCriteria const type.
type OdataTypeBasicRuleAction ¶
type OdataTypeBasicRuleAction string
OdataTypeBasicRuleAction enumerates the values for odata type basic rule action.
const ( // OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction ... OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction OdataTypeBasicRuleAction = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction" // OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction ... OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction OdataTypeBasicRuleAction = "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction" // OdataTypeRuleAction ... OdataTypeRuleAction OdataTypeBasicRuleAction = "RuleAction" )
func PossibleOdataTypeBasicRuleActionValues ¶
func PossibleOdataTypeBasicRuleActionValues() []OdataTypeBasicRuleAction
PossibleOdataTypeBasicRuleActionValues returns an array of possible values for the OdataTypeBasicRuleAction const type.
type OdataTypeBasicRuleCondition ¶
type OdataTypeBasicRuleCondition string
OdataTypeBasicRuleCondition enumerates the values for odata type basic rule condition.
const ( // OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition ... OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition" // OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition ... OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition" // OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition ... OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition OdataTypeBasicRuleCondition = "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition" // OdataTypeRuleCondition ... OdataTypeRuleCondition OdataTypeBasicRuleCondition = "RuleCondition" )
func PossibleOdataTypeBasicRuleConditionValues ¶
func PossibleOdataTypeBasicRuleConditionValues() []OdataTypeBasicRuleCondition
PossibleOdataTypeBasicRuleConditionValues returns an array of possible values for the OdataTypeBasicRuleCondition const type.
type Operation ¶
type Operation struct { // Name - Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` // Display - Display metadata associated with the operation. Display *OperationDisplay `json:"display,omitempty"` }
Operation microsoft Insights API operation definition.
type OperationDisplay ¶
type OperationDisplay struct { // Provider - Service provider: Microsoft.Insights Provider *string `json:"provider,omitempty"` // Resource - Resource on which the operation is performed: AlertRules, Autoscale, etc. Resource *string `json:"resource,omitempty"` // Operation - Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` }
OperationDisplay display metadata associated with the operation.
type OperationListResult ¶
type OperationListResult struct { autorest.Response `json:"-"` // Value - List of operations supported by the Microsoft.Insights provider. Value *[]Operation `json:"value,omitempty"` // NextLink - URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` }
OperationListResult result of the request to list Microsoft.Insights operations. It contains a list of operations and a URL link to get the next set of results.
type Operator ¶
type Operator string
Operator enumerates the values for operator.
const ( // OperatorEquals ... OperatorEquals Operator = "Equals" // OperatorGreaterThan ... OperatorGreaterThan Operator = "GreaterThan" // OperatorGreaterThanOrEqual ... OperatorGreaterThanOrEqual Operator = "GreaterThanOrEqual" // OperatorLessThan ... OperatorLessThan Operator = "LessThan" // OperatorLessThanOrEqual ... OperatorLessThanOrEqual Operator = "LessThanOrEqual" // OperatorNotEquals ... OperatorNotEquals Operator = "NotEquals" )
func PossibleOperatorValues ¶
func PossibleOperatorValues() []Operator
PossibleOperatorValues returns an array of possible values for the Operator const type.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState enumerates the values for provisioning state.
const ( // Canceled ... Canceled ProvisioningState = "Canceled" // Deploying ... Deploying ProvisioningState = "Deploying" // Failed ... Failed ProvisioningState = "Failed" // Succeeded ... Succeeded ProvisioningState = "Succeeded" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
type ProxyOnlyResource ¶
type ProxyOnlyResource struct { // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` }
ProxyOnlyResource a proxy only azure resource object
type QueryType ¶
type QueryType string
QueryType enumerates the values for query type.
const ( // ResultCount ... ResultCount QueryType = "ResultCount" )
func PossibleQueryTypeValues ¶
func PossibleQueryTypeValues() []QueryType
PossibleQueryTypeValues returns an array of possible values for the QueryType const type.
type ReceiverStatus ¶
type ReceiverStatus string
ReceiverStatus enumerates the values for receiver status.
const ( // ReceiverStatusDisabled ... ReceiverStatusDisabled ReceiverStatus = "Disabled" // ReceiverStatusEnabled ... ReceiverStatusEnabled ReceiverStatus = "Enabled" // ReceiverStatusNotSpecified ... ReceiverStatusNotSpecified ReceiverStatus = "NotSpecified" )
func PossibleReceiverStatusValues ¶
func PossibleReceiverStatusValues() []ReceiverStatus
PossibleReceiverStatusValues returns an array of possible values for the ReceiverStatus const type.
type Recurrence ¶
type Recurrence struct { // Frequency - the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly. Possible values include: 'RecurrenceFrequencyNone', 'RecurrenceFrequencySecond', 'RecurrenceFrequencyMinute', 'RecurrenceFrequencyHour', 'RecurrenceFrequencyDay', 'RecurrenceFrequencyWeek', 'RecurrenceFrequencyMonth', 'RecurrenceFrequencyYear' Frequency RecurrenceFrequency `json:"frequency,omitempty"` // Schedule - the scheduling constraints for when the profile begins. Schedule *RecurrentSchedule `json:"schedule,omitempty"` }
Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate element is used.
type RecurrenceFrequency ¶
type RecurrenceFrequency string
RecurrenceFrequency enumerates the values for recurrence frequency.
const ( // RecurrenceFrequencyDay ... RecurrenceFrequencyDay RecurrenceFrequency = "Day" // RecurrenceFrequencyHour ... RecurrenceFrequencyHour RecurrenceFrequency = "Hour" // RecurrenceFrequencyMinute ... RecurrenceFrequencyMinute RecurrenceFrequency = "Minute" // RecurrenceFrequencyMonth ... RecurrenceFrequencyMonth RecurrenceFrequency = "Month" // RecurrenceFrequencyNone ... RecurrenceFrequencyNone RecurrenceFrequency = "None" // RecurrenceFrequencySecond ... RecurrenceFrequencySecond RecurrenceFrequency = "Second" // RecurrenceFrequencyWeek ... RecurrenceFrequencyWeek RecurrenceFrequency = "Week" // RecurrenceFrequencyYear ... RecurrenceFrequencyYear RecurrenceFrequency = "Year" )
func PossibleRecurrenceFrequencyValues ¶
func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency
PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type.
type RecurrentSchedule ¶
type RecurrentSchedule struct { // TimeZone - the timezone for the hours of the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time TimeZone *string `json:"timeZone,omitempty"` // Days - the collection of days that the profile takes effect on. Possible values are Sunday through Saturday. Days *[]string `json:"days,omitempty"` // Hours - A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported). Hours *[]int32 `json:"hours,omitempty"` // Minutes - A collection of minutes at which the profile takes effect at. Minutes *[]int32 `json:"minutes,omitempty"` }
RecurrentSchedule the scheduling constraints for when the profile begins.
type Resource ¶
type Resource struct { // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
Resource an azure resource object
func (Resource) MarshalJSON ¶
MarshalJSON is the custom marshaler for Resource.
type Response ¶
type Response struct { autorest.Response `json:"-"` // Cost - The integer value representing the cost of the query, for data case. Cost *float64 `json:"cost,omitempty"` // Timespan - The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested. Timespan *string `json:"timespan,omitempty"` // Interval - The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made. Interval *string `json:"interval,omitempty"` // Namespace - The namespace of the metrics been queried Namespace *string `json:"namespace,omitempty"` // Resourceregion - The region of the resource been queried for metrics. Resourceregion *string `json:"resourceregion,omitempty"` // Value - the value of the collection. Value *[]Metric `json:"value,omitempty"` }
Response the response to a metrics query.
type ResultType ¶
type ResultType string
ResultType enumerates the values for result type.
const ( // Data ... Data ResultType = "Data" // Metadata ... Metadata ResultType = "Metadata" )
func PossibleResultTypeValues ¶
func PossibleResultTypeValues() []ResultType
PossibleResultTypeValues returns an array of possible values for the ResultType const type.
type RetentionPolicy ¶
type RetentionPolicy struct { // Enabled - a value indicating whether the retention policy is enabled. Enabled *bool `json:"enabled,omitempty"` // Days - the number of days for the retention in days. A value of 0 will retain the events indefinitely. Days *int32 `json:"days,omitempty"` }
RetentionPolicy specifies the retention policy for the log.
type RuleAction ¶
type RuleAction struct { // OdataType - Possible values include: 'OdataTypeRuleAction', 'OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction', 'OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction' OdataType OdataTypeBasicRuleAction `json:"odata.type,omitempty"` }
RuleAction the action that is performed when the alert rule becomes active, and when an alert condition is resolved.
func (RuleAction) AsBasicRuleAction ¶
func (ra RuleAction) AsBasicRuleAction() (BasicRuleAction, bool)
AsBasicRuleAction is the BasicRuleAction implementation for RuleAction.
func (RuleAction) AsRuleAction ¶
func (ra RuleAction) AsRuleAction() (*RuleAction, bool)
AsRuleAction is the BasicRuleAction implementation for RuleAction.
func (RuleAction) AsRuleEmailAction ¶
func (ra RuleAction) AsRuleEmailAction() (*RuleEmailAction, bool)
AsRuleEmailAction is the BasicRuleAction implementation for RuleAction.
func (RuleAction) AsRuleWebhookAction ¶
func (ra RuleAction) AsRuleWebhookAction() (*RuleWebhookAction, bool)
AsRuleWebhookAction is the BasicRuleAction implementation for RuleAction.
func (RuleAction) MarshalJSON ¶
func (ra RuleAction) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleAction.
type RuleCondition ¶
type RuleCondition struct { // DataSource - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource. DataSource BasicRuleDataSource `json:"dataSource,omitempty"` // OdataType - Possible values include: 'OdataTypeRuleCondition', 'OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition', 'OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition', 'OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition' OdataType OdataTypeBasicRuleCondition `json:"odata.type,omitempty"` }
RuleCondition the condition that results in the alert rule being activated.
func (RuleCondition) AsBasicRuleCondition ¶
func (rc RuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool)
AsBasicRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (RuleCondition) AsLocationThresholdRuleCondition ¶
func (rc RuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool)
AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (RuleCondition) AsManagementEventRuleCondition ¶
func (rc RuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool)
AsManagementEventRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (RuleCondition) AsRuleCondition ¶
func (rc RuleCondition) AsRuleCondition() (*RuleCondition, bool)
AsRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (RuleCondition) AsThresholdRuleCondition ¶
func (rc RuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)
AsThresholdRuleCondition is the BasicRuleCondition implementation for RuleCondition.
func (RuleCondition) MarshalJSON ¶
func (rc RuleCondition) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleCondition.
func (*RuleCondition) UnmarshalJSON ¶
func (rc *RuleCondition) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for RuleCondition struct.
type RuleDataSource ¶
type RuleDataSource struct { // ResourceURI - the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule. ResourceURI *string `json:"resourceUri,omitempty"` // OdataType - Possible values include: 'OdataTypeRuleDataSource', 'OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource', 'OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource' OdataType OdataType `json:"odata.type,omitempty"` }
RuleDataSource the resource from which the rule collects its data.
func (RuleDataSource) AsBasicRuleDataSource ¶
func (rds RuleDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool)
AsBasicRuleDataSource is the BasicRuleDataSource implementation for RuleDataSource.
func (RuleDataSource) AsRuleDataSource ¶
func (rds RuleDataSource) AsRuleDataSource() (*RuleDataSource, bool)
AsRuleDataSource is the BasicRuleDataSource implementation for RuleDataSource.
func (RuleDataSource) AsRuleManagementEventDataSource ¶
func (rds RuleDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool)
AsRuleManagementEventDataSource is the BasicRuleDataSource implementation for RuleDataSource.
func (RuleDataSource) AsRuleMetricDataSource ¶
func (rds RuleDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool)
AsRuleMetricDataSource is the BasicRuleDataSource implementation for RuleDataSource.
func (RuleDataSource) MarshalJSON ¶
func (rds RuleDataSource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleDataSource.
type RuleEmailAction ¶
type RuleEmailAction struct { // SendToServiceOwners - Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated. SendToServiceOwners *bool `json:"sendToServiceOwners,omitempty"` // CustomEmails - the list of administrator's custom email addresses to notify of the activation of the alert. CustomEmails *[]string `json:"customEmails,omitempty"` // OdataType - Possible values include: 'OdataTypeRuleAction', 'OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction', 'OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction' OdataType OdataTypeBasicRuleAction `json:"odata.type,omitempty"` }
RuleEmailAction specifies the action to send email when the rule condition is evaluated. The discriminator is always RuleEmailAction in this case.
func (RuleEmailAction) AsBasicRuleAction ¶
func (rea RuleEmailAction) AsBasicRuleAction() (BasicRuleAction, bool)
AsBasicRuleAction is the BasicRuleAction implementation for RuleEmailAction.
func (RuleEmailAction) AsRuleAction ¶
func (rea RuleEmailAction) AsRuleAction() (*RuleAction, bool)
AsRuleAction is the BasicRuleAction implementation for RuleEmailAction.
func (RuleEmailAction) AsRuleEmailAction ¶
func (rea RuleEmailAction) AsRuleEmailAction() (*RuleEmailAction, bool)
AsRuleEmailAction is the BasicRuleAction implementation for RuleEmailAction.
func (RuleEmailAction) AsRuleWebhookAction ¶
func (rea RuleEmailAction) AsRuleWebhookAction() (*RuleWebhookAction, bool)
AsRuleWebhookAction is the BasicRuleAction implementation for RuleEmailAction.
func (RuleEmailAction) MarshalJSON ¶
func (rea RuleEmailAction) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleEmailAction.
type RuleManagementEventClaimsDataSource ¶
type RuleManagementEventClaimsDataSource struct { // EmailAddress - the email address. EmailAddress *string `json:"emailAddress,omitempty"` }
RuleManagementEventClaimsDataSource the claims for a rule management event data source.
type RuleManagementEventDataSource ¶
type RuleManagementEventDataSource struct { // EventName - the event name. EventName *string `json:"eventName,omitempty"` // EventSource - the event source. EventSource *string `json:"eventSource,omitempty"` // Level - the level. Level *string `json:"level,omitempty"` // OperationName - The name of the operation that should be checked for. If no name is provided, any operation will match. OperationName *string `json:"operationName,omitempty"` // ResourceGroupName - the resource group name. ResourceGroupName *string `json:"resourceGroupName,omitempty"` // ResourceProviderName - the resource provider name. ResourceProviderName *string `json:"resourceProviderName,omitempty"` // Status - The status of the operation that should be checked for. If no status is provided, any status will match. Status *string `json:"status,omitempty"` // SubStatus - the substatus. SubStatus *string `json:"subStatus,omitempty"` // Claims - the claims. Claims *RuleManagementEventClaimsDataSource `json:"claims,omitempty"` // ResourceURI - the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule. ResourceURI *string `json:"resourceUri,omitempty"` // OdataType - Possible values include: 'OdataTypeRuleDataSource', 'OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource', 'OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource' OdataType OdataType `json:"odata.type,omitempty"` }
RuleManagementEventDataSource a rule management event data source. The discriminator fields is always RuleManagementEventDataSource in this case.
func (RuleManagementEventDataSource) AsBasicRuleDataSource ¶
func (rmeds RuleManagementEventDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool)
AsBasicRuleDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.
func (RuleManagementEventDataSource) AsRuleDataSource ¶
func (rmeds RuleManagementEventDataSource) AsRuleDataSource() (*RuleDataSource, bool)
AsRuleDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.
func (RuleManagementEventDataSource) AsRuleManagementEventDataSource ¶
func (rmeds RuleManagementEventDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool)
AsRuleManagementEventDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.
func (RuleManagementEventDataSource) AsRuleMetricDataSource ¶
func (rmeds RuleManagementEventDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool)
AsRuleMetricDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.
func (RuleManagementEventDataSource) MarshalJSON ¶
func (rmeds RuleManagementEventDataSource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleManagementEventDataSource.
type RuleMetricDataSource ¶
type RuleMetricDataSource struct { // MetricName - the name of the metric that defines what the rule monitors. MetricName *string `json:"metricName,omitempty"` // ResourceURI - the resource identifier of the resource the rule monitors. **NOTE**: this property cannot be updated for an existing rule. ResourceURI *string `json:"resourceUri,omitempty"` // OdataType - Possible values include: 'OdataTypeRuleDataSource', 'OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource', 'OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource' OdataType OdataType `json:"odata.type,omitempty"` }
RuleMetricDataSource a rule metric data source. The discriminator value is always RuleMetricDataSource in this case.
func (RuleMetricDataSource) AsBasicRuleDataSource ¶
func (rmds RuleMetricDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool)
AsBasicRuleDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.
func (RuleMetricDataSource) AsRuleDataSource ¶
func (rmds RuleMetricDataSource) AsRuleDataSource() (*RuleDataSource, bool)
AsRuleDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.
func (RuleMetricDataSource) AsRuleManagementEventDataSource ¶
func (rmds RuleMetricDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool)
AsRuleManagementEventDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.
func (RuleMetricDataSource) AsRuleMetricDataSource ¶
func (rmds RuleMetricDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool)
AsRuleMetricDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.
func (RuleMetricDataSource) MarshalJSON ¶
func (rmds RuleMetricDataSource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleMetricDataSource.
type RuleWebhookAction ¶
type RuleWebhookAction struct { // ServiceURI - the service uri to Post the notification when the alert activates or resolves. ServiceURI *string `json:"serviceUri,omitempty"` // Properties - the dictionary of custom properties to include with the post operation. These data are appended to the webhook payload. Properties map[string]*string `json:"properties"` // OdataType - Possible values include: 'OdataTypeRuleAction', 'OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction', 'OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction' OdataType OdataTypeBasicRuleAction `json:"odata.type,omitempty"` }
RuleWebhookAction specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction in this case.
func (RuleWebhookAction) AsBasicRuleAction ¶
func (rwa RuleWebhookAction) AsBasicRuleAction() (BasicRuleAction, bool)
AsBasicRuleAction is the BasicRuleAction implementation for RuleWebhookAction.
func (RuleWebhookAction) AsRuleAction ¶
func (rwa RuleWebhookAction) AsRuleAction() (*RuleAction, bool)
AsRuleAction is the BasicRuleAction implementation for RuleWebhookAction.
func (RuleWebhookAction) AsRuleEmailAction ¶
func (rwa RuleWebhookAction) AsRuleEmailAction() (*RuleEmailAction, bool)
AsRuleEmailAction is the BasicRuleAction implementation for RuleWebhookAction.
func (RuleWebhookAction) AsRuleWebhookAction ¶
func (rwa RuleWebhookAction) AsRuleWebhookAction() (*RuleWebhookAction, bool)
AsRuleWebhookAction is the BasicRuleAction implementation for RuleWebhookAction.
func (RuleWebhookAction) MarshalJSON ¶
func (rwa RuleWebhookAction) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for RuleWebhookAction.
type ScaleAction ¶
type ScaleAction struct { // Direction - the scale direction. Whether the scaling action increases or decreases the number of instances. Possible values include: 'ScaleDirectionNone', 'ScaleDirectionIncrease', 'ScaleDirectionDecrease' Direction ScaleDirection `json:"direction,omitempty"` // Type - the type of action that should occur when the scale rule fires. Possible values include: 'ChangeCount', 'PercentChangeCount', 'ExactCount' Type ScaleType `json:"type,omitempty"` // Value - the number of instances that are involved in the scaling action. This value must be 1 or greater. The default value is 1. Value *string `json:"value,omitempty"` // Cooldown - the amount of time to wait since the last scaling action before this action occurs. It must be between 1 week and 1 minute in ISO 8601 format. Cooldown *string `json:"cooldown,omitempty"` }
ScaleAction the parameters for the scaling action.
type ScaleCapacity ¶
type ScaleCapacity struct { // Minimum - the minimum number of instances for the resource. Minimum *string `json:"minimum,omitempty"` // Maximum - the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription. Maximum *string `json:"maximum,omitempty"` // Default - the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default. Default *string `json:"default,omitempty"` }
ScaleCapacity the number of instances that can be used during this profile.
type ScaleDirection ¶
type ScaleDirection string
ScaleDirection enumerates the values for scale direction.
const ( // ScaleDirectionDecrease ... ScaleDirectionDecrease ScaleDirection = "Decrease" // ScaleDirectionIncrease ... ScaleDirectionIncrease ScaleDirection = "Increase" // ScaleDirectionNone ... ScaleDirectionNone ScaleDirection = "None" )
func PossibleScaleDirectionValues ¶
func PossibleScaleDirectionValues() []ScaleDirection
PossibleScaleDirectionValues returns an array of possible values for the ScaleDirection const type.
type ScaleRule ¶
type ScaleRule struct { // MetricTrigger - the trigger that results in a scaling action. MetricTrigger *MetricTrigger `json:"metricTrigger,omitempty"` // ScaleAction - the parameters for the scaling action. ScaleAction *ScaleAction `json:"scaleAction,omitempty"` }
ScaleRule a rule that provide the triggers and parameters for the scaling action.
type ScaleRuleMetricDimension ¶
type ScaleRuleMetricDimension struct { // DimensionName - Name of the dimension. DimensionName *string `json:"DimensionName,omitempty"` // Operator - the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values. Possible values include: 'ScaleRuleMetricDimensionOperationTypeEquals', 'ScaleRuleMetricDimensionOperationTypeNotEquals' Operator ScaleRuleMetricDimensionOperationType `json:"Operator,omitempty"` // Values - list of dimension values. For example: ["App1","App2"]. Values *[]string `json:"Values,omitempty"` }
ScaleRuleMetricDimension specifies an auto scale rule metric dimension.
type ScaleRuleMetricDimensionOperationType ¶
type ScaleRuleMetricDimensionOperationType string
ScaleRuleMetricDimensionOperationType enumerates the values for scale rule metric dimension operation type.
const ( // ScaleRuleMetricDimensionOperationTypeEquals ... ScaleRuleMetricDimensionOperationTypeEquals ScaleRuleMetricDimensionOperationType = "Equals" // ScaleRuleMetricDimensionOperationTypeNotEquals ... ScaleRuleMetricDimensionOperationTypeNotEquals ScaleRuleMetricDimensionOperationType = "NotEquals" )
func PossibleScaleRuleMetricDimensionOperationTypeValues ¶
func PossibleScaleRuleMetricDimensionOperationTypeValues() []ScaleRuleMetricDimensionOperationType
PossibleScaleRuleMetricDimensionOperationTypeValues returns an array of possible values for the ScaleRuleMetricDimensionOperationType const type.
type ScaleType ¶
type ScaleType string
ScaleType enumerates the values for scale type.
func PossibleScaleTypeValues ¶
func PossibleScaleTypeValues() []ScaleType
PossibleScaleTypeValues returns an array of possible values for the ScaleType const type.
type Schedule ¶
type Schedule struct { // FrequencyInMinutes - frequency (in minutes) at which rule condition should be evaluated. FrequencyInMinutes *int32 `json:"frequencyInMinutes,omitempty"` // TimeWindowInMinutes - Time window for which data needs to be fetched for query (should be greater than or equal to frequencyInMinutes). TimeWindowInMinutes *int32 `json:"timeWindowInMinutes,omitempty"` }
Schedule defines how often to run the search and the time interval.
type SenderAuthorization ¶
type SenderAuthorization struct { // Action - the permissible actions. For instance: microsoft.support/supporttickets/write Action *string `json:"action,omitempty"` // Role - the role of the user. For instance: Subscription Admin Role *string `json:"role,omitempty"` // Scope - the scope. Scope *string `json:"scope,omitempty"` }
SenderAuthorization the authorization used by the user who has performed the operation that led to this event. This captures the RBAC properties of the event. These usually include the 'action', 'role' and the 'scope'
type Sensitivity ¶
type Sensitivity string
Sensitivity enumerates the values for sensitivity.
const ( // SensitivityHigh ... SensitivityHigh Sensitivity = "High" // SensitivityLow ... SensitivityLow Sensitivity = "Low" // SensitivityMedium ... SensitivityMedium Sensitivity = "Medium" )
func PossibleSensitivityValues ¶
func PossibleSensitivityValues() []Sensitivity
PossibleSensitivityValues returns an array of possible values for the Sensitivity const type.
type SmsReceiver ¶
type SmsReceiver struct { // Name - The name of the SMS receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // CountryCode - The country code of the SMS receiver. CountryCode *string `json:"countryCode,omitempty"` // PhoneNumber - The phone number of the SMS receiver. PhoneNumber *string `json:"phoneNumber,omitempty"` // Status - READ-ONLY; The status of the receiver. Possible values include: 'ReceiverStatusNotSpecified', 'ReceiverStatusEnabled', 'ReceiverStatusDisabled' Status ReceiverStatus `json:"status,omitempty"` }
SmsReceiver an SMS receiver.
func (SmsReceiver) MarshalJSON ¶
func (sr SmsReceiver) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SmsReceiver.
type Source ¶
type Source struct { // Query - Log search query. Required for action type - AlertingAction Query *string `json:"query,omitempty"` // AuthorizedResources - List of Resource referred into query AuthorizedResources *[]string `json:"authorizedResources,omitempty"` // DataSourceID - The resource uri over which log search query is to be run. DataSourceID *string `json:"dataSourceId,omitempty"` // QueryType - Set value to 'ResultCount'. Possible values include: 'ResultCount' QueryType QueryType `json:"queryType,omitempty"` }
Source specifies the log search query.
type ThresholdRuleCondition ¶
type ThresholdRuleCondition struct { // Operator - the operator used to compare the data and the threshold. Possible values include: 'ConditionOperatorGreaterThan', 'ConditionOperatorGreaterThanOrEqual', 'ConditionOperatorLessThan', 'ConditionOperatorLessThanOrEqual' Operator ConditionOperator `json:"operator,omitempty"` // Threshold - the threshold value that activates the alert. Threshold *float64 `json:"threshold,omitempty"` // WindowSize - the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. If specified then it must be between 5 minutes and 1 day. WindowSize *string `json:"windowSize,omitempty"` // TimeAggregation - the time aggregation operator. How the data that are collected should be combined over time. The default value is the PrimaryAggregationType of the Metric. Possible values include: 'TimeAggregationOperatorAverage', 'TimeAggregationOperatorMinimum', 'TimeAggregationOperatorMaximum', 'TimeAggregationOperatorTotal', 'TimeAggregationOperatorLast' TimeAggregation TimeAggregationOperator `json:"timeAggregation,omitempty"` // DataSource - the resource from which the rule collects its data. For this type dataSource will always be of type RuleMetricDataSource. DataSource BasicRuleDataSource `json:"dataSource,omitempty"` // OdataType - Possible values include: 'OdataTypeRuleCondition', 'OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition', 'OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition', 'OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition' OdataType OdataTypeBasicRuleCondition `json:"odata.type,omitempty"` }
ThresholdRuleCondition a rule condition based on a metric crossing a threshold.
func (ThresholdRuleCondition) AsBasicRuleCondition ¶
func (trc ThresholdRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool)
AsBasicRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (ThresholdRuleCondition) AsLocationThresholdRuleCondition ¶
func (trc ThresholdRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool)
AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (ThresholdRuleCondition) AsManagementEventRuleCondition ¶
func (trc ThresholdRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool)
AsManagementEventRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (ThresholdRuleCondition) AsRuleCondition ¶
func (trc ThresholdRuleCondition) AsRuleCondition() (*RuleCondition, bool)
AsRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (ThresholdRuleCondition) AsThresholdRuleCondition ¶
func (trc ThresholdRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)
AsThresholdRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.
func (ThresholdRuleCondition) MarshalJSON ¶
func (trc ThresholdRuleCondition) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ThresholdRuleCondition.
func (*ThresholdRuleCondition) UnmarshalJSON ¶
func (trc *ThresholdRuleCondition) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ThresholdRuleCondition struct.
type TimeAggregationOperator ¶
type TimeAggregationOperator string
TimeAggregationOperator enumerates the values for time aggregation operator.
const ( // TimeAggregationOperatorAverage ... TimeAggregationOperatorAverage TimeAggregationOperator = "Average" // TimeAggregationOperatorLast ... TimeAggregationOperatorLast TimeAggregationOperator = "Last" // TimeAggregationOperatorMaximum ... TimeAggregationOperatorMaximum TimeAggregationOperator = "Maximum" // TimeAggregationOperatorMinimum ... TimeAggregationOperatorMinimum TimeAggregationOperator = "Minimum" // TimeAggregationOperatorTotal ... TimeAggregationOperatorTotal TimeAggregationOperator = "Total" )
func PossibleTimeAggregationOperatorValues ¶
func PossibleTimeAggregationOperatorValues() []TimeAggregationOperator
PossibleTimeAggregationOperatorValues returns an array of possible values for the TimeAggregationOperator const type.
type TimeAggregationType ¶
type TimeAggregationType string
TimeAggregationType enumerates the values for time aggregation type.
const ( // TimeAggregationTypeAverage ... TimeAggregationTypeAverage TimeAggregationType = "Average" // TimeAggregationTypeCount ... TimeAggregationTypeCount TimeAggregationType = "Count" // TimeAggregationTypeLast ... TimeAggregationTypeLast TimeAggregationType = "Last" // TimeAggregationTypeMaximum ... TimeAggregationTypeMaximum TimeAggregationType = "Maximum" // TimeAggregationTypeMinimum ... TimeAggregationTypeMinimum TimeAggregationType = "Minimum" // TimeAggregationTypeTotal ... TimeAggregationTypeTotal TimeAggregationType = "Total" )
func PossibleTimeAggregationTypeValues ¶
func PossibleTimeAggregationTypeValues() []TimeAggregationType
PossibleTimeAggregationTypeValues returns an array of possible values for the TimeAggregationType const type.
type TimeSeriesElement ¶
type TimeSeriesElement struct { // Metadatavalues - the metadata values returned if $filter was specified in the call. Metadatavalues *[]MetadataValue `json:"metadatavalues,omitempty"` // Data - An array of data points representing the metric values. This is only returned if a result type of data is specified. Data *[]MetricValue `json:"data,omitempty"` }
TimeSeriesElement a time series result type. The discriminator value is always TimeSeries in this case.
type TimeSeriesInformation ¶
type TimeSeriesInformation struct { // Sensitivities - the list of sensitivities for calculating the baseline. Sensitivities *[]string `json:"sensitivities,omitempty"` // Values - The metric values to calculate the baseline. Values *[]float64 `json:"values,omitempty"` // Timestamps - the array of timestamps of the baselines. Timestamps *[]date.Time `json:"timestamps,omitempty"` }
TimeSeriesInformation the time series info needed for calculating the baseline.
type TimeWindow ¶
type TimeWindow struct { // TimeZone - the timezone of the start and end times for the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time TimeZone *string `json:"timeZone,omitempty"` // Start - the start time for the profile in ISO 8601 format. Start *date.Time `json:"start,omitempty"` // End - the end time for the profile in ISO 8601 format. End *date.Time `json:"end,omitempty"` }
TimeWindow a specific date-time for the profile.
type TriggerCondition ¶
type TriggerCondition struct { // ThresholdOperator - Evaluation operation for rule - 'GreaterThan' or 'LessThan. Possible values include: 'ConditionalOperatorGreaterThan', 'ConditionalOperatorLessThan', 'ConditionalOperatorEqual' ThresholdOperator ConditionalOperator `json:"thresholdOperator,omitempty"` // Threshold - Result or count threshold based on which rule should be triggered. Threshold *float64 `json:"threshold,omitempty"` // MetricTrigger - Trigger condition for metric query rule MetricTrigger *LogMetricTrigger `json:"metricTrigger,omitempty"` }
TriggerCondition the condition that results in the Log Search rule.
type Unit ¶
type Unit string
Unit enumerates the values for unit.
const ( // UnitBitsPerSecond ... UnitBitsPerSecond Unit = "BitsPerSecond" // UnitBytes ... UnitBytes Unit = "Bytes" // UnitByteSeconds ... UnitByteSeconds Unit = "ByteSeconds" // UnitBytesPerSecond ... UnitBytesPerSecond Unit = "BytesPerSecond" // UnitCores ... UnitCores Unit = "Cores" // UnitCount ... UnitCount Unit = "Count" // UnitCountPerSecond ... UnitCountPerSecond Unit = "CountPerSecond" // UnitMilliCores ... UnitMilliCores Unit = "MilliCores" // UnitMilliSeconds ... UnitMilliSeconds Unit = "MilliSeconds" // UnitNanoCores ... UnitNanoCores Unit = "NanoCores" // UnitPercent ... UnitPercent Unit = "Percent" // UnitSeconds ... UnitSeconds Unit = "Seconds" // UnitUnspecified ... UnitUnspecified Unit = "Unspecified" )
func PossibleUnitValues ¶
func PossibleUnitValues() []Unit
PossibleUnitValues returns an array of possible values for the Unit const type.
type VoiceReceiver ¶
type VoiceReceiver struct { // Name - The name of the voice receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // CountryCode - The country code of the voice receiver. CountryCode *string `json:"countryCode,omitempty"` // PhoneNumber - The phone number of the voice receiver. PhoneNumber *string `json:"phoneNumber,omitempty"` }
VoiceReceiver a voice receiver.
type WebhookNotification ¶
type WebhookNotification struct { // ServiceURI - the service address to receive the notification. ServiceURI *string `json:"serviceUri,omitempty"` // Properties - a property bag of settings. This value can be empty. Properties map[string]*string `json:"properties"` }
WebhookNotification webhook notification of an autoscale event.
func (WebhookNotification) MarshalJSON ¶
func (wn WebhookNotification) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WebhookNotification.
type WebhookReceiver ¶
type WebhookReceiver struct { // Name - The name of the webhook receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // ServiceURI - The URI where webhooks should be sent. ServiceURI *string `json:"serviceUri,omitempty"` }
WebhookReceiver a webhook receiver.
type WebtestLocationAvailabilityCriteria ¶
type WebtestLocationAvailabilityCriteria struct { // WebTestID - The Application Insights web test Id. WebTestID *string `json:"webTestId,omitempty"` // ComponentID - The Application Insights resource Id. ComponentID *string `json:"componentId,omitempty"` // FailedLocationCount - The number of failed locations. FailedLocationCount *float64 `json:"failedLocationCount,omitempty"` // AdditionalProperties - Unmatched properties from the message are deserialized this collection AdditionalProperties map[string]interface{} `json:""` // OdataType - Possible values include: 'OdataTypeMetricAlertCriteria', 'OdataTypeMicrosoftAzureMonitorSingleResourceMultipleMetricCriteria', 'OdataTypeMicrosoftAzureMonitorWebtestLocationAvailabilityCriteria', 'OdataTypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria' OdataType OdataTypeBasicMetricAlertCriteria `json:"odata.type,omitempty"` }
WebtestLocationAvailabilityCriteria specifies the metric alert rule criteria for a web test resource.
func (WebtestLocationAvailabilityCriteria) AsBasicMetricAlertCriteria ¶
func (wlac WebtestLocationAvailabilityCriteria) AsBasicMetricAlertCriteria() (BasicMetricAlertCriteria, bool)
AsBasicMetricAlertCriteria is the BasicMetricAlertCriteria implementation for WebtestLocationAvailabilityCriteria.
func (WebtestLocationAvailabilityCriteria) AsMetricAlertCriteria ¶
func (wlac WebtestLocationAvailabilityCriteria) AsMetricAlertCriteria() (*MetricAlertCriteria, bool)
AsMetricAlertCriteria is the BasicMetricAlertCriteria implementation for WebtestLocationAvailabilityCriteria.
func (WebtestLocationAvailabilityCriteria) AsMetricAlertMultipleResourceMultipleMetricCriteria ¶
func (wlac WebtestLocationAvailabilityCriteria) AsMetricAlertMultipleResourceMultipleMetricCriteria() (*MetricAlertMultipleResourceMultipleMetricCriteria, bool)
AsMetricAlertMultipleResourceMultipleMetricCriteria is the BasicMetricAlertCriteria implementation for WebtestLocationAvailabilityCriteria.
func (WebtestLocationAvailabilityCriteria) AsMetricAlertSingleResourceMultipleMetricCriteria ¶
func (wlac WebtestLocationAvailabilityCriteria) AsMetricAlertSingleResourceMultipleMetricCriteria() (*MetricAlertSingleResourceMultipleMetricCriteria, bool)
AsMetricAlertSingleResourceMultipleMetricCriteria is the BasicMetricAlertCriteria implementation for WebtestLocationAvailabilityCriteria.
func (WebtestLocationAvailabilityCriteria) AsWebtestLocationAvailabilityCriteria ¶
func (wlac WebtestLocationAvailabilityCriteria) AsWebtestLocationAvailabilityCriteria() (*WebtestLocationAvailabilityCriteria, bool)
AsWebtestLocationAvailabilityCriteria is the BasicMetricAlertCriteria implementation for WebtestLocationAvailabilityCriteria.
func (WebtestLocationAvailabilityCriteria) MarshalJSON ¶
func (wlac WebtestLocationAvailabilityCriteria) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WebtestLocationAvailabilityCriteria.
func (*WebtestLocationAvailabilityCriteria) UnmarshalJSON ¶
func (wlac *WebtestLocationAvailabilityCriteria) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for WebtestLocationAvailabilityCriteria struct.