monitor

package
v12.1.1-beta+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package monitor implements the Azure ARM Monitor service API version .

Monitor Management Client

Deprecated: Please instead use github.com/Azure/azure-sdk-for-go/services/monitor/mgmt/2017-05-01-preview/insights

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Monitor
	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 ActionGroup

type ActionGroup struct {
	GroupShortName   *string            `json:"groupShortName,omitempty"`
	Enabled          *bool              `json:"enabled,omitempty"`
	EmailReceivers   *[]EmailReceiver   `json:"emailReceivers,omitempty"`
	SmsReceivers     *[]SmsReceiver     `json:"smsReceivers,omitempty"`
	WebhookReceivers *[]WebhookReceiver `json:"webhookReceivers,omitempty"`
}

ActionGroup is an Azure action group.

type ActionGroupList

type ActionGroupList struct {
	autorest.Response `json:"-"`
	Value             *[]ActionGroupResource `json:"value,omitempty"`
	NextLink          *string                `json:"nextLink,omitempty"`
}

ActionGroupList is a list of action groups.

type ActionGroupResource

type ActionGroupResource struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	*ActionGroup      `json:"properties,omitempty"`
}

ActionGroupResource is an action group resource.

type ActionGroupsClient

type ActionGroupsClient struct {
	ManagementClient
}

ActionGroupsClient is the monitor Management Client

func NewActionGroupsClient

func NewActionGroupsClient(subscriptionID string) ActionGroupsClient

NewActionGroupsClient creates an instance of the ActionGroupsClient client.

func NewActionGroupsClientWithBaseURI

func NewActionGroupsClientWithBaseURI(baseURI string, subscriptionID string) ActionGroupsClient

NewActionGroupsClientWithBaseURI creates an instance of the ActionGroupsClient client.

func (ActionGroupsClient) CreateOrUpdate

func (client ActionGroupsClient) CreateOrUpdate(resourceGroupName string, actionGroupName string, actionGroup ActionGroupResource) (result ActionGroupResource, err error)

CreateOrUpdate create a new action group or update an existing one.

resourceGroupName is the name of the resource group. actionGroupName is the name of the action group. actionGroup is the action group to create or use for the update.

func (ActionGroupsClient) CreateOrUpdatePreparer

func (client ActionGroupsClient) CreateOrUpdatePreparer(resourceGroupName string, actionGroupName string, actionGroup ActionGroupResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ActionGroupsClient) CreateOrUpdateResponder

func (client ActionGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ActionGroupResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ActionGroupsClient) CreateOrUpdateSender

func (client ActionGroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ActionGroupsClient) Delete

func (client ActionGroupsClient) Delete(resourceGroupName string, actionGroupName string) (result autorest.Response, err error)

Delete delete an action group.

resourceGroupName is the name of the resource group. actionGroupName is the name of the action group.

func (ActionGroupsClient) DeletePreparer

func (client ActionGroupsClient) DeletePreparer(resourceGroupName string, actionGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ActionGroupsClient) DeleteResponder

func (client ActionGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ActionGroupsClient) DeleteSender

func (client ActionGroupsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ActionGroupsClient) EnableReceiver

func (client ActionGroupsClient) EnableReceiver(resourceGroupName string, actionGroupName string, enableRequest EnableRequest) (result autorest.Response, err error)

EnableReceiver enable a receiver in an action group. This changes the receiver's status from Disabled to Enabled.

resourceGroupName is the name of the resource group. actionGroupName is the name of the action group. enableRequest is the receiver to re-enable.

func (ActionGroupsClient) EnableReceiverPreparer

func (client ActionGroupsClient) EnableReceiverPreparer(resourceGroupName string, actionGroupName string, enableRequest EnableRequest) (*http.Request, error)

EnableReceiverPreparer prepares the EnableReceiver request.

func (ActionGroupsClient) EnableReceiverResponder

func (client ActionGroupsClient) EnableReceiverResponder(resp *http.Response) (result autorest.Response, err error)

EnableReceiverResponder handles the response to the EnableReceiver request. The method always closes the http.Response Body.

func (ActionGroupsClient) EnableReceiverSender

func (client ActionGroupsClient) EnableReceiverSender(req *http.Request) (*http.Response, error)

EnableReceiverSender sends the EnableReceiver request. The method will close the http.Response Body if it receives an error.

func (ActionGroupsClient) Get

func (client ActionGroupsClient) Get(resourceGroupName string, actionGroupName string) (result ActionGroupResource, err error)

Get get an action group.

resourceGroupName is the name of the resource group. actionGroupName is the name of the action group.

func (ActionGroupsClient) GetPreparer

func (client ActionGroupsClient) GetPreparer(resourceGroupName string, actionGroupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ActionGroupsClient) GetResponder

func (client ActionGroupsClient) GetResponder(resp *http.Response) (result ActionGroupResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ActionGroupsClient) GetSender

func (client ActionGroupsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ActionGroupsClient) ListByResourceGroup

func (client ActionGroupsClient) ListByResourceGroup(resourceGroupName string) (result ActionGroupList, err error)

ListByResourceGroup get a list of all action groups in a resource group.

resourceGroupName is the name of the resource group.

func (ActionGroupsClient) ListByResourceGroupPreparer

func (client ActionGroupsClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ActionGroupsClient) ListByResourceGroupResponder

func (client ActionGroupsClient) ListByResourceGroupResponder(resp *http.Response) (result ActionGroupList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ActionGroupsClient) ListByResourceGroupSender

func (client ActionGroupsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ActionGroupsClient) ListBySubscriptionID

func (client ActionGroupsClient) ListBySubscriptionID() (result ActionGroupList, err error)

ListBySubscriptionID get a list of all action groups in a subscription.

func (ActionGroupsClient) ListBySubscriptionIDPreparer

func (client ActionGroupsClient) ListBySubscriptionIDPreparer() (*http.Request, error)

ListBySubscriptionIDPreparer prepares the ListBySubscriptionID request.

func (ActionGroupsClient) ListBySubscriptionIDResponder

func (client ActionGroupsClient) ListBySubscriptionIDResponder(resp *http.Response) (result ActionGroupList, err error)

ListBySubscriptionIDResponder handles the response to the ListBySubscriptionID request. The method always closes the http.Response Body.

func (ActionGroupsClient) ListBySubscriptionIDSender

func (client ActionGroupsClient) ListBySubscriptionIDSender(req *http.Request) (*http.Response, error)

ListBySubscriptionIDSender sends the ListBySubscriptionID request. The method will close the http.Response Body if it receives an error.

type ActivityLogAlert

type ActivityLogAlert struct {
	Scopes      *[]string                       `json:"scopes,omitempty"`
	Enabled     *bool                           `json:"enabled,omitempty"`
	Condition   *ActivityLogAlertAllOfCondition `json:"condition,omitempty"`
	Actions     *ActivityLogAlertActionList     `json:"actions,omitempty"`
	Description *string                         `json:"description,omitempty"`
}

ActivityLogAlert is an Azure activity log alert.

type ActivityLogAlertActionGroup

type ActivityLogAlertActionGroup struct {
	ActionGroupID     *string             `json:"actionGroupId,omitempty"`
	WebhookProperties *map[string]*string `json:"webhookProperties,omitempty"`
}

ActivityLogAlertActionGroup is a pointer to an Azure Action Group.

type ActivityLogAlertActionList

type ActivityLogAlertActionList struct {
	ActionGroups *[]ActivityLogAlertActionGroup `json:"actionGroups,omitempty"`
}

ActivityLogAlertActionList is a list of activity log alert actions.

type ActivityLogAlertAllOfCondition

type ActivityLogAlertAllOfCondition struct {
	AllOf *[]ActivityLogAlertLeafCondition `json:"allOf,omitempty"`
}

ActivityLogAlertAllOfCondition is an Activity Log alert condition that is met when all its member conditions are met.

type ActivityLogAlertLeafCondition

type ActivityLogAlertLeafCondition struct {
	Field  *string `json:"field,omitempty"`
	Equals *string `json:"equals,omitempty"`
}

ActivityLogAlertLeafCondition is 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             *[]ActivityLogAlertResource `json:"value,omitempty"`
	NextLink          *string                     `json:"nextLink,omitempty"`
}

ActivityLogAlertList is a list of activity log alerts.

type ActivityLogAlertPatch

type ActivityLogAlertPatch struct {
	Enabled *bool `json:"enabled,omitempty"`
}

ActivityLogAlertPatch is an Azure activity log alert for patch operations.

type ActivityLogAlertPatchBody

type ActivityLogAlertPatchBody struct {
	Tags                   *map[string]*string `json:"tags,omitempty"`
	*ActivityLogAlertPatch `json:"properties,omitempty"`
}

ActivityLogAlertPatchBody is an activity log alert object for the body of patch operations.

type ActivityLogAlertResource

type ActivityLogAlertResource struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	*ActivityLogAlert `json:"properties,omitempty"`
}

ActivityLogAlertResource is an activity log alert resource.

type ActivityLogAlertsClient

type ActivityLogAlertsClient struct {
	ManagementClient
}

ActivityLogAlertsClient is the monitor Management Client

func NewActivityLogAlertsClient

func NewActivityLogAlertsClient(subscriptionID string) ActivityLogAlertsClient

NewActivityLogAlertsClient creates an instance of the ActivityLogAlertsClient client.

func NewActivityLogAlertsClientWithBaseURI

func NewActivityLogAlertsClientWithBaseURI(baseURI string, subscriptionID string) ActivityLogAlertsClient

NewActivityLogAlertsClientWithBaseURI creates an instance of the ActivityLogAlertsClient client.

func (ActivityLogAlertsClient) CreateOrUpdate

func (client ActivityLogAlertsClient) CreateOrUpdate(resourceGroupName string, activityLogAlertName string, activityLogAlert ActivityLogAlertResource) (result ActivityLogAlertResource, err error)

CreateOrUpdate create a new activity log alert or update an existing one.

resourceGroupName is the name of the resource group. activityLogAlertName is the name of the activity log alert. activityLogAlert is the activity log alert to create or use for the update.

func (ActivityLogAlertsClient) CreateOrUpdatePreparer

func (client ActivityLogAlertsClient) CreateOrUpdatePreparer(resourceGroupName string, activityLogAlertName string, activityLogAlert ActivityLogAlertResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ActivityLogAlertsClient) CreateOrUpdateResponder

func (client ActivityLogAlertsClient) CreateOrUpdateResponder(resp *http.Response) (result ActivityLogAlertResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ActivityLogAlertsClient) CreateOrUpdateSender

func (client ActivityLogAlertsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ActivityLogAlertsClient) Delete

func (client ActivityLogAlertsClient) Delete(resourceGroupName string, activityLogAlertName string) (result autorest.Response, err error)

Delete delete an activity log alert.

resourceGroupName is the name of the resource group. activityLogAlertName is the name of the activity log alert.

func (ActivityLogAlertsClient) DeletePreparer

func (client ActivityLogAlertsClient) DeletePreparer(resourceGroupName string, activityLogAlertName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ActivityLogAlertsClient) DeleteResponder

func (client ActivityLogAlertsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ActivityLogAlertsClient) DeleteSender

func (client ActivityLogAlertsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ActivityLogAlertsClient) Get

func (client ActivityLogAlertsClient) Get(resourceGroupName string, activityLogAlertName string) (result ActivityLogAlertResource, err error)

Get get an activity log alert.

resourceGroupName is the name of the resource group. activityLogAlertName is the name of the activity log alert.

func (ActivityLogAlertsClient) GetPreparer

func (client ActivityLogAlertsClient) GetPreparer(resourceGroupName string, activityLogAlertName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ActivityLogAlertsClient) GetResponder

func (client ActivityLogAlertsClient) GetResponder(resp *http.Response) (result ActivityLogAlertResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ActivityLogAlertsClient) GetSender

func (client ActivityLogAlertsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ActivityLogAlertsClient) ListByResourceGroup

func (client ActivityLogAlertsClient) ListByResourceGroup(resourceGroupName string) (result ActivityLogAlertList, err error)

ListByResourceGroup get a list of all activity log alerts in a resource group.

resourceGroupName is the name of the resource group.

func (ActivityLogAlertsClient) ListByResourceGroupPreparer

func (client ActivityLogAlertsClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ActivityLogAlertsClient) ListByResourceGroupResponder

func (client ActivityLogAlertsClient) ListByResourceGroupResponder(resp *http.Response) (result ActivityLogAlertList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ActivityLogAlertsClient) ListByResourceGroupSender

func (client ActivityLogAlertsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ActivityLogAlertsClient) ListBySubscriptionID

func (client ActivityLogAlertsClient) ListBySubscriptionID() (result ActivityLogAlertList, err error)

ListBySubscriptionID get a list of all activity log alerts in a subscription.

func (ActivityLogAlertsClient) ListBySubscriptionIDPreparer

func (client ActivityLogAlertsClient) ListBySubscriptionIDPreparer() (*http.Request, error)

ListBySubscriptionIDPreparer prepares the ListBySubscriptionID request.

func (ActivityLogAlertsClient) ListBySubscriptionIDResponder

func (client ActivityLogAlertsClient) ListBySubscriptionIDResponder(resp *http.Response) (result ActivityLogAlertList, err error)

ListBySubscriptionIDResponder handles the response to the ListBySubscriptionID request. The method always closes the http.Response Body.

func (ActivityLogAlertsClient) ListBySubscriptionIDSender

func (client ActivityLogAlertsClient) ListBySubscriptionIDSender(req *http.Request) (*http.Response, error)

ListBySubscriptionIDSender sends the ListBySubscriptionID request. The method will close the http.Response Body if it receives an error.

func (ActivityLogAlertsClient) Update

func (client ActivityLogAlertsClient) Update(resourceGroupName string, activityLogAlertName string, activityLogAlertPatch ActivityLogAlertPatchBody) (result ActivityLogAlertResource, err error)

Update updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.

resourceGroupName is the name of the resource group. activityLogAlertName is the name of the activity log alert. activityLogAlertPatch is parameters supplied to the operation.

func (ActivityLogAlertsClient) UpdatePreparer

func (client ActivityLogAlertsClient) UpdatePreparer(resourceGroupName string, activityLogAlertName string, activityLogAlertPatch ActivityLogAlertPatchBody) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ActivityLogAlertsClient) UpdateResponder

func (client ActivityLogAlertsClient) UpdateResponder(resp *http.Response) (result ActivityLogAlertResource, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ActivityLogAlertsClient) UpdateSender

func (client ActivityLogAlertsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type AlertRule

type AlertRule struct {
	Name            *string       `json:"name,omitempty"`
	Description     *string       `json:"description,omitempty"`
	IsEnabled       *bool         `json:"isEnabled,omitempty"`
	Condition       RuleCondition `json:"condition,omitempty"`
	Actions         *[]RuleAction `json:"actions,omitempty"`
	LastUpdatedTime *date.Time    `json:"lastUpdatedTime,omitempty"`
}

AlertRule is an alert rule.

func (*AlertRule) UnmarshalJSON

func (ar *AlertRule) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AlertRule struct.

type AlertRuleIncidentsClient

type AlertRuleIncidentsClient struct {
	ManagementClient
}

AlertRuleIncidentsClient is the monitor Management Client

func NewAlertRuleIncidentsClient

func NewAlertRuleIncidentsClient(subscriptionID string) AlertRuleIncidentsClient

NewAlertRuleIncidentsClient creates an instance of the AlertRuleIncidentsClient client.

func NewAlertRuleIncidentsClientWithBaseURI

func NewAlertRuleIncidentsClientWithBaseURI(baseURI string, subscriptionID string) AlertRuleIncidentsClient

NewAlertRuleIncidentsClientWithBaseURI creates an instance of the AlertRuleIncidentsClient client.

func (AlertRuleIncidentsClient) Get

func (client AlertRuleIncidentsClient) Get(resourceGroupName string, ruleName string, incidentName string) (result Incident, err error)

Get gets an incident associated to an alert rule

resourceGroupName is the name of the resource group. ruleName is the name of the rule. incidentName is the name of the incident to retrieve.

func (AlertRuleIncidentsClient) GetPreparer

func (client AlertRuleIncidentsClient) GetPreparer(resourceGroupName string, ruleName string, incidentName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AlertRuleIncidentsClient) GetResponder

func (client AlertRuleIncidentsClient) GetResponder(resp *http.Response) (result Incident, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AlertRuleIncidentsClient) GetSender

func (client AlertRuleIncidentsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AlertRuleIncidentsClient) ListByAlertRule

func (client AlertRuleIncidentsClient) ListByAlertRule(resourceGroupName string, ruleName string) (result IncidentListResult, err error)

ListByAlertRule gets a list of incidents associated to an alert rule

resourceGroupName is the name of the resource group. ruleName is the name of the rule.

func (AlertRuleIncidentsClient) ListByAlertRulePreparer

func (client AlertRuleIncidentsClient) ListByAlertRulePreparer(resourceGroupName string, ruleName string) (*http.Request, error)

ListByAlertRulePreparer prepares the ListByAlertRule request.

func (AlertRuleIncidentsClient) ListByAlertRuleResponder

func (client AlertRuleIncidentsClient) ListByAlertRuleResponder(resp *http.Response) (result IncidentListResult, err error)

ListByAlertRuleResponder handles the response to the ListByAlertRule request. The method always closes the http.Response Body.

func (AlertRuleIncidentsClient) ListByAlertRuleSender

func (client AlertRuleIncidentsClient) ListByAlertRuleSender(req *http.Request) (*http.Response, error)

ListByAlertRuleSender sends the ListByAlertRule request. The method will close the http.Response Body if it receives an error.

type AlertRuleResource

type AlertRuleResource struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	*AlertRule        `json:"properties,omitempty"`
}

AlertRuleResource is the alert rule resource.

type AlertRuleResourceCollection

type AlertRuleResourceCollection struct {
	autorest.Response `json:"-"`
	Value             *[]AlertRuleResource `json:"value,omitempty"`
}

AlertRuleResourceCollection is represents a collection of alert rule resources.

type AlertRuleResourcePatch

type AlertRuleResourcePatch struct {
	Tags       *map[string]*string `json:"tags,omitempty"`
	*AlertRule `json:"properties,omitempty"`
}

AlertRuleResourcePatch is the alert rule object for patch operations.

type AlertRulesClient

type AlertRulesClient struct {
	ManagementClient
}

AlertRulesClient is the monitor Management Client

func NewAlertRulesClient

func NewAlertRulesClient(subscriptionID string) AlertRulesClient

NewAlertRulesClient creates an instance of the AlertRulesClient client.

func NewAlertRulesClientWithBaseURI

func NewAlertRulesClientWithBaseURI(baseURI string, subscriptionID string) AlertRulesClient

NewAlertRulesClientWithBaseURI creates an instance of the AlertRulesClient client.

func (AlertRulesClient) CreateOrUpdate

func (client AlertRulesClient) CreateOrUpdate(resourceGroupName string, ruleName string, parameters AlertRuleResource) (result AlertRuleResource, err error)

CreateOrUpdate creates or updates an alert rule.

resourceGroupName is the name of the resource group. ruleName is the name of the rule. parameters is the parameters of the rule to create or update.

func (AlertRulesClient) CreateOrUpdatePreparer

func (client AlertRulesClient) CreateOrUpdatePreparer(resourceGroupName string, ruleName string, parameters AlertRuleResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AlertRulesClient) CreateOrUpdateResponder

func (client AlertRulesClient) CreateOrUpdateResponder(resp *http.Response) (result AlertRuleResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (AlertRulesClient) CreateOrUpdateSender

func (client AlertRulesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (AlertRulesClient) Delete

func (client AlertRulesClient) Delete(resourceGroupName string, ruleName string) (result autorest.Response, err error)

Delete deletes an alert rule

resourceGroupName is the name of the resource group. ruleName is the name of the rule.

func (AlertRulesClient) DeletePreparer

func (client AlertRulesClient) DeletePreparer(resourceGroupName string, ruleName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AlertRulesClient) DeleteResponder

func (client AlertRulesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (AlertRulesClient) DeleteSender

func (client AlertRulesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (AlertRulesClient) Get

func (client AlertRulesClient) Get(resourceGroupName string, ruleName string) (result AlertRuleResource, err error)

Get gets an alert rule

resourceGroupName is the name of the resource group. ruleName is the name of the rule.

func (AlertRulesClient) GetPreparer

func (client AlertRulesClient) GetPreparer(resourceGroupName string, ruleName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AlertRulesClient) GetResponder

func (client AlertRulesClient) GetResponder(resp *http.Response) (result AlertRuleResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AlertRulesClient) GetSender

func (client AlertRulesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AlertRulesClient) ListByResourceGroup

func (client AlertRulesClient) ListByResourceGroup(resourceGroupName string) (result AlertRuleResourceCollection, err error)

ListByResourceGroup list the alert rules within a resource group.

resourceGroupName is the name of the resource group.

func (AlertRulesClient) ListByResourceGroupPreparer

func (client AlertRulesClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AlertRulesClient) ListByResourceGroupResponder

func (client AlertRulesClient) ListByResourceGroupResponder(resp *http.Response) (result AlertRuleResourceCollection, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (AlertRulesClient) ListByResourceGroupSender

func (client AlertRulesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (AlertRulesClient) Update

func (client AlertRulesClient) Update(resourceGroupName string, ruleName string, alertRulesResource AlertRuleResourcePatch) (result AlertRuleResource, err error)

Update updates an existing AlertRuleResource. To update other fields use the CreateOrUpdate method.

resourceGroupName is the name of the resource group. ruleName is the name of the rule. alertRulesResource is parameters supplied to the operation.

func (AlertRulesClient) UpdatePreparer

func (client AlertRulesClient) UpdatePreparer(resourceGroupName string, ruleName string, alertRulesResource AlertRuleResourcePatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AlertRulesClient) UpdateResponder

func (client AlertRulesClient) UpdateResponder(resp *http.Response) (result AlertRuleResource, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (AlertRulesClient) UpdateSender

func (client AlertRulesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type AutoscaleNotification

type AutoscaleNotification struct {
	Operation *string                `json:"operation,omitempty"`
	Email     *EmailNotification     `json:"email,omitempty"`
	Webhooks  *[]WebhookNotification `json:"webhooks,omitempty"`
}

AutoscaleNotification is autoscale notification.

type AutoscaleProfile

type AutoscaleProfile struct {
	Name       *string        `json:"name,omitempty"`
	Capacity   *ScaleCapacity `json:"capacity,omitempty"`
	Rules      *[]ScaleRule   `json:"rules,omitempty"`
	FixedDate  *TimeWindow    `json:"fixedDate,omitempty"`
	Recurrence *Recurrence    `json:"recurrence,omitempty"`
}

AutoscaleProfile is autoscale profile.

type AutoscaleSetting

type AutoscaleSetting struct {
	Profiles          *[]AutoscaleProfile      `json:"profiles,omitempty"`
	Notifications     *[]AutoscaleNotification `json:"notifications,omitempty"`
	Enabled           *bool                    `json:"enabled,omitempty"`
	Name              *string                  `json:"name,omitempty"`
	TargetResourceURI *string                  `json:"targetResourceUri,omitempty"`
}

AutoscaleSetting is a setting that contains all of the configuration for the automatic scaling of a resource.

type AutoscaleSettingResource

type AutoscaleSettingResource struct {
	autorest.Response `json:"-"`
	ID                *string             `json:"id,omitempty"`
	Name              *string             `json:"name,omitempty"`
	Type              *string             `json:"type,omitempty"`
	Location          *string             `json:"location,omitempty"`
	Tags              *map[string]*string `json:"tags,omitempty"`
	*AutoscaleSetting `json:"properties,omitempty"`
}

AutoscaleSettingResource is the autoscale setting resource.

type AutoscaleSettingResourceCollection

type AutoscaleSettingResourceCollection struct {
	autorest.Response `json:"-"`
	Value             *[]AutoscaleSettingResource `json:"value,omitempty"`
	NextLink          *string                     `json:"nextLink,omitempty"`
}

AutoscaleSettingResourceCollection is represents a collection of autoscale setting resources.

func (AutoscaleSettingResourceCollection) AutoscaleSettingResourceCollectionPreparer

func (client AutoscaleSettingResourceCollection) AutoscaleSettingResourceCollectionPreparer() (*http.Request, error)

AutoscaleSettingResourceCollectionPreparer prepares a request to retrieve the next set of results. It returns nil if no more results exist.

type AutoscaleSettingResourcePatch

type AutoscaleSettingResourcePatch struct {
	Tags              *map[string]*string `json:"tags,omitempty"`
	*AutoscaleSetting `json:"properties,omitempty"`
}

AutoscaleSettingResourcePatch is the autoscale setting object for patch operations.

type AutoscaleSettingsClient

type AutoscaleSettingsClient struct {
	ManagementClient
}

AutoscaleSettingsClient is the monitor Management Client

func NewAutoscaleSettingsClient

func NewAutoscaleSettingsClient(subscriptionID string) AutoscaleSettingsClient

NewAutoscaleSettingsClient creates an instance of the AutoscaleSettingsClient client.

func NewAutoscaleSettingsClientWithBaseURI

func NewAutoscaleSettingsClientWithBaseURI(baseURI string, subscriptionID string) AutoscaleSettingsClient

NewAutoscaleSettingsClientWithBaseURI creates an instance of the AutoscaleSettingsClient client.

func (AutoscaleSettingsClient) CreateOrUpdate

func (client AutoscaleSettingsClient) CreateOrUpdate(resourceGroupName string, autoscaleSettingName string, parameters AutoscaleSettingResource) (result AutoscaleSettingResource, err error)

CreateOrUpdate creates or updates an autoscale setting.

resourceGroupName is the name of the resource group. autoscaleSettingName is the autoscale setting name. parameters is parameters supplied to the operation.

func (AutoscaleSettingsClient) CreateOrUpdatePreparer

func (client AutoscaleSettingsClient) CreateOrUpdatePreparer(resourceGroupName string, autoscaleSettingName string, parameters AutoscaleSettingResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AutoscaleSettingsClient) CreateOrUpdateResponder

func (client AutoscaleSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result AutoscaleSettingResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (AutoscaleSettingsClient) CreateOrUpdateSender

func (client AutoscaleSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (AutoscaleSettingsClient) Delete

func (client AutoscaleSettingsClient) Delete(resourceGroupName string, autoscaleSettingName string) (result autorest.Response, err error)

Delete deletes and autoscale setting

resourceGroupName is the name of the resource group. autoscaleSettingName is the autoscale setting name.

func (AutoscaleSettingsClient) DeletePreparer

func (client AutoscaleSettingsClient) DeletePreparer(resourceGroupName string, autoscaleSettingName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (AutoscaleSettingsClient) DeleteResponder

func (client AutoscaleSettingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (AutoscaleSettingsClient) DeleteSender

func (client AutoscaleSettingsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (AutoscaleSettingsClient) Get

func (client AutoscaleSettingsClient) Get(resourceGroupName string, autoscaleSettingName string) (result AutoscaleSettingResource, err error)

Get gets an autoscale setting

resourceGroupName is the name of the resource group. autoscaleSettingName is the autoscale setting name.

func (AutoscaleSettingsClient) GetPreparer

func (client AutoscaleSettingsClient) GetPreparer(resourceGroupName string, autoscaleSettingName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (AutoscaleSettingsClient) GetResponder

func (client AutoscaleSettingsClient) GetResponder(resp *http.Response) (result AutoscaleSettingResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (AutoscaleSettingsClient) GetSender

func (client AutoscaleSettingsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (AutoscaleSettingsClient) ListByResourceGroup

func (client AutoscaleSettingsClient) ListByResourceGroup(resourceGroupName string) (result AutoscaleSettingResourceCollection, err error)

ListByResourceGroup lists the autoscale settings for a resource group

resourceGroupName is the name of the resource group.

func (AutoscaleSettingsClient) ListByResourceGroupComplete

func (client AutoscaleSettingsClient) ListByResourceGroupComplete(resourceGroupName string, cancel <-chan struct{}) (<-chan AutoscaleSettingResource, <-chan error)

ListByResourceGroupComplete gets all elements from the list without paging.

func (AutoscaleSettingsClient) ListByResourceGroupNextResults

func (client AutoscaleSettingsClient) ListByResourceGroupNextResults(lastResults AutoscaleSettingResourceCollection) (result AutoscaleSettingResourceCollection, err error)

ListByResourceGroupNextResults retrieves the next set of results, if any.

func (AutoscaleSettingsClient) ListByResourceGroupPreparer

func (client AutoscaleSettingsClient) ListByResourceGroupPreparer(resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AutoscaleSettingsClient) ListByResourceGroupResponder

func (client AutoscaleSettingsClient) ListByResourceGroupResponder(resp *http.Response) (result AutoscaleSettingResourceCollection, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (AutoscaleSettingsClient) ListByResourceGroupSender

func (client AutoscaleSettingsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (AutoscaleSettingsClient) Update

func (client AutoscaleSettingsClient) Update(resourceGroupName string, autoscaleSettingName string, autoscaleSettingResource AutoscaleSettingResourcePatch) (result AutoscaleSettingResource, err error)

Update updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method.

resourceGroupName is the name of the resource group. autoscaleSettingName is the autoscale setting name. autoscaleSettingResource is parameters supplied to the operation.

func (AutoscaleSettingsClient) UpdatePreparer

func (client AutoscaleSettingsClient) UpdatePreparer(resourceGroupName string, autoscaleSettingName string, autoscaleSettingResource AutoscaleSettingResourcePatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (AutoscaleSettingsClient) UpdateResponder

func (client AutoscaleSettingsClient) UpdateResponder(resp *http.Response) (result AutoscaleSettingResource, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (AutoscaleSettingsClient) UpdateSender

func (client AutoscaleSettingsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type CategoryType

type CategoryType string

CategoryType enumerates the values for category type.

const (
	// Logs specifies the logs state for category type.
	Logs CategoryType = "Logs"
	// Metrics specifies the metrics state for category type.
	Metrics CategoryType = "Metrics"
)

type ComparisonOperationType

type ComparisonOperationType string

ComparisonOperationType enumerates the values for comparison operation type.

const (
	// Equals specifies the equals state for comparison operation type.
	Equals ComparisonOperationType = "Equals"
	// GreaterThan specifies the greater than state for comparison operation type.
	GreaterThan ComparisonOperationType = "GreaterThan"
	// GreaterThanOrEqual specifies the greater than or equal state for comparison operation type.
	GreaterThanOrEqual ComparisonOperationType = "GreaterThanOrEqual"
	// LessThan specifies the less than state for comparison operation type.
	LessThan ComparisonOperationType = "LessThan"
	// LessThanOrEqual specifies the less than or equal state for comparison operation type.
	LessThanOrEqual ComparisonOperationType = "LessThanOrEqual"
	// NotEquals specifies the not equals state for comparison operation type.
	NotEquals ComparisonOperationType = "NotEquals"
)

type ConditionOperator

type ConditionOperator string

ConditionOperator enumerates the values for condition operator.

const (
	// ConditionOperatorGreaterThan specifies the condition operator greater than state for condition operator.
	ConditionOperatorGreaterThan ConditionOperator = "GreaterThan"
	// ConditionOperatorGreaterThanOrEqual specifies the condition operator greater than or equal state for condition
	// operator.
	ConditionOperatorGreaterThanOrEqual ConditionOperator = "GreaterThanOrEqual"
	// ConditionOperatorLessThan specifies the condition operator less than state for condition operator.
	ConditionOperatorLessThan ConditionOperator = "LessThan"
	// ConditionOperatorLessThanOrEqual specifies the condition operator less than or equal state for condition operator.
	ConditionOperatorLessThanOrEqual ConditionOperator = "LessThanOrEqual"
)

type DiagnosticSettings

type DiagnosticSettings struct {
	StorageAccountID            *string           `json:"storageAccountId,omitempty"`
	EventHubAuthorizationRuleID *string           `json:"eventHubAuthorizationRuleId,omitempty"`
	EventHubName                *string           `json:"eventHubName,omitempty"`
	Metrics                     *[]MetricSettings `json:"metrics,omitempty"`
	Logs                        *[]LogSettings    `json:"logs,omitempty"`
	WorkspaceID                 *string           `json:"workspaceId,omitempty"`
}

DiagnosticSettings is the diagnostic settings.

type DiagnosticSettingsCategory

type DiagnosticSettingsCategory struct {
	CategoryType CategoryType `json:"categoryType,omitempty"`
}

DiagnosticSettingsCategory is the diagnostic settings Category.

type DiagnosticSettingsCategoryClient

type DiagnosticSettingsCategoryClient struct {
	ManagementClient
}

DiagnosticSettingsCategoryClient is the monitor Management Client

func NewDiagnosticSettingsCategoryClient

func NewDiagnosticSettingsCategoryClient(subscriptionID string) DiagnosticSettingsCategoryClient

NewDiagnosticSettingsCategoryClient creates an instance of the DiagnosticSettingsCategoryClient client.

func NewDiagnosticSettingsCategoryClientWithBaseURI

func NewDiagnosticSettingsCategoryClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticSettingsCategoryClient

NewDiagnosticSettingsCategoryClientWithBaseURI creates an instance of the DiagnosticSettingsCategoryClient client.

func (DiagnosticSettingsCategoryClient) Get

func (client DiagnosticSettingsCategoryClient) Get(resourceURI string, name string) (result DiagnosticSettingsCategoryResource, err error)

Get gets the diagnostic settings category for the specified resource.

resourceURI is the identifier of the resource. name is the name of the diagnostic setting.

func (DiagnosticSettingsCategoryClient) GetPreparer

func (client DiagnosticSettingsCategoryClient) GetPreparer(resourceURI string, name string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DiagnosticSettingsCategoryClient) GetResponder

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DiagnosticSettingsCategoryClient) GetSender

func (client DiagnosticSettingsCategoryClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (DiagnosticSettingsCategoryClient) List

List lists the diagnostic settings categories for the specified resource.

resourceURI is the identifier of the resource.

func (DiagnosticSettingsCategoryClient) ListPreparer

func (client DiagnosticSettingsCategoryClient) ListPreparer(resourceURI string) (*http.Request, error)

ListPreparer prepares the List request.

func (DiagnosticSettingsCategoryClient) ListResponder

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (DiagnosticSettingsCategoryClient) ListSender

func (client DiagnosticSettingsCategoryClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type DiagnosticSettingsCategoryResource

type DiagnosticSettingsCategoryResource struct {
	autorest.Response           `json:"-"`
	ID                          *string `json:"id,omitempty"`
	Name                        *string `json:"name,omitempty"`
	Type                        *string `json:"type,omitempty"`
	*DiagnosticSettingsCategory `json:"properties,omitempty"`
}

DiagnosticSettingsCategoryResource is the diagnostic settings category resource.

type DiagnosticSettingsCategoryResourceCollection

type DiagnosticSettingsCategoryResourceCollection struct {
	autorest.Response `json:"-"`
	Value             *[]DiagnosticSettingsCategoryResource `json:"value,omitempty"`
}

DiagnosticSettingsCategoryResourceCollection is represents a collection of diagnostic setting category resources.

type DiagnosticSettingsClient

type DiagnosticSettingsClient struct {
	ManagementClient
}

DiagnosticSettingsClient is the monitor Management Client

func NewDiagnosticSettingsClient

func NewDiagnosticSettingsClient(subscriptionID string) DiagnosticSettingsClient

NewDiagnosticSettingsClient creates an instance of the DiagnosticSettingsClient client.

func NewDiagnosticSettingsClientWithBaseURI

func NewDiagnosticSettingsClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticSettingsClient

NewDiagnosticSettingsClientWithBaseURI creates an instance of the DiagnosticSettingsClient client.

func (DiagnosticSettingsClient) CreateOrUpdate

func (client DiagnosticSettingsClient) CreateOrUpdate(resourceURI string, parameters DiagnosticSettingsResource, name string) (result DiagnosticSettingsResource, err error)

CreateOrUpdate creates or updates diagnostic settings for the specified resource.

resourceURI is the identifier of the resource. parameters is parameters supplied to the operation. name is the name of the diagnostic setting.

func (DiagnosticSettingsClient) CreateOrUpdatePreparer

func (client DiagnosticSettingsClient) CreateOrUpdatePreparer(resourceURI string, parameters DiagnosticSettingsResource, name string) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DiagnosticSettingsClient) CreateOrUpdateResponder

func (client DiagnosticSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result DiagnosticSettingsResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DiagnosticSettingsClient) CreateOrUpdateSender

func (client DiagnosticSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (DiagnosticSettingsClient) Delete

func (client DiagnosticSettingsClient) Delete(resourceURI string, name string) (result autorest.Response, err error)

Delete deletes existing diagnostic settings for the specified resource.

resourceURI is the identifier of the resource. name is the name of the diagnostic setting.

func (DiagnosticSettingsClient) DeletePreparer

func (client DiagnosticSettingsClient) DeletePreparer(resourceURI string, name string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DiagnosticSettingsClient) DeleteResponder

func (client DiagnosticSettingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (DiagnosticSettingsClient) DeleteSender

func (client DiagnosticSettingsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (DiagnosticSettingsClient) Get

func (client DiagnosticSettingsClient) Get(resourceURI string, name string) (result DiagnosticSettingsResource, err error)

Get gets the active diagnostic settings for the specified resource.

resourceURI is the identifier of the resource. name is the name of the diagnostic setting.

func (DiagnosticSettingsClient) GetPreparer

func (client DiagnosticSettingsClient) GetPreparer(resourceURI string, name string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DiagnosticSettingsClient) GetResponder

func (client DiagnosticSettingsClient) GetResponder(resp *http.Response) (result DiagnosticSettingsResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DiagnosticSettingsClient) GetSender

func (client DiagnosticSettingsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (DiagnosticSettingsClient) List

func (client DiagnosticSettingsClient) List(resourceURI string) (result DiagnosticSettingsResourceCollection, err error)

List gets the active diagnostic settings list for the specified resource.

resourceURI is the identifier of the resource.

func (DiagnosticSettingsClient) ListPreparer

func (client DiagnosticSettingsClient) ListPreparer(resourceURI string) (*http.Request, error)

ListPreparer prepares the List request.

func (DiagnosticSettingsClient) ListResponder

func (client DiagnosticSettingsClient) ListResponder(resp *http.Response) (result DiagnosticSettingsResourceCollection, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (DiagnosticSettingsClient) ListSender

func (client DiagnosticSettingsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type DiagnosticSettingsResource

type DiagnosticSettingsResource struct {
	autorest.Response   `json:"-"`
	ID                  *string `json:"id,omitempty"`
	Name                *string `json:"name,omitempty"`
	Type                *string `json:"type,omitempty"`
	*DiagnosticSettings `json:"properties,omitempty"`
}

DiagnosticSettingsResource is the diagnostic setting resource.

type DiagnosticSettingsResourceCollection

type DiagnosticSettingsResourceCollection struct {
	autorest.Response `json:"-"`
	Value             *[]DiagnosticSettingsResource `json:"value,omitempty"`
}

DiagnosticSettingsResourceCollection is represents a collection of alert rule resources.

type EmailNotification

type EmailNotification struct {
	SendToSubscriptionAdministrator    *bool     `json:"sendToSubscriptionAdministrator,omitempty"`
	SendToSubscriptionCoAdministrators *bool     `json:"sendToSubscriptionCoAdministrators,omitempty"`
	CustomEmails                       *[]string `json:"customEmails,omitempty"`
}

EmailNotification is email notification of an autoscale event.

type EmailReceiver

type EmailReceiver struct {
	Name         *string        `json:"name,omitempty"`
	EmailAddress *string        `json:"emailAddress,omitempty"`
	Status       ReceiverStatus `json:"status,omitempty"`
}

EmailReceiver is an email receiver.

type EnableRequest

type EnableRequest struct {
	ReceiverName *string `json:"receiverName,omitempty"`
}

EnableRequest is describes a receiver that should be resubscribed.

type ErrorResponse

type ErrorResponse struct {
	Code    *string `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
}

ErrorResponse is describes the format of Error response.

type Incident

type Incident struct {
	autorest.Response `json:"-"`
	Name              *string    `json:"name,omitempty"`
	RuleName          *string    `json:"ruleName,omitempty"`
	IsActive          *bool      `json:"isActive,omitempty"`
	ActivatedTime     *date.Time `json:"activatedTime,omitempty"`
	ResolvedTime      *date.Time `json:"resolvedTime,omitempty"`
}

Incident is an alert incident indicates the activation status of an alert rule.

type IncidentListResult

type IncidentListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Incident `json:"value,omitempty"`
}

IncidentListResult is the List incidents operation response.

type LocationThresholdRuleCondition

type LocationThresholdRuleCondition struct {
	DataSource          RuleDataSource `json:"dataSource,omitempty"`
	OdataType           OdataType1     `json:"odata.type,omitempty"`
	WindowSize          *string        `json:"windowSize,omitempty"`
	FailedLocationCount *int32         `json:"failedLocationCount,omitempty"`
}

LocationThresholdRuleCondition is a rule condition based on a certain number of locations failing.

func (LocationThresholdRuleCondition) AsLocationThresholdRuleCondition

func (ltrc LocationThresholdRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool)

AsLocationThresholdRuleCondition is the RuleCondition implementation for LocationThresholdRuleCondition.

func (LocationThresholdRuleCondition) AsManagementEventRuleCondition

func (ltrc LocationThresholdRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool)

AsManagementEventRuleCondition is the RuleCondition implementation for LocationThresholdRuleCondition.

func (LocationThresholdRuleCondition) AsThresholdRuleCondition

func (ltrc LocationThresholdRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)

AsThresholdRuleCondition is the RuleCondition 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 LogProfileCollection

type LogProfileCollection struct {
	autorest.Response `json:"-"`
	Value             *[]LogProfileResource `json:"value,omitempty"`
}

LogProfileCollection is represents a collection of log profiles.

type LogProfileProperties

type LogProfileProperties struct {
	StorageAccountID *string          `json:"storageAccountId,omitempty"`
	ServiceBusRuleID *string          `json:"serviceBusRuleId,omitempty"`
	Locations        *[]string        `json:"locations,omitempty"`
	Categories       *[]string        `json:"categories,omitempty"`
	RetentionPolicy  *RetentionPolicy `json:"retentionPolicy,omitempty"`
}

LogProfileProperties is the log profile properties.

type LogProfileResource

type LogProfileResource struct {
	autorest.Response     `json:"-"`
	ID                    *string             `json:"id,omitempty"`
	Name                  *string             `json:"name,omitempty"`
	Type                  *string             `json:"type,omitempty"`
	Location              *string             `json:"location,omitempty"`
	Tags                  *map[string]*string `json:"tags,omitempty"`
	*LogProfileProperties `json:"properties,omitempty"`
}

LogProfileResource is the log profile resource.

type LogProfileResourcePatch

type LogProfileResourcePatch struct {
	Tags                  *map[string]*string `json:"tags,omitempty"`
	*LogProfileProperties `json:"properties,omitempty"`
}

LogProfileResourcePatch is the log profile resource for patch operations.

type LogProfilesClient

type LogProfilesClient struct {
	ManagementClient
}

LogProfilesClient is the monitor Management Client

func NewLogProfilesClient

func NewLogProfilesClient(subscriptionID string) LogProfilesClient

NewLogProfilesClient creates an instance of the LogProfilesClient client.

func NewLogProfilesClientWithBaseURI

func NewLogProfilesClientWithBaseURI(baseURI string, subscriptionID string) LogProfilesClient

NewLogProfilesClientWithBaseURI creates an instance of the LogProfilesClient client.

func (LogProfilesClient) CreateOrUpdate

func (client LogProfilesClient) CreateOrUpdate(logProfileName string, parameters LogProfileResource) (result LogProfileResource, err error)

CreateOrUpdate create or update a log profile in Azure Monitoring REST API.

logProfileName is the name of the log profile. parameters is parameters supplied to the operation.

func (LogProfilesClient) CreateOrUpdatePreparer

func (client LogProfilesClient) CreateOrUpdatePreparer(logProfileName string, parameters LogProfileResource) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (LogProfilesClient) CreateOrUpdateResponder

func (client LogProfilesClient) CreateOrUpdateResponder(resp *http.Response) (result LogProfileResource, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (LogProfilesClient) CreateOrUpdateSender

func (client LogProfilesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (LogProfilesClient) Delete

func (client LogProfilesClient) Delete(logProfileName string) (result autorest.Response, err error)

Delete deletes the log profile.

logProfileName is the name of the log profile.

func (LogProfilesClient) DeletePreparer

func (client LogProfilesClient) DeletePreparer(logProfileName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (LogProfilesClient) DeleteResponder

func (client LogProfilesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (LogProfilesClient) DeleteSender

func (client LogProfilesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (LogProfilesClient) Get

func (client LogProfilesClient) Get(logProfileName string) (result LogProfileResource, err error)

Get gets the log profile.

logProfileName is the name of the log profile.

func (LogProfilesClient) GetPreparer

func (client LogProfilesClient) GetPreparer(logProfileName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (LogProfilesClient) GetResponder

func (client LogProfilesClient) GetResponder(resp *http.Response) (result LogProfileResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (LogProfilesClient) GetSender

func (client LogProfilesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (LogProfilesClient) List

func (client LogProfilesClient) List() (result LogProfileCollection, err error)

List list the log profiles.

func (LogProfilesClient) ListPreparer

func (client LogProfilesClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (LogProfilesClient) ListResponder

func (client LogProfilesClient) ListResponder(resp *http.Response) (result LogProfileCollection, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (LogProfilesClient) ListSender

func (client LogProfilesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (LogProfilesClient) Update

func (client LogProfilesClient) Update(logProfileName string, logProfilesResource LogProfileResourcePatch) (result LogProfileResource, err error)

Update updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.

logProfileName is the name of the log profile. logProfilesResource is parameters supplied to the operation.

func (LogProfilesClient) UpdatePreparer

func (client LogProfilesClient) UpdatePreparer(logProfileName string, logProfilesResource LogProfileResourcePatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (LogProfilesClient) UpdateResponder

func (client LogProfilesClient) UpdateResponder(resp *http.Response) (result LogProfileResource, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (LogProfilesClient) UpdateSender

func (client LogProfilesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type LogSettings

type LogSettings struct {
	Category        *string          `json:"category,omitempty"`
	Enabled         *bool            `json:"enabled,omitempty"`
	RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"`
}

LogSettings is part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.

type ManagementClient

type ManagementClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

ManagementClient is the base client for Monitor.

func New

func New(subscriptionID string) ManagementClient

New creates an instance of the ManagementClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) ManagementClient

NewWithBaseURI creates an instance of the ManagementClient client.

type ManagementEventAggregationCondition

type ManagementEventAggregationCondition struct {
	Operator   ConditionOperator `json:"operator,omitempty"`
	Threshold  *float64          `json:"threshold,omitempty"`
	WindowSize *string           `json:"windowSize,omitempty"`
}

ManagementEventAggregationCondition is how the data that is collected should be combined over time.

type ManagementEventRuleCondition

type ManagementEventRuleCondition struct {
	DataSource  RuleDataSource                       `json:"dataSource,omitempty"`
	OdataType   OdataType1                           `json:"odata.type,omitempty"`
	Aggregation *ManagementEventAggregationCondition `json:"aggregation,omitempty"`
}

ManagementEventRuleCondition is a management event rule condition.

func (ManagementEventRuleCondition) AsLocationThresholdRuleCondition

func (merc ManagementEventRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool)

AsLocationThresholdRuleCondition is the RuleCondition implementation for ManagementEventRuleCondition.

func (ManagementEventRuleCondition) AsManagementEventRuleCondition

func (merc ManagementEventRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool)

AsManagementEventRuleCondition is the RuleCondition implementation for ManagementEventRuleCondition.

func (ManagementEventRuleCondition) AsThresholdRuleCondition

func (merc ManagementEventRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)

AsThresholdRuleCondition is the RuleCondition 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 MetricSettings

type MetricSettings struct {
	TimeGrain       *string          `json:"timeGrain,omitempty"`
	Category        *string          `json:"category,omitempty"`
	Enabled         *bool            `json:"enabled,omitempty"`
	RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"`
}

MetricSettings is part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric.

type MetricStatisticType

type MetricStatisticType string

MetricStatisticType enumerates the values for metric statistic type.

const (
	// Average specifies the average state for metric statistic type.
	Average MetricStatisticType = "Average"
	// Max specifies the max state for metric statistic type.
	Max MetricStatisticType = "Max"
	// Min specifies the min state for metric statistic type.
	Min MetricStatisticType = "Min"
	// Sum specifies the sum state for metric statistic type.
	Sum MetricStatisticType = "Sum"
)

type MetricTrigger

type MetricTrigger struct {
	MetricName        *string                 `json:"metricName,omitempty"`
	MetricResourceURI *string                 `json:"metricResourceUri,omitempty"`
	TimeGrain         *string                 `json:"timeGrain,omitempty"`
	Statistic         MetricStatisticType     `json:"statistic,omitempty"`
	TimeWindow        *string                 `json:"timeWindow,omitempty"`
	TimeAggregation   TimeAggregationType     `json:"timeAggregation,omitempty"`
	Operator          ComparisonOperationType `json:"operator,omitempty"`
	Threshold         *float64                `json:"threshold,omitempty"`
}

MetricTrigger is the trigger that results in a scaling action.

type OdataType

type OdataType string

OdataType enumerates the values for odata type.

const (
	// OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource specifies the odata type microsoft
	// azure management insights models rule management event data source state for odata type.
	OdataTypeMicrosoftAzureManagementInsightsModelsRuleManagementEventDataSource OdataType = "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource"
	// OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource specifies the odata type microsoft azure
	// management insights models rule metric data source state for odata type.
	OdataTypeMicrosoftAzureManagementInsightsModelsRuleMetricDataSource OdataType = "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource"
)

type OdataType1

type OdataType1 string

OdataType1 enumerates the values for odata type 1.

const (
	// OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition specifies the odata type microsoft
	// azure management insights models location threshold rule condition state for odata type 1.
	OdataTypeMicrosoftAzureManagementInsightsModelsLocationThresholdRuleCondition OdataType1 = "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition"
	// OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition specifies the odata type microsoft azure
	// management insights models management event rule condition state for odata type 1.
	OdataTypeMicrosoftAzureManagementInsightsModelsManagementEventRuleCondition OdataType1 = "Microsoft.Azure.Management.Insights.Models.ManagementEventRuleCondition"
	// OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition specifies the odata type microsoft azure
	// management insights models threshold rule condition state for odata type 1.
	OdataTypeMicrosoftAzureManagementInsightsModelsThresholdRuleCondition OdataType1 = "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition"
)

type OdataType2

type OdataType2 string

OdataType2 enumerates the values for odata type 2.

const (
	// OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction specifies the odata type microsoft azure management
	// insights models rule email action state for odata type 2.
	OdataTypeMicrosoftAzureManagementInsightsModelsRuleEmailAction OdataType2 = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction"
	// OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction specifies the odata type microsoft azure management
	// insights models rule webhook action state for odata type 2.
	OdataTypeMicrosoftAzureManagementInsightsModelsRuleWebhookAction OdataType2 = "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction"
)

type Operation

type Operation struct {
	Name    *string           `json:"name,omitempty"`
	Display *OperationDisplay `json:"display,omitempty"`
}

Operation is microsoft Insights API operation definition.

type OperationDisplay

type OperationDisplay struct {
	Provider  *string `json:"provider,omitempty"`
	Resource  *string `json:"resource,omitempty"`
	Operation *string `json:"operation,omitempty"`
}

OperationDisplay is display metadata associated with the operation.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	Value             *[]Operation `json:"value,omitempty"`
	NextLink          *string      `json:"nextLink,omitempty"`
}

OperationListResult is 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 OperationsClient

type OperationsClient struct {
	ManagementClient
}

OperationsClient is the monitor Management Client

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List

func (client OperationsClient) List() (result OperationListResult, err error)

List lists all of the available operations from Microsoft.Insights provider.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer() (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ProxyOnlyResource

type ProxyOnlyResource struct {
	ID   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	Type *string `json:"type,omitempty"`
}

ProxyOnlyResource is a proxy only azure resource object

type ReceiverStatus

type ReceiverStatus string

ReceiverStatus enumerates the values for receiver status.

const (
	// Disabled specifies the disabled state for receiver status.
	Disabled ReceiverStatus = "Disabled"
	// Enabled specifies the enabled state for receiver status.
	Enabled ReceiverStatus = "Enabled"
	// NotSpecified specifies the not specified state for receiver status.
	NotSpecified ReceiverStatus = "NotSpecified"
)

type Recurrence

type Recurrence struct {
	Frequency RecurrenceFrequency `json:"frequency,omitempty"`
	Schedule  *RecurrentSchedule  `json:"schedule,omitempty"`
}

Recurrence is 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 (
	// Day specifies the day state for recurrence frequency.
	Day RecurrenceFrequency = "Day"
	// Hour specifies the hour state for recurrence frequency.
	Hour RecurrenceFrequency = "Hour"
	// Minute specifies the minute state for recurrence frequency.
	Minute RecurrenceFrequency = "Minute"
	// Month specifies the month state for recurrence frequency.
	Month RecurrenceFrequency = "Month"
	// None specifies the none state for recurrence frequency.
	None RecurrenceFrequency = "None"
	// Second specifies the second state for recurrence frequency.
	Second RecurrenceFrequency = "Second"
	// Week specifies the week state for recurrence frequency.
	Week RecurrenceFrequency = "Week"
	// Year specifies the year state for recurrence frequency.
	Year RecurrenceFrequency = "Year"
)

type RecurrentSchedule

type RecurrentSchedule struct {
	TimeZone *string   `json:"timeZone,omitempty"`
	Days     *[]string `json:"days,omitempty"`
	Hours    *[]int32  `json:"hours,omitempty"`
	Minutes  *[]int32  `json:"minutes,omitempty"`
}

RecurrentSchedule is the scheduling constraints for when the profile begins.

type Resource

type Resource struct {
	ID       *string             `json:"id,omitempty"`
	Name     *string             `json:"name,omitempty"`
	Type     *string             `json:"type,omitempty"`
	Location *string             `json:"location,omitempty"`
	Tags     *map[string]*string `json:"tags,omitempty"`
}

Resource is an azure resource object

type RetentionPolicy

type RetentionPolicy struct {
	Enabled *bool  `json:"enabled,omitempty"`
	Days    *int32 `json:"days,omitempty"`
}

RetentionPolicy is specifies the retention policy for the log.

type RuleAction

type RuleAction interface {
	AsRuleEmailAction() (*RuleEmailAction, bool)
	AsRuleWebhookAction() (*RuleWebhookAction, bool)
}

RuleAction is the action that is performed when the alert rule becomes active, and when an alert condition is resolved.

type RuleCondition

type RuleCondition interface {
	AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)
	AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool)
	AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool)
}

RuleCondition is the condition that results in the alert rule being activated.

type RuleDataSource

type RuleDataSource interface {
	AsRuleMetricDataSource() (*RuleMetricDataSource, bool)
	AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool)
}

RuleDataSource is the resource from which the rule collects its data.

type RuleEmailAction

type RuleEmailAction struct {
	OdataType           OdataType2 `json:"odata.type,omitempty"`
	SendToServiceOwners *bool      `json:"sendToServiceOwners,omitempty"`
	CustomEmails        *[]string  `json:"customEmails,omitempty"`
}

RuleEmailAction is specifies the action to send email when the rule condition is evaluated. The discriminator is always RuleEmailAction in this case.

func (RuleEmailAction) AsRuleEmailAction

func (rea RuleEmailAction) AsRuleEmailAction() (*RuleEmailAction, bool)

AsRuleEmailAction is the RuleAction implementation for RuleEmailAction.

func (RuleEmailAction) AsRuleWebhookAction

func (rea RuleEmailAction) AsRuleWebhookAction() (*RuleWebhookAction, bool)

AsRuleWebhookAction is the RuleAction 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 *string `json:"emailAddress,omitempty"`
}

RuleManagementEventClaimsDataSource is the claims for a rule management event data source.

type RuleManagementEventDataSource

type RuleManagementEventDataSource struct {
	ResourceURI          *string                              `json:"resourceUri,omitempty"`
	OdataType            OdataType                            `json:"odata.type,omitempty"`
	EventName            *string                              `json:"eventName,omitempty"`
	EventSource          *string                              `json:"eventSource,omitempty"`
	Level                *string                              `json:"level,omitempty"`
	OperationName        *string                              `json:"operationName,omitempty"`
	ResourceGroupName    *string                              `json:"resourceGroupName,omitempty"`
	ResourceProviderName *string                              `json:"resourceProviderName,omitempty"`
	Status               *string                              `json:"status,omitempty"`
	SubStatus            *string                              `json:"subStatus,omitempty"`
	Claims               *RuleManagementEventClaimsDataSource `json:"claims,omitempty"`
}

RuleManagementEventDataSource is a rule management event data source. The discriminator fields is always RuleManagementEventDataSource in this case.

func (RuleManagementEventDataSource) AsRuleManagementEventDataSource

func (rmeds RuleManagementEventDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool)

AsRuleManagementEventDataSource is the RuleDataSource implementation for RuleManagementEventDataSource.

func (RuleManagementEventDataSource) AsRuleMetricDataSource

func (rmeds RuleManagementEventDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool)

AsRuleMetricDataSource is the RuleDataSource implementation for RuleManagementEventDataSource.

func (RuleManagementEventDataSource) MarshalJSON

func (rmeds RuleManagementEventDataSource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RuleManagementEventDataSource.

type RuleMetricDataSource

type RuleMetricDataSource struct {
	ResourceURI *string   `json:"resourceUri,omitempty"`
	OdataType   OdataType `json:"odata.type,omitempty"`
	MetricName  *string   `json:"metricName,omitempty"`
}

RuleMetricDataSource is a rule metric data source. The discriminator value is always RuleMetricDataSource in this case.

func (RuleMetricDataSource) AsRuleManagementEventDataSource

func (rmds RuleMetricDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool)

AsRuleManagementEventDataSource is the RuleDataSource implementation for RuleMetricDataSource.

func (RuleMetricDataSource) AsRuleMetricDataSource

func (rmds RuleMetricDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool)

AsRuleMetricDataSource is the RuleDataSource implementation for RuleMetricDataSource.

func (RuleMetricDataSource) MarshalJSON

func (rmds RuleMetricDataSource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RuleMetricDataSource.

type RuleWebhookAction

type RuleWebhookAction struct {
	OdataType  OdataType2          `json:"odata.type,omitempty"`
	ServiceURI *string             `json:"serviceUri,omitempty"`
	Properties *map[string]*string `json:"properties,omitempty"`
}

RuleWebhookAction is specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction in this case.

func (RuleWebhookAction) AsRuleEmailAction

func (rwa RuleWebhookAction) AsRuleEmailAction() (*RuleEmailAction, bool)

AsRuleEmailAction is the RuleAction implementation for RuleWebhookAction.

func (RuleWebhookAction) AsRuleWebhookAction

func (rwa RuleWebhookAction) AsRuleWebhookAction() (*RuleWebhookAction, bool)

AsRuleWebhookAction is the RuleAction 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 ScaleDirection `json:"direction,omitempty"`
	Type      ScaleType      `json:"type,omitempty"`
	Value     *string        `json:"value,omitempty"`
	Cooldown  *string        `json:"cooldown,omitempty"`
}

ScaleAction is the parameters for the scaling action.

type ScaleCapacity

type ScaleCapacity struct {
	Minimum *string `json:"minimum,omitempty"`
	Maximum *string `json:"maximum,omitempty"`
	Default *string `json:"default,omitempty"`
}

ScaleCapacity is 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 specifies the scale direction decrease state for scale direction.
	ScaleDirectionDecrease ScaleDirection = "Decrease"
	// ScaleDirectionIncrease specifies the scale direction increase state for scale direction.
	ScaleDirectionIncrease ScaleDirection = "Increase"
	// ScaleDirectionNone specifies the scale direction none state for scale direction.
	ScaleDirectionNone ScaleDirection = "None"
)

type ScaleRule

type ScaleRule struct {
	MetricTrigger *MetricTrigger `json:"metricTrigger,omitempty"`
	ScaleAction   *ScaleAction   `json:"scaleAction,omitempty"`
}

ScaleRule is a rule that provide the triggers and parameters for the scaling action.

type ScaleType

type ScaleType string

ScaleType enumerates the values for scale type.

const (
	// ChangeCount specifies the change count state for scale type.
	ChangeCount ScaleType = "ChangeCount"
	// ExactCount specifies the exact count state for scale type.
	ExactCount ScaleType = "ExactCount"
	// PercentChangeCount specifies the percent change count state for scale type.
	PercentChangeCount ScaleType = "PercentChangeCount"
)

type SmsReceiver

type SmsReceiver struct {
	Name        *string        `json:"name,omitempty"`
	CountryCode *string        `json:"countryCode,omitempty"`
	PhoneNumber *string        `json:"phoneNumber,omitempty"`
	Status      ReceiverStatus `json:"status,omitempty"`
}

SmsReceiver is an SMS receiver.

type ThresholdRuleCondition

type ThresholdRuleCondition struct {
	DataSource      RuleDataSource          `json:"dataSource,omitempty"`
	OdataType       OdataType1              `json:"odata.type,omitempty"`
	Operator        ConditionOperator       `json:"operator,omitempty"`
	Threshold       *float64                `json:"threshold,omitempty"`
	WindowSize      *string                 `json:"windowSize,omitempty"`
	TimeAggregation TimeAggregationOperator `json:"timeAggregation,omitempty"`
}

ThresholdRuleCondition is a rule condition based on a metric crossing a threshold.

func (ThresholdRuleCondition) AsLocationThresholdRuleCondition

func (trc ThresholdRuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool)

AsLocationThresholdRuleCondition is the RuleCondition implementation for ThresholdRuleCondition.

func (ThresholdRuleCondition) AsManagementEventRuleCondition

func (trc ThresholdRuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool)

AsManagementEventRuleCondition is the RuleCondition implementation for ThresholdRuleCondition.

func (ThresholdRuleCondition) AsThresholdRuleCondition

func (trc ThresholdRuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)

AsThresholdRuleCondition is the RuleCondition 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 specifies the time aggregation operator average state for time aggregation operator.
	TimeAggregationOperatorAverage TimeAggregationOperator = "Average"
	// TimeAggregationOperatorLast specifies the time aggregation operator last state for time aggregation operator.
	TimeAggregationOperatorLast TimeAggregationOperator = "Last"
	// TimeAggregationOperatorMaximum specifies the time aggregation operator maximum state for time aggregation operator.
	TimeAggregationOperatorMaximum TimeAggregationOperator = "Maximum"
	// TimeAggregationOperatorMinimum specifies the time aggregation operator minimum state for time aggregation operator.
	TimeAggregationOperatorMinimum TimeAggregationOperator = "Minimum"
	// TimeAggregationOperatorTotal specifies the time aggregation operator total state for time aggregation operator.
	TimeAggregationOperatorTotal TimeAggregationOperator = "Total"
)

type TimeAggregationType

type TimeAggregationType string

TimeAggregationType enumerates the values for time aggregation type.

const (
	// TimeAggregationTypeAverage specifies the time aggregation type average state for time aggregation type.
	TimeAggregationTypeAverage TimeAggregationType = "Average"
	// TimeAggregationTypeCount specifies the time aggregation type count state for time aggregation type.
	TimeAggregationTypeCount TimeAggregationType = "Count"
	// TimeAggregationTypeMaximum specifies the time aggregation type maximum state for time aggregation type.
	TimeAggregationTypeMaximum TimeAggregationType = "Maximum"
	// TimeAggregationTypeMinimum specifies the time aggregation type minimum state for time aggregation type.
	TimeAggregationTypeMinimum TimeAggregationType = "Minimum"
	// TimeAggregationTypeTotal specifies the time aggregation type total state for time aggregation type.
	TimeAggregationTypeTotal TimeAggregationType = "Total"
)

type TimeWindow

type TimeWindow struct {
	TimeZone *string    `json:"timeZone,omitempty"`
	Start    *date.Time `json:"start,omitempty"`
	End      *date.Time `json:"end,omitempty"`
}

TimeWindow is a specific date-time for the profile.

type WebhookNotification

type WebhookNotification struct {
	ServiceURI *string             `json:"serviceUri,omitempty"`
	Properties *map[string]*string `json:"properties,omitempty"`
}

WebhookNotification is webhook notification of an autoscale event.

type WebhookReceiver

type WebhookReceiver struct {
	Name       *string `json:"name,omitempty"`
	ServiceURI *string `json:"serviceUri,omitempty"`
}

WebhookReceiver is a webhook receiver.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL