azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights Index | Files | Directories

package insights

import "github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2017-05-01-preview/insights"

Package insights implements the Azure ARM Insights service API version .

Monitor Management Client

Index

Package Files

actiongroups.go activitylogalerts.go activitylogs.go alertruleincidents.go alertrules.go autoscalesettings.go client.go diagnosticsettings.go diagnosticsettingscategory.go eventcategories.go logprofiles.go metricbaseline.go metricdefinitions.go metrics.go models.go operations.go tenantactivitylogs.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Insights
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type ActionGroup Uses

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"`
    // ArmRoleReceivers - The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported.
    ArmRoleReceivers *[]ArmRoleReceiver `json:"armRoleReceivers,omitempty"`
}

ActionGroup an Azure action group.

type ActionGroupList Uses

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 Uses

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 Uses

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 Uses

func (agpb ActionGroupPatchBody) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ActionGroupPatchBody.

func (*ActionGroupPatchBody) UnmarshalJSON Uses

func (agpb *ActionGroupPatchBody) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ActionGroupPatchBody struct.

type ActionGroupResource Uses

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 Uses

func (agr ActionGroupResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ActionGroupResource.

func (*ActionGroupResource) UnmarshalJSON Uses

func (agr *ActionGroupResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ActionGroupResource struct.

type ActionGroupsClient Uses

type ActionGroupsClient struct {
    BaseClient
}

ActionGroupsClient is the monitor Management Client

func NewActionGroupsClient Uses

func NewActionGroupsClient(subscriptionID string) ActionGroupsClient

NewActionGroupsClient creates an instance of the ActionGroupsClient client.

func NewActionGroupsClientWithBaseURI Uses

func NewActionGroupsClientWithBaseURI(baseURI string, subscriptionID string) ActionGroupsClient

NewActionGroupsClientWithBaseURI creates an instance of the ActionGroupsClient client.

func (ActionGroupsClient) CreateOrUpdate Uses

func (client ActionGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroup ActionGroupResource) (result ActionGroupResource, err error)

CreateOrUpdate create a new action group or update an existing one. Parameters: resourceGroupName - the name of the resource group. actionGroupName - the name of the action group. actionGroup - the action group to create or use for the update.

func (ActionGroupsClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ActionGroupsClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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

Delete delete an action group. Parameters: resourceGroupName - the name of the resource group. actionGroupName - the name of the action group.

func (ActionGroupsClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (ActionGroupsClient) DeleteResponder Uses

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 Uses

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 Uses

func (client ActionGroupsClient) EnableReceiver(ctx context.Context, 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. This operation is only supported for Email or SMS receivers. Parameters: resourceGroupName - the name of the resource group. actionGroupName - the name of the action group. enableRequest - the receiver to re-enable.

func (ActionGroupsClient) EnableReceiverPreparer Uses

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

EnableReceiverPreparer prepares the EnableReceiver request.

func (ActionGroupsClient) EnableReceiverResponder Uses

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 Uses

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 Uses

func (client ActionGroupsClient) Get(ctx context.Context, resourceGroupName string, actionGroupName string) (result ActionGroupResource, err error)

Get get an action group. Parameters: resourceGroupName - the name of the resource group. actionGroupName - the name of the action group.

func (ActionGroupsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ActionGroupsClient) GetResponder Uses

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 Uses

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 Uses

func (client ActionGroupsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ActionGroupList, err error)

ListByResourceGroup get a list of all action groups in a resource group. Parameters: resourceGroupName - the name of the resource group.

func (ActionGroupsClient) ListByResourceGroupPreparer Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ActionGroupsClient) ListByResourceGroupResponder Uses

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 Uses

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 Uses

func (client ActionGroupsClient) ListBySubscriptionID(ctx context.Context) (result ActionGroupList, err error)

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

func (ActionGroupsClient) ListBySubscriptionIDPreparer Uses

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

ListBySubscriptionIDPreparer prepares the ListBySubscriptionID request.

func (ActionGroupsClient) ListBySubscriptionIDResponder Uses

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 Uses

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.

func (ActionGroupsClient) Update Uses

func (client ActionGroupsClient) Update(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroupPatch ActionGroupPatchBody) (result ActionGroupResource, err error)

Update updates an existing action group's tags. To update other fields use the CreateOrUpdate method. Parameters: resourceGroupName - the name of the resource group. actionGroupName - the name of the action group. actionGroupPatch - parameters supplied to the operation.

func (ActionGroupsClient) UpdatePreparer Uses

func (client ActionGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroupPatch ActionGroupPatchBody) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ActionGroupsClient) UpdateResponder Uses

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

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

func (ActionGroupsClient) UpdateSender Uses

func (client ActionGroupsClient) 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 ActivityLogAlert Uses

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 Uses

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 Uses

func (alaag ActivityLogAlertActionGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ActivityLogAlertActionGroup.

type ActivityLogAlertActionList Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (alapb ActivityLogAlertPatchBody) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ActivityLogAlertPatchBody.

func (*ActivityLogAlertPatchBody) UnmarshalJSON Uses

func (alapb *ActivityLogAlertPatchBody) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ActivityLogAlertPatchBody struct.

type ActivityLogAlertResource Uses

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 Uses

func (alar ActivityLogAlertResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ActivityLogAlertResource.

func (*ActivityLogAlertResource) UnmarshalJSON Uses

func (alar *ActivityLogAlertResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ActivityLogAlertResource struct.

type ActivityLogAlertsClient Uses

type ActivityLogAlertsClient struct {
    BaseClient
}

ActivityLogAlertsClient is the monitor Management Client

func NewActivityLogAlertsClient Uses

func NewActivityLogAlertsClient(subscriptionID string) ActivityLogAlertsClient

NewActivityLogAlertsClient creates an instance of the ActivityLogAlertsClient client.

func NewActivityLogAlertsClientWithBaseURI Uses

func NewActivityLogAlertsClientWithBaseURI(baseURI string, subscriptionID string) ActivityLogAlertsClient

NewActivityLogAlertsClientWithBaseURI creates an instance of the ActivityLogAlertsClient client.

func (ActivityLogAlertsClient) CreateOrUpdate Uses

func (client ActivityLogAlertsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, activityLogAlertName string, activityLogAlert ActivityLogAlertResource) (result ActivityLogAlertResource, err error)

CreateOrUpdate create a new activity log alert or update an existing one. Parameters: resourceGroupName - the name of the resource group. activityLogAlertName - the name of the activity log alert. activityLogAlert - the activity log alert to create or use for the update.

func (ActivityLogAlertsClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ActivityLogAlertsClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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

Delete delete an activity log alert. Parameters: resourceGroupName - the name of the resource group. activityLogAlertName - the name of the activity log alert.

func (ActivityLogAlertsClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (ActivityLogAlertsClient) DeleteResponder Uses

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 Uses

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 Uses

func (client ActivityLogAlertsClient) Get(ctx context.Context, resourceGroupName string, activityLogAlertName string) (result ActivityLogAlertResource, err error)

Get get an activity log alert. Parameters: resourceGroupName - the name of the resource group. activityLogAlertName - the name of the activity log alert.

func (ActivityLogAlertsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ActivityLogAlertsClient) GetResponder Uses

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 Uses

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 Uses

func (client ActivityLogAlertsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ActivityLogAlertList, err error)

ListByResourceGroup get a list of all activity log alerts in a resource group. Parameters: resourceGroupName - the name of the resource group.

func (ActivityLogAlertsClient) ListByResourceGroupPreparer Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ActivityLogAlertsClient) ListByResourceGroupResponder Uses

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 Uses

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 Uses

func (client ActivityLogAlertsClient) ListBySubscriptionID(ctx context.Context) (result ActivityLogAlertList, err error)

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

func (ActivityLogAlertsClient) ListBySubscriptionIDPreparer Uses

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

ListBySubscriptionIDPreparer prepares the ListBySubscriptionID request.

func (ActivityLogAlertsClient) ListBySubscriptionIDResponder Uses

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 Uses

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 Uses

func (client ActivityLogAlertsClient) Update(ctx context.Context, 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. Parameters: resourceGroupName - the name of the resource group. activityLogAlertName - the name of the activity log alert. activityLogAlertPatch - parameters supplied to the operation.

func (ActivityLogAlertsClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (ActivityLogAlertsClient) UpdateResponder Uses

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 Uses

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 ActivityLogsClient Uses

type ActivityLogsClient struct {
    BaseClient
}

ActivityLogsClient is the monitor Management Client

func NewActivityLogsClient Uses

func NewActivityLogsClient(subscriptionID string) ActivityLogsClient

NewActivityLogsClient creates an instance of the ActivityLogsClient client.

func NewActivityLogsClientWithBaseURI Uses

func NewActivityLogsClientWithBaseURI(baseURI string, subscriptionID string) ActivityLogsClient

NewActivityLogsClientWithBaseURI creates an instance of the ActivityLogsClient client.

func (ActivityLogsClient) List Uses

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) ListComplete Uses

func (client ActivityLogsClient) ListComplete(ctx context.Context, filter string, selectParameter string) (result EventDataCollectionIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ActivityLogsClient) ListPreparer Uses

func (client ActivityLogsClient) ListPreparer(ctx context.Context, filter string, selectParameter string) (*http.Request, error)

ListPreparer prepares the List request.

func (ActivityLogsClient) ListResponder Uses

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 Uses

func (client ActivityLogsClient) 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 AggregationType Uses

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 Uses

func PossibleAggregationTypeValues() []AggregationType

PossibleAggregationTypeValues returns an array of possible values for the AggregationType const type.

type AlertRule Uses

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) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for AlertRule struct.

type AlertRuleIncidentsClient Uses

type AlertRuleIncidentsClient struct {
    BaseClient
}

AlertRuleIncidentsClient is the monitor Management Client

func NewAlertRuleIncidentsClient Uses

func NewAlertRuleIncidentsClient(subscriptionID string) AlertRuleIncidentsClient

NewAlertRuleIncidentsClient creates an instance of the AlertRuleIncidentsClient client.

func NewAlertRuleIncidentsClientWithBaseURI Uses

func NewAlertRuleIncidentsClientWithBaseURI(baseURI string, subscriptionID string) AlertRuleIncidentsClient

NewAlertRuleIncidentsClientWithBaseURI creates an instance of the AlertRuleIncidentsClient client.

func (AlertRuleIncidentsClient) Get Uses

func (client AlertRuleIncidentsClient) Get(ctx context.Context, resourceGroupName string, ruleName string, incidentName string) (result Incident, err error)

Get gets an incident associated to an alert rule Parameters: resourceGroupName - the name of the resource group. ruleName - the name of the rule. incidentName - the name of the incident to retrieve.

func (AlertRuleIncidentsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (AlertRuleIncidentsClient) GetResponder Uses

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 Uses

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 Uses

func (client AlertRuleIncidentsClient) ListByAlertRule(ctx context.Context, resourceGroupName string, ruleName string) (result IncidentListResult, err error)

ListByAlertRule gets a list of incidents associated to an alert rule Parameters: resourceGroupName - the name of the resource group. ruleName - the name of the rule.

func (AlertRuleIncidentsClient) ListByAlertRulePreparer Uses

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

ListByAlertRulePreparer prepares the ListByAlertRule request.

func (AlertRuleIncidentsClient) ListByAlertRuleResponder Uses

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 Uses

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 Uses

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 Uses

func (arr AlertRuleResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AlertRuleResource.

func (*AlertRuleResource) UnmarshalJSON Uses

func (arr *AlertRuleResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AlertRuleResource struct.

type AlertRuleResourceCollection Uses

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 Uses

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 Uses

func (arrp AlertRuleResourcePatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AlertRuleResourcePatch.

func (*AlertRuleResourcePatch) UnmarshalJSON Uses

func (arrp *AlertRuleResourcePatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AlertRuleResourcePatch struct.

type AlertRulesClient Uses

type AlertRulesClient struct {
    BaseClient
}

AlertRulesClient is the monitor Management Client

func NewAlertRulesClient Uses

func NewAlertRulesClient(subscriptionID string) AlertRulesClient

NewAlertRulesClient creates an instance of the AlertRulesClient client.

func NewAlertRulesClientWithBaseURI Uses

func NewAlertRulesClientWithBaseURI(baseURI string, subscriptionID string) AlertRulesClient

NewAlertRulesClientWithBaseURI creates an instance of the AlertRulesClient client.

func (AlertRulesClient) CreateOrUpdate Uses

func (client AlertRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, ruleName string, parameters AlertRuleResource) (result AlertRuleResource, err error)

CreateOrUpdate creates or updates an alert rule. Parameters: resourceGroupName - the name of the resource group. ruleName - the name of the rule. parameters - the parameters of the rule to create or update.

func (AlertRulesClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AlertRulesClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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

Delete deletes an alert rule Parameters: resourceGroupName - the name of the resource group. ruleName - the name of the rule.

func (AlertRulesClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (AlertRulesClient) DeleteResponder Uses

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 Uses

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 Uses

func (client AlertRulesClient) Get(ctx context.Context, resourceGroupName string, ruleName string) (result AlertRuleResource, err error)

Get gets an alert rule Parameters: resourceGroupName - the name of the resource group. ruleName - the name of the rule.

func (AlertRulesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (AlertRulesClient) GetResponder Uses

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 Uses

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 Uses

func (client AlertRulesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AlertRuleResourceCollection, err error)

ListByResourceGroup list the alert rules within a resource group. Parameters: resourceGroupName - the name of the resource group.

func (AlertRulesClient) ListByResourceGroupPreparer Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AlertRulesClient) ListByResourceGroupResponder Uses

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 Uses

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) ListBySubscription Uses

func (client AlertRulesClient) ListBySubscription(ctx context.Context) (result AlertRuleResourceCollection, err error)

ListBySubscription list the alert rules within a subscription.

func (AlertRulesClient) ListBySubscriptionPreparer Uses

func (client AlertRulesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (AlertRulesClient) ListBySubscriptionResponder Uses

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

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (AlertRulesClient) ListBySubscriptionSender Uses

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

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

func (AlertRulesClient) Update Uses

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

Update updates an existing AlertRuleResource. To update other fields use the CreateOrUpdate method. Parameters: resourceGroupName - the name of the resource group. ruleName - the name of the rule. alertRulesResource - parameters supplied to the operation.

func (AlertRulesClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (AlertRulesClient) UpdateResponder Uses

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 Uses

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 ArmRoleReceiver Uses

type ArmRoleReceiver struct {
    // Name - The name of the arm role receiver. Names must be unique across all receivers within an action group.
    Name *string `json:"name,omitempty"`
    // RoleID - The arm role id.
    RoleID *string `json:"roleId,omitempty"`
}

ArmRoleReceiver an arm role receiver.

type AutomationRunbookReceiver Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (asr AutoscaleSettingResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AutoscaleSettingResource.

func (*AutoscaleSettingResource) UnmarshalJSON Uses

func (asr *AutoscaleSettingResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AutoscaleSettingResource struct.

type AutoscaleSettingResourceCollection Uses

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 Uses

func (asrc AutoscaleSettingResourceCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AutoscaleSettingResourceCollectionIterator Uses

type AutoscaleSettingResourceCollectionIterator struct {
    // contains filtered or unexported fields
}

AutoscaleSettingResourceCollectionIterator provides access to a complete listing of AutoscaleSettingResource values.

func NewAutoscaleSettingResourceCollectionIterator Uses

func NewAutoscaleSettingResourceCollectionIterator(page AutoscaleSettingResourceCollectionPage) AutoscaleSettingResourceCollectionIterator

Creates a new instance of the AutoscaleSettingResourceCollectionIterator type.

func (*AutoscaleSettingResourceCollectionIterator) Next Uses

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 Uses

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 Uses

func (iter AutoscaleSettingResourceCollectionIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AutoscaleSettingResourceCollectionIterator) Response Uses

func (iter AutoscaleSettingResourceCollectionIterator) Response() AutoscaleSettingResourceCollection

Response returns the raw server response from the last page request.

func (AutoscaleSettingResourceCollectionIterator) Value Uses

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 Uses

type AutoscaleSettingResourceCollectionPage struct {
    // contains filtered or unexported fields
}

AutoscaleSettingResourceCollectionPage contains a page of AutoscaleSettingResource values.

func NewAutoscaleSettingResourceCollectionPage Uses

func NewAutoscaleSettingResourceCollectionPage(getNextPage func(context.Context, AutoscaleSettingResourceCollection) (AutoscaleSettingResourceCollection, error)) AutoscaleSettingResourceCollectionPage

Creates a new instance of the AutoscaleSettingResourceCollectionPage type.

func (*AutoscaleSettingResourceCollectionPage) Next Uses

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 Uses

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 Uses

func (page AutoscaleSettingResourceCollectionPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AutoscaleSettingResourceCollectionPage) Response Uses

func (page AutoscaleSettingResourceCollectionPage) Response() AutoscaleSettingResourceCollection

Response returns the raw server response from the last page request.

func (AutoscaleSettingResourceCollectionPage) Values Uses

func (page AutoscaleSettingResourceCollectionPage) Values() []AutoscaleSettingResource

Values returns the slice of values for the current page or nil if there are no values.

type AutoscaleSettingResourcePatch Uses

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 Uses

func (asrp AutoscaleSettingResourcePatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AutoscaleSettingResourcePatch.

func (*AutoscaleSettingResourcePatch) UnmarshalJSON Uses

func (asrp *AutoscaleSettingResourcePatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AutoscaleSettingResourcePatch struct.

type AutoscaleSettingsClient Uses

type AutoscaleSettingsClient struct {
    BaseClient
}

AutoscaleSettingsClient is the monitor Management Client

func NewAutoscaleSettingsClient Uses

func NewAutoscaleSettingsClient(subscriptionID string) AutoscaleSettingsClient

NewAutoscaleSettingsClient creates an instance of the AutoscaleSettingsClient client.

func NewAutoscaleSettingsClientWithBaseURI Uses

func NewAutoscaleSettingsClientWithBaseURI(baseURI string, subscriptionID string) AutoscaleSettingsClient

NewAutoscaleSettingsClientWithBaseURI creates an instance of the AutoscaleSettingsClient client.

func (AutoscaleSettingsClient) CreateOrUpdate Uses

func (client AutoscaleSettingsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, autoscaleSettingName string, parameters AutoscaleSettingResource) (result AutoscaleSettingResource, err error)

CreateOrUpdate creates or updates an autoscale setting. Parameters: resourceGroupName - the name of the resource group. autoscaleSettingName - the autoscale setting name. parameters - parameters supplied to the operation.

func (AutoscaleSettingsClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (AutoscaleSettingsClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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

Delete deletes and autoscale setting Parameters: resourceGroupName - the name of the resource group. autoscaleSettingName - the autoscale setting name.

func (AutoscaleSettingsClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (AutoscaleSettingsClient) DeleteResponder Uses

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 Uses

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 Uses

func (client AutoscaleSettingsClient) Get(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (result AutoscaleSettingResource, err error)

Get gets an autoscale setting Parameters: resourceGroupName - the name of the resource group. autoscaleSettingName - the autoscale setting name.

func (AutoscaleSettingsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (AutoscaleSettingsClient) GetResponder Uses

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 Uses

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 Uses

func (client AutoscaleSettingsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AutoscaleSettingResourceCollectionPage, err error)

ListByResourceGroup lists the autoscale settings for a resource group Parameters: resourceGroupName - the name of the resource group.

func (AutoscaleSettingsClient) ListByResourceGroupComplete Uses

func (client AutoscaleSettingsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AutoscaleSettingResourceCollectionIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (AutoscaleSettingsClient) ListByResourceGroupPreparer Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (AutoscaleSettingsClient) ListByResourceGroupResponder Uses

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 Uses

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) ListBySubscription Uses

func (client AutoscaleSettingsClient) ListBySubscription(ctx context.Context) (result AutoscaleSettingResourceCollectionPage, err error)

ListBySubscription lists the autoscale settings for a subscription

func (AutoscaleSettingsClient) ListBySubscriptionComplete Uses

func (client AutoscaleSettingsClient) ListBySubscriptionComplete(ctx context.Context) (result AutoscaleSettingResourceCollectionIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (AutoscaleSettingsClient) ListBySubscriptionPreparer Uses

func (client AutoscaleSettingsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (AutoscaleSettingsClient) ListBySubscriptionResponder Uses

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

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (AutoscaleSettingsClient) ListBySubscriptionSender Uses

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

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

func (AutoscaleSettingsClient) Update Uses

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

Update updates an existing AutoscaleSettingsResource. To update other fields use the CreateOrUpdate method. Parameters: resourceGroupName - the name of the resource group. autoscaleSettingName - the autoscale setting name. autoscaleSettingResource - parameters supplied to the operation.

func (AutoscaleSettingsClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (AutoscaleSettingsClient) UpdateResponder Uses

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 Uses

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 AzureAppPushReceiver Uses

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 Uses

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 Uses

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

BaseClient is the base client for Insights.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type Baseline Uses

type Baseline struct {
    // Sensitivity - the sensitivity of the baseline. Possible values include: 'Low', 'Medium', 'High'
    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 Uses

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 Uses

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 Uses

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 Uses

func (br BaselineResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BaselineResponse.

func (*BaselineResponse) UnmarshalJSON Uses

func (br *BaselineResponse) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for BaselineResponse struct.

type BasicRuleAction Uses

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 Uses

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 Uses

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

BasicRuleDataSource the resource from which the rule collects its data.

type CalculateBaselineResponse Uses

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 Uses

type CategoryType string

CategoryType enumerates the values for category type.

const (
    // Logs ...
    Logs CategoryType = "Logs"
    // Metrics ...
    Metrics CategoryType = "Metrics"
)

func PossibleCategoryTypeValues Uses

func PossibleCategoryTypeValues() []CategoryType

PossibleCategoryTypeValues returns an array of possible values for the CategoryType const type.

type ComparisonOperationType Uses

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 Uses

func PossibleComparisonOperationTypeValues() []ComparisonOperationType

PossibleComparisonOperationTypeValues returns an array of possible values for the ComparisonOperationType const type.

type ConditionOperator Uses

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 Uses

func PossibleConditionOperatorValues() []ConditionOperator

PossibleConditionOperatorValues returns an array of possible values for the ConditionOperator const type.

type DiagnosticSettings Uses

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 Uses

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 DiagnosticSettingsCategoryClient Uses

type DiagnosticSettingsCategoryClient struct {
    BaseClient
}

DiagnosticSettingsCategoryClient is the monitor Management Client

func NewDiagnosticSettingsCategoryClient Uses

func NewDiagnosticSettingsCategoryClient(subscriptionID string) DiagnosticSettingsCategoryClient

NewDiagnosticSettingsCategoryClient creates an instance of the DiagnosticSettingsCategoryClient client.

func NewDiagnosticSettingsCategoryClientWithBaseURI Uses

func NewDiagnosticSettingsCategoryClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticSettingsCategoryClient

NewDiagnosticSettingsCategoryClientWithBaseURI creates an instance of the DiagnosticSettingsCategoryClient client.

func (DiagnosticSettingsCategoryClient) Get Uses

func (client DiagnosticSettingsCategoryClient) Get(ctx context.Context, resourceURI string, name string) (result DiagnosticSettingsCategoryResource, err error)

Get gets the diagnostic settings category for the specified resource. Parameters: resourceURI - the identifier of the resource. name - the name of the diagnostic setting.

func (DiagnosticSettingsCategoryClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (DiagnosticSettingsCategoryClient) GetResponder Uses

func (client DiagnosticSettingsCategoryClient) GetResponder(resp *http.Response) (result DiagnosticSettingsCategoryResource, err error)

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

func (DiagnosticSettingsCategoryClient) GetSender Uses

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 Uses

func (client DiagnosticSettingsCategoryClient) List(ctx context.Context, resourceURI string) (result DiagnosticSettingsCategoryResourceCollection, err error)

List lists the diagnostic settings categories for the specified resource. Parameters: resourceURI - the identifier of the resource.

func (DiagnosticSettingsCategoryClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (DiagnosticSettingsCategoryClient) ListResponder Uses

func (client DiagnosticSettingsCategoryClient) ListResponder(resp *http.Response) (result DiagnosticSettingsCategoryResourceCollection, err error)

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

func (DiagnosticSettingsCategoryClient) ListSender Uses

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 Uses

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 Uses

func (dscr DiagnosticSettingsCategoryResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DiagnosticSettingsCategoryResource.

func (*DiagnosticSettingsCategoryResource) UnmarshalJSON Uses

func (dscr *DiagnosticSettingsCategoryResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DiagnosticSettingsCategoryResource struct.

type DiagnosticSettingsCategoryResourceCollection Uses

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 DiagnosticSettingsClient Uses

type DiagnosticSettingsClient struct {
    BaseClient
}

DiagnosticSettingsClient is the monitor Management Client

func NewDiagnosticSettingsClient Uses

func NewDiagnosticSettingsClient(subscriptionID string) DiagnosticSettingsClient

NewDiagnosticSettingsClient creates an instance of the DiagnosticSettingsClient client.

func NewDiagnosticSettingsClientWithBaseURI Uses

func NewDiagnosticSettingsClientWithBaseURI(baseURI string, subscriptionID string) DiagnosticSettingsClient

NewDiagnosticSettingsClientWithBaseURI creates an instance of the DiagnosticSettingsClient client.

func (DiagnosticSettingsClient) CreateOrUpdate Uses

func (client DiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, resourceURI string, parameters DiagnosticSettingsResource, name string) (result DiagnosticSettingsResource, err error)

CreateOrUpdate creates or updates diagnostic settings for the specified resource. Parameters: resourceURI - the identifier of the resource. parameters - parameters supplied to the operation. name - the name of the diagnostic setting.

func (DiagnosticSettingsClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DiagnosticSettingsClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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

Delete deletes existing diagnostic settings for the specified resource. Parameters: resourceURI - the identifier of the resource. name - the name of the diagnostic setting.

func (DiagnosticSettingsClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (DiagnosticSettingsClient) DeleteResponder Uses

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 Uses

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 Uses

func (client DiagnosticSettingsClient) Get(ctx context.Context, resourceURI string, name string) (result DiagnosticSettingsResource, err error)

Get gets the active diagnostic settings for the specified resource. Parameters: resourceURI - the identifier of the resource. name - the name of the diagnostic setting.

func (DiagnosticSettingsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (DiagnosticSettingsClient) GetResponder Uses

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 Uses

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 Uses

func (client DiagnosticSettingsClient) List(ctx context.Context, resourceURI string) (result DiagnosticSettingsResourceCollection, err error)

List gets the active diagnostic settings list for the specified resource. Parameters: resourceURI - the identifier of the resource.

func (DiagnosticSettingsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (DiagnosticSettingsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

func (dsr DiagnosticSettingsResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DiagnosticSettingsResource.

func (*DiagnosticSettingsResource) UnmarshalJSON Uses

func (dsr *DiagnosticSettingsResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DiagnosticSettingsResource struct.

type DiagnosticSettingsResourceCollection Uses

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 EmailNotification Uses

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 Uses

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: 'NotSpecified', 'Enabled', 'Disabled'
    Status ReceiverStatus `json:"status,omitempty"`
}

EmailReceiver an email receiver.

type EnableRequest Uses

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 ErrorResponse Uses

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 EventCategoriesClient Uses

type EventCategoriesClient struct {
    BaseClient
}

EventCategoriesClient is the monitor Management Client

func NewEventCategoriesClient Uses

func NewEventCategoriesClient(subscriptionID string) EventCategoriesClient

NewEventCategoriesClient creates an instance of the EventCategoriesClient client.

func NewEventCategoriesClientWithBaseURI Uses

func NewEventCategoriesClientWithBaseURI(baseURI string, subscriptionID string) EventCategoriesClient

NewEventCategoriesClientWithBaseURI creates an instance of the EventCategoriesClient client.

func (EventCategoriesClient) List Uses

func (client EventCategoriesClient) List(ctx context.Context) (result EventCategoryCollection, err error)

List get the list of available event categories supported in the Activity Logs Service.<br>The current list includes the following: Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.

func (EventCategoriesClient) ListPreparer Uses

func (client EventCategoriesClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (EventCategoriesClient) ListResponder Uses

func (client EventCategoriesClient) ListResponder(resp *http.Response) (result EventCategoryCollection, err error)

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

func (EventCategoriesClient) ListSender Uses

func (client EventCategoriesClient) 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 EventCategoryCollection Uses

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 Uses

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 Uses

func (ed EventData) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for EventData.

type EventDataCollection Uses

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 Uses

func (edc EventDataCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type EventDataCollectionIterator Uses

type EventDataCollectionIterator struct {
    // contains filtered or unexported fields
}

EventDataCollectionIterator provides access to a complete listing of EventData values.

func NewEventDataCollectionIterator Uses

func NewEventDataCollectionIterator(page EventDataCollectionPage) EventDataCollectionIterator

Creates a new instance of the EventDataCollectionIterator type.

func (*EventDataCollectionIterator) Next Uses

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 Uses

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 Uses

func (iter EventDataCollectionIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (EventDataCollectionIterator) Response Uses

func (iter EventDataCollectionIterator) Response() EventDataCollection

Response returns the raw server response from the last page request.

func (EventDataCollectionIterator) Value Uses

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 Uses

type EventDataCollectionPage struct {
    // contains filtered or unexported fields
}

EventDataCollectionPage contains a page of EventData values.

func NewEventDataCollectionPage Uses

func NewEventDataCollectionPage(getNextPage func(context.Context, EventDataCollection) (EventDataCollection, error)) EventDataCollectionPage

Creates a new instance of the EventDataCollectionPage type.

func (*EventDataCollectionPage) Next Uses

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 Uses

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 Uses

func (page EventDataCollectionPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (EventDataCollectionPage) Response Uses

func (page EventDataCollectionPage) Response() EventDataCollection

Response returns the raw server response from the last page request.

func (EventDataCollectionPage) Values Uses

func (page EventDataCollectionPage) Values() []EventData

Values returns the slice of values for the current page or nil if there are no values.

type EventLevel Uses

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 Uses

func PossibleEventLevelValues() []EventLevel

PossibleEventLevelValues returns an array of possible values for the EventLevel const type.

type HTTPRequestInfo Uses

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 Uses

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 Uses

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

IncidentListResult the List incidents operation response.

type ItsmReceiver Uses

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 Uses

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 Uses

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 Uses

func (ltrc LocationThresholdRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool)

AsBasicRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.

func (LocationThresholdRuleCondition) AsLocationThresholdRuleCondition Uses

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

AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.

func (LocationThresholdRuleCondition) AsManagementEventRuleCondition Uses

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

AsManagementEventRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.

func (LocationThresholdRuleCondition) AsRuleCondition Uses

func (ltrc LocationThresholdRuleCondition) AsRuleCondition() (*RuleCondition, bool)

AsRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.

func (LocationThresholdRuleCondition) AsThresholdRuleCondition Uses

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

AsThresholdRuleCondition is the BasicRuleCondition implementation for LocationThresholdRuleCondition.

func (LocationThresholdRuleCondition) MarshalJSON Uses

func (ltrc LocationThresholdRuleCondition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LocationThresholdRuleCondition.

func (*LocationThresholdRuleCondition) UnmarshalJSON Uses

func (ltrc *LocationThresholdRuleCondition) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LocationThresholdRuleCondition struct.

type LogProfileCollection Uses

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 Uses

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 Uses

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 Uses

func (lpr LogProfileResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LogProfileResource.

func (*LogProfileResource) UnmarshalJSON Uses

func (lpr *LogProfileResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LogProfileResource struct.

type LogProfileResourcePatch Uses

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 Uses

func (lprp LogProfileResourcePatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for LogProfileResourcePatch.

func (*LogProfileResourcePatch) UnmarshalJSON Uses

func (lprp *LogProfileResourcePatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for LogProfileResourcePatch struct.

type LogProfilesClient Uses

type LogProfilesClient struct {
    BaseClient
}

LogProfilesClient is the monitor Management Client

func NewLogProfilesClient Uses

func NewLogProfilesClient(subscriptionID string) LogProfilesClient

NewLogProfilesClient creates an instance of the LogProfilesClient client.

func NewLogProfilesClientWithBaseURI Uses

func NewLogProfilesClientWithBaseURI(baseURI string, subscriptionID string) LogProfilesClient

NewLogProfilesClientWithBaseURI creates an instance of the LogProfilesClient client.

func (LogProfilesClient) CreateOrUpdate Uses

func (client LogProfilesClient) CreateOrUpdate(ctx context.Context, logProfileName string, parameters LogProfileResource) (result LogProfileResource, err error)

CreateOrUpdate create or update a log profile in Azure Monitoring REST API. Parameters: logProfileName - the name of the log profile. parameters - parameters supplied to the operation.

func (LogProfilesClient) CreateOrUpdatePreparer Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (LogProfilesClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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

Delete deletes the log profile. Parameters: logProfileName - the name of the log profile.

func (LogProfilesClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (LogProfilesClient) DeleteResponder Uses

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 Uses

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 Uses

func (client LogProfilesClient) Get(ctx context.Context, logProfileName string) (result LogProfileResource, err error)

Get gets the log profile. Parameters: logProfileName - the name of the log profile.

func (LogProfilesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (LogProfilesClient) GetResponder Uses

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 Uses

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 Uses

func (client LogProfilesClient) List(ctx context.Context) (result LogProfileCollection, err error)

List list the log profiles.

func (LogProfilesClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (LogProfilesClient) ListResponder Uses

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 Uses

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 Uses

func (client LogProfilesClient) Update(ctx context.Context, logProfileName string, logProfilesResource LogProfileResourcePatch) (result LogProfileResource, err error)

Update updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method. Parameters: logProfileName - the name of the log profile. logProfilesResource - parameters supplied to the operation.

func (LogProfilesClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (LogProfilesClient) UpdateResponder Uses

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 Uses

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 Uses

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 LogicAppReceiver Uses

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 Uses

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 Uses

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 Uses

func (merc ManagementEventRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool)

AsBasicRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.

func (ManagementEventRuleCondition) AsLocationThresholdRuleCondition Uses

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

AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.

func (ManagementEventRuleCondition) AsManagementEventRuleCondition Uses

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

AsManagementEventRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.

func (ManagementEventRuleCondition) AsRuleCondition Uses

func (merc ManagementEventRuleCondition) AsRuleCondition() (*RuleCondition, bool)

AsRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.

func (ManagementEventRuleCondition) AsThresholdRuleCondition Uses

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

AsThresholdRuleCondition is the BasicRuleCondition implementation for ManagementEventRuleCondition.

func (ManagementEventRuleCondition) MarshalJSON Uses

func (merc ManagementEventRuleCondition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ManagementEventRuleCondition.

func (*ManagementEventRuleCondition) UnmarshalJSON Uses

func (merc *ManagementEventRuleCondition) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ManagementEventRuleCondition struct.

type MetadataValue Uses

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 Uses

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'
    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 MetricAvailability Uses

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 MetricBaselineClient Uses

type MetricBaselineClient struct {
    BaseClient
}

MetricBaselineClient is the monitor Management Client

func NewMetricBaselineClient Uses

func NewMetricBaselineClient(subscriptionID string) MetricBaselineClient

NewMetricBaselineClient creates an instance of the MetricBaselineClient client.

func NewMetricBaselineClientWithBaseURI Uses

func NewMetricBaselineClientWithBaseURI(baseURI string, subscriptionID string) MetricBaselineClient

NewMetricBaselineClientWithBaseURI creates an instance of the MetricBaselineClient client.

func (MetricBaselineClient) CalculateBaseline Uses

func (client MetricBaselineClient) CalculateBaseline(ctx context.Context, resourceURI string, timeSeriesInformation TimeSeriesInformation) (result CalculateBaselineResponse, err error)

CalculateBaseline **Lists the baseline values for a resource**. Parameters: resourceURI - the identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1 timeSeriesInformation - information that need to be specified to calculate a baseline on a time series.

func (MetricBaselineClient) CalculateBaselinePreparer Uses

func (client MetricBaselineClient) CalculateBaselinePreparer(ctx context.Context, resourceURI string, timeSeriesInformation TimeSeriesInformation) (*http.Request, error)

CalculateBaselinePreparer prepares the CalculateBaseline request.

func (MetricBaselineClient) CalculateBaselineResponder Uses

func (client MetricBaselineClient) CalculateBaselineResponder(resp *http.Response) (result CalculateBaselineResponse, err error)

CalculateBaselineResponder handles the response to the CalculateBaseline request. The method always closes the http.Response Body.

func (MetricBaselineClient) CalculateBaselineSender Uses

func (client MetricBaselineClient) CalculateBaselineSender(req *http.Request) (*http.Response, error)

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

func (MetricBaselineClient) Get Uses

func (client MetricBaselineClient) Get(ctx context.Context, resourceURI string, metricName string, timespan string, interval *string, aggregation string, sensitivities string, resultType ResultType) (result BaselineResponse, err error)

Get **Gets the baseline values for a specific metric**. Parameters: resourceURI - the identifier of the resource. It has the following structure: subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. For example: subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1 metricName - the name of the metric to retrieve the baseline for. timespan - the timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. interval - the interval (i.e. timegrain) of the query. aggregation - the aggregation type of the metric to retrieve the baseline for. sensitivities - the list of sensitivities (comma separated) to retrieve. resultType - allows retrieving only metadata of the baseline. On data request all information is retrieved.

func (MetricBaselineClient) GetPreparer Uses

func (client MetricBaselineClient) GetPreparer(ctx context.Context, resourceURI string, metricName string, timespan string, interval *string, aggregation string, sensitivities string, resultType ResultType) (*http.Request, error)

GetPreparer prepares the Get request.

func (MetricBaselineClient) GetResponder Uses

func (client MetricBaselineClient) GetResponder(resp *http.Response) (result BaselineResponse, err error)

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

func (MetricBaselineClient) GetSender Uses

func (client MetricBaselineClient) 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.

type MetricDefinition Uses

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"`
    // 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'
    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"`
    // 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 Uses

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 MetricDefinitionsClient Uses

type MetricDefinitionsClient struct {
    BaseClient
}

MetricDefinitionsClient is the monitor Management Client

func NewMetricDefinitionsClient Uses

func NewMetricDefinitionsClient(subscriptionID string) MetricDefinitionsClient

NewMetricDefinitionsClient creates an instance of the MetricDefinitionsClient client.

func NewMetricDefinitionsClientWithBaseURI Uses

func NewMetricDefinitionsClientWithBaseURI(baseURI string, subscriptionID string) MetricDefinitionsClient

NewMetricDefinitionsClientWithBaseURI creates an instance of the MetricDefinitionsClient client.

func (MetricDefinitionsClient) List Uses

func (client MetricDefinitionsClient) List(ctx context.Context, resourceURI string) (result MetricDefinitionCollection, err error)

List lists the metric definitions for the resource. Parameters: resourceURI - the identifier of the resource.

func (MetricDefinitionsClient) ListPreparer Uses

func (client MetricDefinitionsClient) ListPreparer(ctx context.Context, resourceURI string) (*http.Request, error)

ListPreparer prepares the List request.

func (MetricDefinitionsClient) ListResponder Uses

func (client MetricDefinitionsClient) ListResponder(resp *http.Response) (result MetricDefinitionCollection, err error)

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

func (MetricDefinitionsClient) ListSender Uses

func (client MetricDefinitionsClient) 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 MetricSettings Uses

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 Uses

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 Uses

func PossibleMetricStatisticTypeValues() []MetricStatisticType

PossibleMetricStatisticTypeValues returns an array of possible values for the MetricStatisticType const type.

type MetricTrigger Uses

type MetricTrigger struct {
    // MetricName - the name of the metric that defines what the rule monitors.
    MetricName *string `json:"metricName,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"`
}

MetricTrigger the trigger that results in a scaling action.

type MetricValue Uses

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 *int64 `json:"count,omitempty"`
}

MetricValue represents a metric value.

type MetricsClient Uses

type MetricsClient struct {
    BaseClient
}

MetricsClient is the monitor Management Client

func NewMetricsClient Uses

func NewMetricsClient(subscriptionID string) MetricsClient

NewMetricsClient creates an instance of the MetricsClient client.

func NewMetricsClientWithBaseURI Uses

func NewMetricsClientWithBaseURI(baseURI string, subscriptionID string) MetricsClient

NewMetricsClientWithBaseURI creates an instance of the MetricsClient client.

func (MetricsClient) List Uses

func (client MetricsClient) List(ctx context.Context, resourceURI string, timespan string, interval *string, metric string, aggregation string, top *float64, orderby string, filter string, resultType ResultType) (result Response, err error)

List **Lists the metric values for a resource**. Parameters: resourceURI - the identifier of the resource. timespan - the timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'. interval - the interval (i.e. timegrain) of the query. metric - the name of the metric to retrieve. aggregation - the list of aggregation types (comma separated) to retrieve. top - the maximum number of records to retrieve. Valid only if $filter is specified. Defaults to 10. orderby - the aggregation to use for sorting results and the direction of the sort. Only one order can be specified. Examples: sum asc. filter - the **$filter** is used to reduce the set of metric data returned.<br>Example:<br>Metric contains metadata A, B and C.<br>- Return all time series of C where A = a1 and B = b1 or b2<br>**$filter=A eq ‘a1’ and B eq ‘b1’ or B eq ‘b2’ and C eq ‘*’**<br>- Invalid variant:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘*’ or B = ‘b2’**<br>This is invalid because the logical or operator cannot separate two different metadata names.<br>- Return all time series where A = a1, B = b1 and C = c1:<br>**$filter=A eq ‘a1’ and B eq ‘b1’ and C eq ‘c1’**<br>- Return all time series where A = a1<br>**$filter=A eq ‘a1’ and B eq ‘*’ and C eq ‘*’**. resultType - reduces the set of data collected. The syntax allowed depends on the operation. See the operation's description for details.

func (MetricsClient) ListPreparer Uses

func (client MetricsClient) ListPreparer(ctx context.Context, resourceURI string, timespan string, interval *string, metric string, aggregation string, top *float64, orderby string, filter string, resultType ResultType) (*http.Request, error)

ListPreparer prepares the List request.

func (MetricsClient) ListResponder Uses

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

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

func (MetricsClient) ListSender Uses

func (client MetricsClient) 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 OdataType Uses

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 Uses

func PossibleOdataTypeValues() []OdataType

PossibleOdataTypeValues returns an array of possible values for the OdataType const type.

type OdataTypeBasicRuleAction Uses

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 Uses

func PossibleOdataTypeBasicRuleActionValues() []OdataTypeBasicRuleAction

PossibleOdataTypeBasicRuleActionValues returns an array of possible values for the OdataTypeBasicRuleAction const type.

type OdataTypeBasicRuleCondition Uses

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 Uses

func PossibleOdataTypeBasicRuleConditionValues() []OdataTypeBasicRuleCondition

PossibleOdataTypeBasicRuleConditionValues returns an array of possible values for the OdataTypeBasicRuleCondition const type.

type Operation Uses

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 Uses

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 Uses

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 OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the monitor Management Client

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context) (result OperationListResult, err error)

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

func (OperationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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 Uses

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 Uses

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 ReceiverStatus Uses

type ReceiverStatus string

ReceiverStatus enumerates the values for receiver status.

const (
    // Disabled ...
    Disabled ReceiverStatus = "Disabled"
    // Enabled ...
    Enabled ReceiverStatus = "Enabled"
    // NotSpecified ...
    NotSpecified ReceiverStatus = "NotSpecified"
)

func PossibleReceiverStatusValues Uses

func PossibleReceiverStatusValues() []ReceiverStatus

PossibleReceiverStatusValues returns an array of possible values for the ReceiverStatus const type.

type Recurrence Uses

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 Uses

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 Uses

func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency

PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type.

type RecurrentSchedule Uses

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 Uses

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 Uses

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type Response Uses

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"`
    // Value - the value of the collection.
    Value *[]Metric `json:"value,omitempty"`
}

Response the response to a metrics query.

type ResultType Uses

type ResultType string

ResultType enumerates the values for result type.

const (
    // Data ...
    Data ResultType = "Data"
    // Metadata ...
    Metadata ResultType = "Metadata"
)

func PossibleResultTypeValues Uses

func PossibleResultTypeValues() []ResultType

PossibleResultTypeValues returns an array of possible values for the ResultType const type.

type RetentionPolicy Uses

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 Uses

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 Uses

func (ra RuleAction) AsBasicRuleAction() (BasicRuleAction, bool)

AsBasicRuleAction is the BasicRuleAction implementation for RuleAction.

func (RuleAction) AsRuleAction Uses

func (ra RuleAction) AsRuleAction() (*RuleAction, bool)

AsRuleAction is the BasicRuleAction implementation for RuleAction.

func (RuleAction) AsRuleEmailAction Uses

func (ra RuleAction) AsRuleEmailAction() (*RuleEmailAction, bool)

AsRuleEmailAction is the BasicRuleAction implementation for RuleAction.

func (RuleAction) AsRuleWebhookAction Uses

func (ra RuleAction) AsRuleWebhookAction() (*RuleWebhookAction, bool)

AsRuleWebhookAction is the BasicRuleAction implementation for RuleAction.

func (RuleAction) MarshalJSON Uses

func (ra RuleAction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RuleAction.

type RuleCondition Uses

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 Uses

func (rc RuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool)

AsBasicRuleCondition is the BasicRuleCondition implementation for RuleCondition.

func (RuleCondition) AsLocationThresholdRuleCondition Uses

func (rc RuleCondition) AsLocationThresholdRuleCondition() (*LocationThresholdRuleCondition, bool)

AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for RuleCondition.

func (RuleCondition) AsManagementEventRuleCondition Uses

func (rc RuleCondition) AsManagementEventRuleCondition() (*ManagementEventRuleCondition, bool)

AsManagementEventRuleCondition is the BasicRuleCondition implementation for RuleCondition.

func (RuleCondition) AsRuleCondition Uses

func (rc RuleCondition) AsRuleCondition() (*RuleCondition, bool)

AsRuleCondition is the BasicRuleCondition implementation for RuleCondition.

func (RuleCondition) AsThresholdRuleCondition Uses

func (rc RuleCondition) AsThresholdRuleCondition() (*ThresholdRuleCondition, bool)

AsThresholdRuleCondition is the BasicRuleCondition implementation for RuleCondition.

func (RuleCondition) MarshalJSON Uses

func (rc RuleCondition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RuleCondition.

func (*RuleCondition) UnmarshalJSON Uses

func (rc *RuleCondition) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for RuleCondition struct.

type RuleDataSource Uses

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 Uses

func (rds RuleDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool)

AsBasicRuleDataSource is the BasicRuleDataSource implementation for RuleDataSource.

func (RuleDataSource) AsRuleDataSource Uses

func (rds RuleDataSource) AsRuleDataSource() (*RuleDataSource, bool)

AsRuleDataSource is the BasicRuleDataSource implementation for RuleDataSource.

func (RuleDataSource) AsRuleManagementEventDataSource Uses

func (rds RuleDataSource) AsRuleManagementEventDataSource() (*RuleManagementEventDataSource, bool)

AsRuleManagementEventDataSource is the BasicRuleDataSource implementation for RuleDataSource.

func (RuleDataSource) AsRuleMetricDataSource Uses

func (rds RuleDataSource) AsRuleMetricDataSource() (*RuleMetricDataSource, bool)

AsRuleMetricDataSource is the BasicRuleDataSource implementation for RuleDataSource.

func (RuleDataSource) MarshalJSON Uses

func (rds RuleDataSource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RuleDataSource.

type RuleEmailAction Uses

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 Uses

func (rea RuleEmailAction) AsBasicRuleAction() (BasicRuleAction, bool)

AsBasicRuleAction is the BasicRuleAction implementation for RuleEmailAction.

func (RuleEmailAction) AsRuleAction Uses

func (rea RuleEmailAction) AsRuleAction() (*RuleAction, bool)

AsRuleAction is the BasicRuleAction implementation for RuleEmailAction.

func (RuleEmailAction) AsRuleEmailAction Uses

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

AsRuleEmailAction is the BasicRuleAction implementation for RuleEmailAction.

func (RuleEmailAction) AsRuleWebhookAction Uses

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

AsRuleWebhookAction is the BasicRuleAction implementation for RuleEmailAction.

func (RuleEmailAction) MarshalJSON Uses

func (rea RuleEmailAction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RuleEmailAction.

type RuleManagementEventClaimsDataSource Uses

type RuleManagementEventClaimsDataSource struct {
    // EmailAddress - the email address.
    EmailAddress *string `json:"emailAddress,omitempty"`
}

RuleManagementEventClaimsDataSource the claims for a rule management event data source.

type RuleManagementEventDataSource Uses

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 Uses

func (rmeds RuleManagementEventDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool)

AsBasicRuleDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.

func (RuleManagementEventDataSource) AsRuleDataSource Uses

func (rmeds RuleManagementEventDataSource) AsRuleDataSource() (*RuleDataSource, bool)

AsRuleDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.

func (RuleManagementEventDataSource) AsRuleManagementEventDataSource Uses

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

AsRuleManagementEventDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.

func (RuleManagementEventDataSource) AsRuleMetricDataSource Uses

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

AsRuleMetricDataSource is the BasicRuleDataSource implementation for RuleManagementEventDataSource.

func (RuleManagementEventDataSource) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for RuleManagementEventDataSource.

type RuleMetricDataSource Uses

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 Uses

func (rmds RuleMetricDataSource) AsBasicRuleDataSource() (BasicRuleDataSource, bool)

AsBasicRuleDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.

func (RuleMetricDataSource) AsRuleDataSource Uses

func (rmds RuleMetricDataSource) AsRuleDataSource() (*RuleDataSource, bool)

AsRuleDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.

func (RuleMetricDataSource) AsRuleManagementEventDataSource Uses

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

AsRuleManagementEventDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.

func (RuleMetricDataSource) AsRuleMetricDataSource Uses

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

AsRuleMetricDataSource is the BasicRuleDataSource implementation for RuleMetricDataSource.

func (RuleMetricDataSource) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for RuleMetricDataSource.

type RuleWebhookAction Uses

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 Uses

func (rwa RuleWebhookAction) AsBasicRuleAction() (BasicRuleAction, bool)

AsBasicRuleAction is the BasicRuleAction implementation for RuleWebhookAction.

func (RuleWebhookAction) AsRuleAction Uses

func (rwa RuleWebhookAction) AsRuleAction() (*RuleAction, bool)

AsRuleAction is the BasicRuleAction implementation for RuleWebhookAction.

func (RuleWebhookAction) AsRuleEmailAction Uses

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

AsRuleEmailAction is the BasicRuleAction implementation for RuleWebhookAction.

func (RuleWebhookAction) AsRuleWebhookAction Uses

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

AsRuleWebhookAction is the BasicRuleAction implementation for RuleWebhookAction.

func (RuleWebhookAction) MarshalJSON Uses

func (rwa RuleWebhookAction) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for RuleWebhookAction.

type ScaleAction Uses

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 Uses

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 Uses

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 Uses

func PossibleScaleDirectionValues() []ScaleDirection

PossibleScaleDirectionValues returns an array of possible values for the ScaleDirection const type.

type ScaleRule Uses

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 ScaleType Uses

type ScaleType string

ScaleType enumerates the values for scale type.

const (
    // ChangeCount ...
    ChangeCount ScaleType = "ChangeCount"
    // ExactCount ...
    ExactCount ScaleType = "ExactCount"
    // PercentChangeCount ...
    PercentChangeCount ScaleType = "PercentChangeCount"
)

func PossibleScaleTypeValues Uses

func PossibleScaleTypeValues() []ScaleType

PossibleScaleTypeValues returns an array of possible values for the ScaleType const type.

type SenderAuthorization Uses

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 Uses

type Sensitivity string

Sensitivity enumerates the values for sensitivity.

const (
    // High ...
    High Sensitivity = "High"
    // Low ...
    Low Sensitivity = "Low"
    // Medium ...
    Medium Sensitivity = "Medium"
)

func PossibleSensitivityValues Uses

func PossibleSensitivityValues() []Sensitivity

PossibleSensitivityValues returns an array of possible values for the Sensitivity const type.

type SmsReceiver Uses

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: 'NotSpecified', 'Enabled', 'Disabled'
    Status ReceiverStatus `json:"status,omitempty"`
}

SmsReceiver an SMS receiver.

type TenantActivityLogsClient Uses

type TenantActivityLogsClient struct {
    BaseClient
}

TenantActivityLogsClient is the monitor Management Client

func NewTenantActivityLogsClient Uses

func NewTenantActivityLogsClient(subscriptionID string) TenantActivityLogsClient

NewTenantActivityLogsClient creates an instance of the TenantActivityLogsClient client.

func NewTenantActivityLogsClientWithBaseURI Uses

func NewTenantActivityLogsClientWithBaseURI(baseURI string, subscriptionID string) TenantActivityLogsClient

NewTenantActivityLogsClientWithBaseURI creates an instance of the TenantActivityLogsClient client.

func (TenantActivityLogsClient) List Uses

func (client TenantActivityLogsClient) List(ctx context.Context, filter string, selectParameter string) (result EventDataCollectionPage, err error)

List gets the Activity Logs for the Tenant.<br>Everything that is applicable to the API to get the Activity Logs for the subscription is applicable to this API (the parameters, $filter, etc.).<br>One thing to point out here is that this API does *not* retrieve the logs at the individual subscription of the tenant but only surfaces the logs that were generated at the tenant level. Parameters: filter - reduces the set of data collected. <br>The **$filter** is very restricted and allows only the following patterns.<br>- List events for a resource group: $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le '<End Time>' and eventChannels eq 'Admin, Operation' and resourceGroupName eq '<ResourceGroupName>'.<br>- List events for resource: $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le '<End Time>' and eventChannels eq 'Admin, Operation' and resourceUri eq '<ResourceURI>'.<br>- List events for a subscription: $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le '<End Time>' and eventChannels eq 'Admin, Operation'.<br>- List events for a resource provider: $filter=eventTimestamp ge '<Start Time>' and eventTimestamp le '<End Time>' and eventChannels eq 'Admin, Operation' and resourceProvider eq '<ResourceProviderName>'.<br>- List events for a correlation Id: api-version=2014-04-01&$filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' and eventTimestamp le '2014-07-20T04:36:37.6407898Z' and eventChannels eq 'Admin, Operation' and correlationId eq '<CorrelationID>'.<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 (TenantActivityLogsClient) ListComplete Uses

func (client TenantActivityLogsClient) ListComplete(ctx context.Context, filter string, selectParameter string) (result EventDataCollectionIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (TenantActivityLogsClient) ListPreparer Uses

func (client TenantActivityLogsClient) ListPreparer(ctx context.Context, filter string, selectParameter string) (*http.Request, error)

ListPreparer prepares the List request.

func (TenantActivityLogsClient) ListResponder Uses

func (client TenantActivityLogsClient) 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 (TenantActivityLogsClient) ListSender Uses

func (client TenantActivityLogsClient) 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 ThresholdRuleCondition Uses

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 Uses

func (trc ThresholdRuleCondition) AsBasicRuleCondition() (BasicRuleCondition, bool)

AsBasicRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.

func (ThresholdRuleCondition) AsLocationThresholdRuleCondition Uses

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

AsLocationThresholdRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.

func (ThresholdRuleCondition) AsManagementEventRuleCondition Uses

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

AsManagementEventRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.

func (ThresholdRuleCondition) AsRuleCondition Uses

func (trc ThresholdRuleCondition) AsRuleCondition() (*RuleCondition, bool)

AsRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.

func (ThresholdRuleCondition) AsThresholdRuleCondition Uses

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

AsThresholdRuleCondition is the BasicRuleCondition implementation for ThresholdRuleCondition.

func (ThresholdRuleCondition) MarshalJSON Uses

func (trc ThresholdRuleCondition) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ThresholdRuleCondition.

func (*ThresholdRuleCondition) UnmarshalJSON Uses

func (trc *ThresholdRuleCondition) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ThresholdRuleCondition struct.

type TimeAggregationOperator Uses

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 Uses

func PossibleTimeAggregationOperatorValues() []TimeAggregationOperator

PossibleTimeAggregationOperatorValues returns an array of possible values for the TimeAggregationOperator const type.

type TimeAggregationType Uses

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 Uses

func PossibleTimeAggregationTypeValues() []TimeAggregationType

PossibleTimeAggregationTypeValues returns an array of possible values for the TimeAggregationType const type.

type TimeSeriesElement Uses

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 Uses

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 Uses

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 Unit Uses

type Unit string

Unit enumerates the values for unit.

const (
    // UnitBytes ...
    UnitBytes Unit = "Bytes"
    // UnitByteSeconds ...
    UnitByteSeconds Unit = "ByteSeconds"
    // UnitBytesPerSecond ...
    UnitBytesPerSecond Unit = "BytesPerSecond"
    // UnitCount ...
    UnitCount Unit = "Count"
    // UnitCountPerSecond ...
    UnitCountPerSecond Unit = "CountPerSecond"
    // UnitMilliSeconds ...
    UnitMilliSeconds Unit = "MilliSeconds"
    // UnitPercent ...
    UnitPercent Unit = "Percent"
    // UnitSeconds ...
    UnitSeconds Unit = "Seconds"
    // UnitUnspecified ...
    UnitUnspecified Unit = "Unspecified"
)

func PossibleUnitValues Uses

func PossibleUnitValues() []Unit

PossibleUnitValues returns an array of possible values for the Unit const type.

type VoiceReceiver Uses

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 Uses

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 Uses

func (wn WebhookNotification) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WebhookNotification.

type WebhookReceiver Uses

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.

Directories

PathSynopsis
insightsapi

Package insights imports 10 packages (graph) and is imported by 4 packages. Updated 2019-07-30. Refresh now. Tools for package owners.