const ( // DefaultBaseURI is the default URI used for the service Diagnostics DefaultBaseURI = "https://management.azure.com" )
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
AccessMode enumerates the values for access mode.
type AccessMode string
const ( // Open ... Open AccessMode = "Open" // PrivateOnly ... PrivateOnly AccessMode = "PrivateOnly" )
func PossibleAccessModeValues() []AccessMode
PossibleAccessModeValues returns an array of possible values for the AccessMode const type.
AccessModeSettings properties that define the scope private link mode settings.
type AccessModeSettings struct { // QueryAccessMode - Specifies the default access mode of queries through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array. Possible values include: 'Open', 'PrivateOnly' QueryAccessMode AccessMode `json:"queryAccessMode,omitempty"` // IngestionAccessMode - Specifies the default access mode of ingestion through associated private endpoints in scope. If not specified default value is 'Open'. You can override this default setting for a specific private endpoint connection by adding an exclusion in the 'exclusions' array. Possible values include: 'Open', 'PrivateOnly' IngestionAccessMode AccessMode `json:"ingestionAccessMode,omitempty"` // Exclusions - List of exclusions that override the default access mode settings for specific private endpoint connections. Exclusions *[]AccessModeSettingsExclusion `json:"exclusions,omitempty"` }
AccessModeSettingsExclusion properties that define the scope private link mode settings exclusion item. This setting applies to a specific private endpoint connection and overrides the default settings for that private endpoint connection.
type AccessModeSettingsExclusion struct { // PrivateEndpointConnectionName - The private endpoint connection name associated to the private endpoint on which we want to apply the specific access mode settings. PrivateEndpointConnectionName *string `json:"privateEndpointConnectionName,omitempty"` // QueryAccessMode - Specifies the access mode of queries through the specified private endpoint connection in the exclusion. Possible values include: 'Open', 'PrivateOnly' QueryAccessMode AccessMode `json:"queryAccessMode,omitempty"` // IngestionAccessMode - Specifies the access mode of ingestion through the specified private endpoint connection in the exclusion. Possible values include: 'Open', 'PrivateOnly' IngestionAccessMode AccessMode `json:"ingestionAccessMode,omitempty"` }
ActionDetail the action detail
type ActionDetail struct { // MechanismType - The mechanism type MechanismType *string `json:"MechanismType,omitempty"` // Name - The name of the action Name *string `json:"Name,omitempty"` // Status - The status of the action Status *string `json:"Status,omitempty"` // SubState - The substatus of the action SubState *string `json:"SubState,omitempty"` // SendTime - The send time SendTime *string `json:"SendTime,omitempty"` // Detail - The detail of the friendly error message Detail *string `json:"Detail,omitempty"` }
ActionGroup an Azure action group.
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"` // EventHubReceivers - The list of event hub receivers that are part of this action group. EventHubReceivers *[]EventHubReceiver `json:"eventHubReceivers,omitempty"` }
ActionGroupList a list of action groups.
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"` }
ActionGroupPatch an Azure action group for patch operations.
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"` }
ActionGroupPatchBody an action group object for the body of patch operations.
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"` }
func (agpb ActionGroupPatchBody) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ActionGroupPatchBody.
func (agpb *ActionGroupPatchBody) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ActionGroupPatchBody struct.
ActionGroupResource an action group resource.
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"` }
func (agr ActionGroupResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ActionGroupResource.
func (agr *ActionGroupResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ActionGroupResource struct.
ActionGroupsClient is the monitor Management Client
type ActionGroupsClient struct { BaseClient }
func NewActionGroupsClient(subscriptionID string) ActionGroupsClient
NewActionGroupsClient creates an instance of the ActionGroupsClient client.
func NewActionGroupsClientWithBaseURI(baseURI string, subscriptionID string) ActionGroupsClient
NewActionGroupsClientWithBaseURI creates an instance of the ActionGroupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client ActionGroupsClient) CreateNotificationsAtActionGroupResourceLevel(ctx context.Context, resourceGroupName string, actionGroupName string, notificationRequest NotificationRequestBody) (result ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture, err error)
CreateNotificationsAtActionGroupResourceLevel send test notifications to a set of provided receivers Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. actionGroupName - the name of the action group. notificationRequest - the notification request body which includes the contact details
func (client ActionGroupsClient) CreateNotificationsAtActionGroupResourceLevelPreparer(ctx context.Context, resourceGroupName string, actionGroupName string, notificationRequest NotificationRequestBody) (*http.Request, error)
CreateNotificationsAtActionGroupResourceLevelPreparer prepares the CreateNotificationsAtActionGroupResourceLevel request.
func (client ActionGroupsClient) CreateNotificationsAtActionGroupResourceLevelResponder(resp *http.Response) (result TestNotificationDetailsResponse, err error)
CreateNotificationsAtActionGroupResourceLevelResponder handles the response to the CreateNotificationsAtActionGroupResourceLevel request. The method always closes the http.Response Body.
func (client ActionGroupsClient) CreateNotificationsAtActionGroupResourceLevelSender(req *http.Request) (future ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture, err error)
CreateNotificationsAtActionGroupResourceLevelSender sends the CreateNotificationsAtActionGroupResourceLevel request. The method will close the http.Response Body if it receives an error.
func (client ActionGroupsClient) CreateNotificationsAtResourceGroupLevel(ctx context.Context, resourceGroupName string, notificationRequest NotificationRequestBody) (result ActionGroupsCreateNotificationsAtResourceGroupLevelFuture, err error)
CreateNotificationsAtResourceGroupLevel send test notifications to a set of provided receivers Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. notificationRequest - the notification request body which includes the contact details
func (client ActionGroupsClient) CreateNotificationsAtResourceGroupLevelPreparer(ctx context.Context, resourceGroupName string, notificationRequest NotificationRequestBody) (*http.Request, error)
CreateNotificationsAtResourceGroupLevelPreparer prepares the CreateNotificationsAtResourceGroupLevel request.
func (client ActionGroupsClient) CreateNotificationsAtResourceGroupLevelResponder(resp *http.Response) (result TestNotificationDetailsResponse, err error)
CreateNotificationsAtResourceGroupLevelResponder handles the response to the CreateNotificationsAtResourceGroupLevel request. The method always closes the http.Response Body.
func (client ActionGroupsClient) CreateNotificationsAtResourceGroupLevelSender(req *http.Request) (future ActionGroupsCreateNotificationsAtResourceGroupLevelFuture, err error)
CreateNotificationsAtResourceGroupLevelSender sends the CreateNotificationsAtResourceGroupLevel request. The method will close the http.Response Body if it receives an error.
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. The name is case insensitive. actionGroupName - the name of the action group. actionGroup - the action group to create or use for the update.
func (client ActionGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroup ActionGroupResource) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (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 (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. The name is case insensitive. actionGroupName - the name of the action group.
func (client ActionGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, actionGroupName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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. The name is case insensitive. actionGroupName - the name of the action group. enableRequest - the receiver to re-enable.
func (client ActionGroupsClient) EnableReceiverPreparer(ctx context.Context, resourceGroupName string, actionGroupName string, enableRequest EnableRequest) (*http.Request, error)
EnableReceiverPreparer prepares the EnableReceiver request.
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 (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 (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. The name is case insensitive. actionGroupName - the name of the action group.
func (client ActionGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, actionGroupName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (client ActionGroupsClient) GetTestNotifications(ctx context.Context, notificationID string) (result TestNotificationDetailsResponse, err error)
GetTestNotifications get the test notifications by the notification id Parameters: notificationID - the notification id
func (client ActionGroupsClient) GetTestNotificationsAtActionGroupResourceLevel(ctx context.Context, resourceGroupName string, actionGroupName string, notificationID string) (result TestNotificationDetailsResponse, err error)
GetTestNotificationsAtActionGroupResourceLevel get the test notifications by the notification id Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. actionGroupName - the name of the action group. notificationID - the notification id
func (client ActionGroupsClient) GetTestNotificationsAtActionGroupResourceLevelPreparer(ctx context.Context, resourceGroupName string, actionGroupName string, notificationID string) (*http.Request, error)
GetTestNotificationsAtActionGroupResourceLevelPreparer prepares the GetTestNotificationsAtActionGroupResourceLevel request.
func (client ActionGroupsClient) GetTestNotificationsAtActionGroupResourceLevelResponder(resp *http.Response) (result TestNotificationDetailsResponse, err error)
GetTestNotificationsAtActionGroupResourceLevelResponder handles the response to the GetTestNotificationsAtActionGroupResourceLevel request. The method always closes the http.Response Body.
func (client ActionGroupsClient) GetTestNotificationsAtActionGroupResourceLevelSender(req *http.Request) (*http.Response, error)
GetTestNotificationsAtActionGroupResourceLevelSender sends the GetTestNotificationsAtActionGroupResourceLevel request. The method will close the http.Response Body if it receives an error.
func (client ActionGroupsClient) GetTestNotificationsAtResourceGroupLevel(ctx context.Context, resourceGroupName string, notificationID string) (result TestNotificationDetailsResponse, err error)
GetTestNotificationsAtResourceGroupLevel get the test notifications by the notification id Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. notificationID - the notification id
func (client ActionGroupsClient) GetTestNotificationsAtResourceGroupLevelPreparer(ctx context.Context, resourceGroupName string, notificationID string) (*http.Request, error)
GetTestNotificationsAtResourceGroupLevelPreparer prepares the GetTestNotificationsAtResourceGroupLevel request.
func (client ActionGroupsClient) GetTestNotificationsAtResourceGroupLevelResponder(resp *http.Response) (result TestNotificationDetailsResponse, err error)
GetTestNotificationsAtResourceGroupLevelResponder handles the response to the GetTestNotificationsAtResourceGroupLevel request. The method always closes the http.Response Body.
func (client ActionGroupsClient) GetTestNotificationsAtResourceGroupLevelSender(req *http.Request) (*http.Response, error)
GetTestNotificationsAtResourceGroupLevelSender sends the GetTestNotificationsAtResourceGroupLevel request. The method will close the http.Response Body if it receives an error.
func (client ActionGroupsClient) GetTestNotificationsPreparer(ctx context.Context, notificationID string) (*http.Request, error)
GetTestNotificationsPreparer prepares the GetTestNotifications request.
func (client ActionGroupsClient) GetTestNotificationsResponder(resp *http.Response) (result TestNotificationDetailsResponse, err error)
GetTestNotificationsResponder handles the response to the GetTestNotifications request. The method always closes the http.Response Body.
func (client ActionGroupsClient) GetTestNotificationsSender(req *http.Request) (*http.Response, error)
GetTestNotificationsSender sends the GetTestNotifications request. The method will close the http.Response Body if it receives an error.
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. The name is case insensitive.
func (client ActionGroupsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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 (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 (client ActionGroupsClient) ListBySubscriptionID(ctx context.Context) (result ActionGroupList, err error)
ListBySubscriptionID get a list of all action groups in a subscription.
func (client ActionGroupsClient) ListBySubscriptionIDPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionIDPreparer prepares the ListBySubscriptionID request.
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 (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 (client ActionGroupsClient) PostTestNotifications(ctx context.Context, notificationRequest NotificationRequestBody) (result ActionGroupsPostTestNotificationsFuture, err error)
PostTestNotifications send test notifications to a set of provided receivers Parameters: notificationRequest - the notification request body which includes the contact details
func (client ActionGroupsClient) PostTestNotificationsPreparer(ctx context.Context, notificationRequest NotificationRequestBody) (*http.Request, error)
PostTestNotificationsPreparer prepares the PostTestNotifications request.
func (client ActionGroupsClient) PostTestNotificationsResponder(resp *http.Response) (result TestNotificationDetailsResponse, err error)
PostTestNotificationsResponder handles the response to the PostTestNotifications request. The method always closes the http.Response Body.
func (client ActionGroupsClient) PostTestNotificationsSender(req *http.Request) (future ActionGroupsPostTestNotificationsFuture, err error)
PostTestNotificationsSender sends the PostTestNotifications request. The method will close the http.Response Body if it receives an error.
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. The name is case insensitive. actionGroupName - the name of the action group. actionGroupPatch - parameters supplied to the operation.
func (client ActionGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroupPatch ActionGroupPatchBody) (*http.Request, error)
UpdatePreparer prepares the Update request.
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 (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.
ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ActionGroupsClient) (TestNotificationDetailsResponse, error) }
func (future *ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ActionGroupsCreateNotificationsAtResourceGroupLevelFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ActionGroupsCreateNotificationsAtResourceGroupLevelFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ActionGroupsClient) (TestNotificationDetailsResponse, error) }
func (future *ActionGroupsCreateNotificationsAtResourceGroupLevelFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ActionGroupsPostTestNotificationsFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type ActionGroupsPostTestNotificationsFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ActionGroupsClient) (TestNotificationDetailsResponse, error) }
func (future *ActionGroupsPostTestNotificationsFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
ArmRoleReceiver an arm role receiver.
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"` // UseCommonAlertSchema - Indicates whether to use common alert schema. UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"` }
AutomationRunbookReceiver the Azure Automation Runbook notification receiver.
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"` // UseCommonAlertSchema - Indicates whether to use common alert schema. UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"` }
AutoscaleErrorResponse describes the format of Error response.
type AutoscaleErrorResponse struct { // Error - The error object. Error *AutoscaleErrorResponseError `json:"error,omitempty"` // SystemData - READ-ONLY; The system metadata related to the response. SystemData *SystemData `json:"systemData,omitempty"` }
func (aer AutoscaleErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AutoscaleErrorResponse.
AutoscaleErrorResponseError the error object.
type AutoscaleErrorResponseError struct { // Code - One of a server-defined set of error codes. Code *string `json:"code,omitempty"` // Message - A human-readable representation of the error. Message *string `json:"message,omitempty"` // Target - The target of the particular error. Target *string `json:"target,omitempty"` // Details - A human-readable representation of the error's details. Details *string `json:"details,omitempty"` }
AutoscaleNotification autoscale notification.
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"` }
AutoscaleProfile autoscale profile.
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"` }
AutoscaleSetting a setting that contains all of the configuration for the automatic scaling of a resource.
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 'false'. Enabled *bool `json:"enabled,omitempty"` // PredictiveAutoscalePolicy - the predictive autoscale policy mode. PredictiveAutoscalePolicy *PredictiveAutoscalePolicy `json:"predictiveAutoscalePolicy,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"` // TargetResourceLocation - the location of the resource that the autoscale setting should be added to. TargetResourceLocation *string `json:"targetResourceLocation,omitempty"` }
AutoscaleSettingResource the autoscale setting resource.
type AutoscaleSettingResource struct { autorest.Response `json:"-"` // 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 - Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater in length than 128 characters and a value no greater in length than 256 characters. Tags map[string]*string `json:"tags"` // AutoscaleSetting - The autoscale setting of the resource. *AutoscaleSetting `json:"properties,omitempty"` // SystemData - READ-ONLY; The system metadata related to the response. SystemData *SystemData `json:"systemData,omitempty"` }
func (asr AutoscaleSettingResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AutoscaleSettingResource.
func (asr *AutoscaleSettingResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AutoscaleSettingResource struct.
AutoscaleSettingResourceCollection represents a collection of autoscale setting resources.
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"` }
func (asrc AutoscaleSettingResourceCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
AutoscaleSettingResourceCollectionIterator provides access to a complete listing of AutoscaleSettingResource values.
type AutoscaleSettingResourceCollectionIterator struct {
// contains filtered or unexported fields
}
func NewAutoscaleSettingResourceCollectionIterator(page AutoscaleSettingResourceCollectionPage) AutoscaleSettingResourceCollectionIterator
Creates a new instance of the AutoscaleSettingResourceCollectionIterator type.
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 (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 (iter AutoscaleSettingResourceCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter AutoscaleSettingResourceCollectionIterator) Response() AutoscaleSettingResourceCollection
Response returns the raw server response from the last page request.
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.
AutoscaleSettingResourceCollectionPage contains a page of AutoscaleSettingResource values.
type AutoscaleSettingResourceCollectionPage struct {
// contains filtered or unexported fields
}
func NewAutoscaleSettingResourceCollectionPage(cur AutoscaleSettingResourceCollection, getNextPage func(context.Context, AutoscaleSettingResourceCollection) (AutoscaleSettingResourceCollection, error)) AutoscaleSettingResourceCollectionPage
Creates a new instance of the AutoscaleSettingResourceCollectionPage type.
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 (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 (page AutoscaleSettingResourceCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page AutoscaleSettingResourceCollectionPage) Response() AutoscaleSettingResourceCollection
Response returns the raw server response from the last page request.
func (page AutoscaleSettingResourceCollectionPage) Values() []AutoscaleSettingResource
Values returns the slice of values for the current page or nil if there are no values.
AutoscaleSettingResourcePatch the autoscale setting object for patch operations.
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"` }
func (asrp AutoscaleSettingResourcePatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AutoscaleSettingResourcePatch.
func (asrp *AutoscaleSettingResourcePatch) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AutoscaleSettingResourcePatch struct.
AutoscaleSettingsClient is the monitor Management Client
type AutoscaleSettingsClient struct { BaseClient }
func NewAutoscaleSettingsClient(subscriptionID string) AutoscaleSettingsClient
NewAutoscaleSettingsClient creates an instance of the AutoscaleSettingsClient client.
func NewAutoscaleSettingsClientWithBaseURI(baseURI string, subscriptionID string) AutoscaleSettingsClient
NewAutoscaleSettingsClientWithBaseURI creates an instance of the AutoscaleSettingsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (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. The name is case insensitive. autoscaleSettingName - the autoscale setting name. parameters - parameters supplied to the operation.
func (client AutoscaleSettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string, parameters AutoscaleSettingResource) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
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 (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 (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. The name is case insensitive. autoscaleSettingName - the autoscale setting name.
func (client AutoscaleSettingsClient) DeletePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
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 (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 (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. The name is case insensitive. autoscaleSettingName - the autoscale setting name.
func (client AutoscaleSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (*http.Request, error)
GetPreparer prepares the Get request.
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 (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 (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. The name is case insensitive.
func (client AutoscaleSettingsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AutoscaleSettingResourceCollectionIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client AutoscaleSettingsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
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 (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 (client AutoscaleSettingsClient) ListBySubscription(ctx context.Context) (result AutoscaleSettingResourceCollectionPage, err error)
ListBySubscription lists the autoscale settings for a subscription
func (client AutoscaleSettingsClient) ListBySubscriptionComplete(ctx context.Context) (result AutoscaleSettingResourceCollectionIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (client AutoscaleSettingsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
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 (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 (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. The name is case insensitive. autoscaleSettingName - the autoscale setting name. autoscaleSettingResource - parameters supplied to the operation.
func (client AutoscaleSettingsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string, autoscaleSettingResource AutoscaleSettingResourcePatch) (*http.Request, error)
UpdatePreparer prepares the Update request.
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 (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.
AzureAppPushReceiver the Azure mobile App push notification receiver.
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"` }
AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.
type AzureEntityResource struct { // Etag - READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (aer AzureEntityResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureEntityResource.
AzureFunctionReceiver an azure function receiver.
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"` // UseCommonAlertSchema - Indicates whether to use common alert schema. UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"` }
AzureMonitorPrivateLinkScope an Azure Monitor PrivateLinkScope definition.
type AzureMonitorPrivateLinkScope struct { autorest.Response `json:"-"` // AzureMonitorPrivateLinkScopeProperties - Properties that define a Azure Monitor PrivateLinkScope resource. *AzureMonitorPrivateLinkScopeProperties `json:"properties,omitempty"` // SystemData - READ-ONLY; System data SystemData *SystemData `json:"systemData,omitempty"` // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (ampls AzureMonitorPrivateLinkScope) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureMonitorPrivateLinkScope.
func (ampls *AzureMonitorPrivateLinkScope) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AzureMonitorPrivateLinkScope struct.
AzureMonitorPrivateLinkScopeListResult describes the list of Azure Monitor PrivateLinkScope resources.
type AzureMonitorPrivateLinkScopeListResult struct { autorest.Response `json:"-"` // Value - List of Azure Monitor PrivateLinkScope definitions. Value *[]AzureMonitorPrivateLinkScope `json:"value,omitempty"` // NextLink - The URI to get the next set of Azure Monitor PrivateLinkScope definitions if too many PrivateLinkScopes where returned in the result set. NextLink *string `json:"nextLink,omitempty"` }
func (amplslr AzureMonitorPrivateLinkScopeListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
AzureMonitorPrivateLinkScopeListResultIterator provides access to a complete listing of AzureMonitorPrivateLinkScope values.
type AzureMonitorPrivateLinkScopeListResultIterator struct {
// contains filtered or unexported fields
}
func NewAzureMonitorPrivateLinkScopeListResultIterator(page AzureMonitorPrivateLinkScopeListResultPage) AzureMonitorPrivateLinkScopeListResultIterator
Creates a new instance of the AzureMonitorPrivateLinkScopeListResultIterator type.
func (iter *AzureMonitorPrivateLinkScopeListResultIterator) 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 (iter *AzureMonitorPrivateLinkScopeListResultIterator) 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 (iter AzureMonitorPrivateLinkScopeListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter AzureMonitorPrivateLinkScopeListResultIterator) Response() AzureMonitorPrivateLinkScopeListResult
Response returns the raw server response from the last page request.
func (iter AzureMonitorPrivateLinkScopeListResultIterator) Value() AzureMonitorPrivateLinkScope
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
AzureMonitorPrivateLinkScopeListResultPage contains a page of AzureMonitorPrivateLinkScope values.
type AzureMonitorPrivateLinkScopeListResultPage struct {
// contains filtered or unexported fields
}
func NewAzureMonitorPrivateLinkScopeListResultPage(cur AzureMonitorPrivateLinkScopeListResult, getNextPage func(context.Context, AzureMonitorPrivateLinkScopeListResult) (AzureMonitorPrivateLinkScopeListResult, error)) AzureMonitorPrivateLinkScopeListResultPage
Creates a new instance of the AzureMonitorPrivateLinkScopeListResultPage type.
func (page *AzureMonitorPrivateLinkScopeListResultPage) 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 (page *AzureMonitorPrivateLinkScopeListResultPage) 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 (page AzureMonitorPrivateLinkScopeListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page AzureMonitorPrivateLinkScopeListResultPage) Response() AzureMonitorPrivateLinkScopeListResult
Response returns the raw server response from the last page request.
func (page AzureMonitorPrivateLinkScopeListResultPage) Values() []AzureMonitorPrivateLinkScope
Values returns the slice of values for the current page or nil if there are no values.
AzureMonitorPrivateLinkScopeProperties properties that define a Azure Monitor PrivateLinkScope resource.
type AzureMonitorPrivateLinkScopeProperties struct { // ProvisioningState - READ-ONLY; Current state of this PrivateLinkScope: whether or not is has been provisioned within the resource group it is defined. Users cannot change this value but are able to read from it. Values will include Provisioning ,Succeeded, Canceled and Failed. ProvisioningState *string `json:"provisioningState,omitempty"` // PrivateEndpointConnections - READ-ONLY; List of private endpoint connections. PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` // AccessModeSettings - Access mode settings AccessModeSettings *AccessModeSettings `json:"accessModeSettings,omitempty"` }
func (amplsp AzureMonitorPrivateLinkScopeProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureMonitorPrivateLinkScopeProperties.
AzureResource an azure resource object
type AzureResource 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"` }
func (ar AzureResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureResource.
BaseClient is the base client for Diagnostics.
type BaseClient struct { autorest.Client BaseURI string SubscriptionID string }
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
CategoryType enumerates the values for category type.
type CategoryType string
const ( // Logs ... Logs CategoryType = "Logs" // Metrics ... Metrics CategoryType = "Metrics" )
func PossibleCategoryTypeValues() []CategoryType
PossibleCategoryTypeValues returns an array of possible values for the CategoryType const type.
ComparisonOperationType enumerates the values for comparison operation type.
type ComparisonOperationType string
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() []ComparisonOperationType
PossibleComparisonOperationTypeValues returns an array of possible values for the ComparisonOperationType const type.
Context the context info
type Context struct { // NotificationSource - The source of the notification request NotificationSource *string `json:"notificationSource,omitempty"` // ContextType - The context id type ContextType *string `json:"contextType,omitempty"` }
CreatedByType enumerates the values for created by type.
type CreatedByType string
const ( // Application ... Application CreatedByType = "Application" // Key ... Key CreatedByType = "Key" // ManagedIdentity ... ManagedIdentity CreatedByType = "ManagedIdentity" // User ... User CreatedByType = "User" )
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
DefaultErrorResponse common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
type DefaultErrorResponse struct { // Error - The error object. Error *ErrorDetail `json:"error,omitempty"` }
EmailNotification email notification of an autoscale event.
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"` }
EmailReceiver an email receiver.
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"` // UseCommonAlertSchema - Indicates whether to use common alert schema. UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"` // Status - READ-ONLY; The receiver status of the e-mail. Possible values include: 'ReceiverStatusNotSpecified', 'ReceiverStatusEnabled', 'ReceiverStatusDisabled' Status ReceiverStatus `json:"status,omitempty"` }
func (er EmailReceiver) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EmailReceiver.
EnableRequest describes a receiver that should be resubscribed.
type EnableRequest struct { // ReceiverName - The name of the receiver to resubscribe. ReceiverName *string `json:"receiverName,omitempty"` }
ErrorAdditionalInfo the resource management error additional info.
type ErrorAdditionalInfo struct { // Type - READ-ONLY; The additional info type. Type *string `json:"type,omitempty"` // Info - READ-ONLY; The additional info. Info interface{} `json:"info,omitempty"` }
func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorAdditionalInfo.
ErrorDetail the error detail.
type ErrorDetail struct { // Code - READ-ONLY; The error code. Code *string `json:"code,omitempty"` // Message - READ-ONLY; The error message. Message *string `json:"message,omitempty"` // Target - READ-ONLY; The error target. Target *string `json:"target,omitempty"` // Details - READ-ONLY; The error details. Details *[]ErrorDetail `json:"details,omitempty"` // AdditionalInfo - READ-ONLY; The error additional info. AdditionalInfo *[]ErrorAdditionalInfo `json:"additionalInfo,omitempty"` }
func (ed ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorDetail.
ErrorResponse describes the format of Error response.
type ErrorResponse struct { // Code - Error code Code *string `json:"code,omitempty"` // Message - Error message indicating why the operation failed. Message *string `json:"message,omitempty"` }
EventHubReceiver an Event hub receiver.
type EventHubReceiver struct { // Name - The name of the Event hub receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // EventHubNameSpace - The Event Hub namespace EventHubNameSpace *string `json:"eventHubNameSpace,omitempty"` // EventHubName - The name of the specific Event Hub queue EventHubName *string `json:"eventHubName,omitempty"` // UseCommonAlertSchema - Indicates whether to use common alert schema. UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"` // TenantID - The tenant Id for the subscription containing this event hub TenantID *string `json:"tenantId,omitempty"` // SubscriptionID - The Id for the subscription containing this event hub SubscriptionID *string `json:"subscriptionId,omitempty"` }
ItsmReceiver an Itsm receiver.
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"` }
LogSettings part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.
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"` // CategoryGroup - Name of a Diagnostic Log category group 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. CategoryGroup *string `json:"categoryGroup,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"` }
LogicAppReceiver a logic app receiver.
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"` // UseCommonAlertSchema - Indicates whether to use common alert schema. UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"` }
ManagementGroupDiagnosticSettings the management group diagnostic settings.
type ManagementGroupDiagnosticSettings 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"` // Logs - The list of logs settings. Logs *[]ManagementGroupLogSettings `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"` // MarketplacePartnerID - The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs. MarketplacePartnerID *string `json:"marketplacePartnerId,omitempty"` }
ManagementGroupDiagnosticSettingsClient is the monitor Management Client
type ManagementGroupDiagnosticSettingsClient struct { BaseClient }
func NewManagementGroupDiagnosticSettingsClient(subscriptionID string) ManagementGroupDiagnosticSettingsClient
NewManagementGroupDiagnosticSettingsClient creates an instance of the ManagementGroupDiagnosticSettingsClient client.
func NewManagementGroupDiagnosticSettingsClientWithBaseURI(baseURI string, subscriptionID string) ManagementGroupDiagnosticSettingsClient
NewManagementGroupDiagnosticSettingsClientWithBaseURI creates an instance of the ManagementGroupDiagnosticSettingsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client ManagementGroupDiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, managementGroupID string, parameters ManagementGroupDiagnosticSettingsResource, name string) (result ManagementGroupDiagnosticSettingsResource, err error)
CreateOrUpdate creates or updates management group diagnostic settings for the specified resource. Parameters: managementGroupID - the management group id. parameters - parameters supplied to the operation. name - the name of the diagnostic setting.
func (client ManagementGroupDiagnosticSettingsClient) CreateOrUpdatePreparer(ctx context.Context, managementGroupID string, parameters ManagementGroupDiagnosticSettingsResource, name string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client ManagementGroupDiagnosticSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result ManagementGroupDiagnosticSettingsResource, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client ManagementGroupDiagnosticSettingsClient) 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 (client ManagementGroupDiagnosticSettingsClient) Delete(ctx context.Context, managementGroupID string, name string) (result autorest.Response, err error)
Delete deletes existing management group diagnostic settings for the specified resource. Parameters: managementGroupID - the management group id. name - the name of the diagnostic setting.
func (client ManagementGroupDiagnosticSettingsClient) DeletePreparer(ctx context.Context, managementGroupID string, name string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client ManagementGroupDiagnosticSettingsClient) 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 (client ManagementGroupDiagnosticSettingsClient) 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 (client ManagementGroupDiagnosticSettingsClient) Get(ctx context.Context, managementGroupID string, name string) (result ManagementGroupDiagnosticSettingsResource, err error)
Get gets the active management group diagnostic settings for the specified resource. Parameters: managementGroupID - the management group id. name - the name of the diagnostic setting.
func (client ManagementGroupDiagnosticSettingsClient) GetPreparer(ctx context.Context, managementGroupID string, name string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client ManagementGroupDiagnosticSettingsClient) GetResponder(resp *http.Response) (result ManagementGroupDiagnosticSettingsResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client ManagementGroupDiagnosticSettingsClient) 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 (client ManagementGroupDiagnosticSettingsClient) List(ctx context.Context, managementGroupID string) (result ManagementGroupDiagnosticSettingsResourceCollection, err error)
List gets the active management group diagnostic settings list for the specified management group. Parameters: managementGroupID - the management group id.
func (client ManagementGroupDiagnosticSettingsClient) ListPreparer(ctx context.Context, managementGroupID string) (*http.Request, error)
ListPreparer prepares the List request.
func (client ManagementGroupDiagnosticSettingsClient) ListResponder(resp *http.Response) (result ManagementGroupDiagnosticSettingsResourceCollection, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client ManagementGroupDiagnosticSettingsClient) 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.
ManagementGroupDiagnosticSettingsResource the management group diagnostic setting resource.
type ManagementGroupDiagnosticSettingsResource struct { autorest.Response `json:"-"` // ManagementGroupDiagnosticSettings - Properties of a Management Group Diagnostic Settings Resource. *ManagementGroupDiagnosticSettings `json:"properties,omitempty"` // SystemData - READ-ONLY; The system metadata related to this resource. SystemData *SystemData `json:"systemData,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (mgdsr ManagementGroupDiagnosticSettingsResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ManagementGroupDiagnosticSettingsResource.
func (mgdsr *ManagementGroupDiagnosticSettingsResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ManagementGroupDiagnosticSettingsResource struct.
ManagementGroupDiagnosticSettingsResourceCollection represents a collection of management group diagnostic settings resources.
type ManagementGroupDiagnosticSettingsResourceCollection struct { autorest.Response `json:"-"` // Value - The collection of management group diagnostic settings resources. Value *[]ManagementGroupDiagnosticSettingsResource `json:"value,omitempty"` }
ManagementGroupLogSettings part of Management Group diagnostic setting. Specifies the settings for a particular log.
type ManagementGroupLogSettings struct { // Category - Name of a Management Group Diagnostic Log category for a resource type this setting is applied to. Category *string `json:"category,omitempty"` // CategoryGroup - Name of a Management Group Diagnostic Log category group for a resource type this setting is applied to. CategoryGroup *string `json:"categoryGroup,omitempty"` // Enabled - a value indicating whether this log is enabled. Enabled *bool `json:"enabled,omitempty"` }
MetricSettings part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric.
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"` }
MetricStatisticType enumerates the values for metric statistic type.
type MetricStatisticType string
const ( // Average ... Average MetricStatisticType = "Average" // Count ... Count MetricStatisticType = "Count" // Max ... Max MetricStatisticType = "Max" // Min ... Min MetricStatisticType = "Min" // Sum ... Sum MetricStatisticType = "Sum" )
func PossibleMetricStatisticTypeValues() []MetricStatisticType
PossibleMetricStatisticTypeValues returns an array of possible values for the MetricStatisticType const type.
MetricTrigger the trigger that results in a scaling action.
type MetricTrigger struct { // MetricName - the name of the metric that defines what the rule monitors. MetricName *string `json:"metricName,omitempty"` // MetricNamespace - the namespace of the metric that defines what the rule monitors. MetricNamespace *string `json:"metricNamespace,omitempty"` // MetricResourceURI - the resource identifier of the resource the rule monitors. MetricResourceURI *string `json:"metricResourceUri,omitempty"` // MetricResourceLocation - the location of the resource the rule monitors. MetricResourceLocation *string `json:"metricResourceLocation,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: 'Average', 'Min', 'Max', 'Sum', 'Count' Statistic MetricStatisticType `json:"statistic,omitempty"` // TimeWindow - the range of time in which instance data is collected. This value must be greater than the delay in metric collection, which can vary from resource-to-resource. Must be between 12 hours and 5 minutes. TimeWindow *string `json:"timeWindow,omitempty"` // TimeAggregation - time aggregation type. How the data that is collected should be combined over time. The default value is Average. Possible values include: 'TimeAggregationTypeAverage', 'TimeAggregationTypeMinimum', 'TimeAggregationTypeMaximum', 'TimeAggregationTypeTotal', 'TimeAggregationTypeCount', 'TimeAggregationTypeLast' TimeAggregation TimeAggregationType `json:"timeAggregation,omitempty"` // Operator - the operator that is used to compare the metric data and the threshold. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual' Operator ComparisonOperationType `json:"operator,omitempty"` // Threshold - the threshold of the metric that triggers the scale action. Threshold *float64 `json:"threshold,omitempty"` // Dimensions - List of dimension conditions. For example: [{"DimensionName":"AppName","Operator":"Equals","Values":["App1"]},{"DimensionName":"Deployment","Operator":"Equals","Values":["default"]}]. Dimensions *[]ScaleRuleMetricDimension `json:"dimensions,omitempty"` // DividePerInstance - a value indicating whether metric should divide per instance. DividePerInstance *bool `json:"dividePerInstance,omitempty"` }
NotificationRequestBody the request body which contain contact detail metadata
type NotificationRequestBody struct { // AlertType - The name of the supported alert type. AlertType *string `json:"alertType,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"` // EventHubReceivers - The list of event hub receivers that are part of this action group. EventHubReceivers *[]EventHubReceiver `json:"eventHubReceivers,omitempty"` }
OperationStatus the status of operation.
type OperationStatus struct { autorest.Response `json:"-"` // ID - The operation Id. ID *string `json:"id,omitempty"` // Name - The operation name. Name *string `json:"name,omitempty"` // StartTime - Start time of the job in standard ISO8601 format. StartTime *date.Time `json:"startTime,omitempty"` // EndTime - End time of the job in standard ISO8601 format. EndTime *date.Time `json:"endTime,omitempty"` // Status - The status of the operation. Status *string `json:"status,omitempty"` // Error - The error detail of the operation if any. Error *ErrorDetail `json:"error,omitempty"` }
PredictiveAutoscalePolicy the parameters for enabling predictive autoscale.
type PredictiveAutoscalePolicy struct { // ScaleMode - the predictive autoscale mode. Possible values include: 'Disabled', 'ForecastOnly', 'Enabled' ScaleMode PredictiveAutoscalePolicyScaleMode `json:"scaleMode,omitempty"` // ScaleLookAheadTime - the amount of time to specify by which instances are launched in advance. It must be between 1 minute and 60 minutes in ISO 8601 format. ScaleLookAheadTime *string `json:"scaleLookAheadTime,omitempty"` }
PredictiveAutoscalePolicyScaleMode enumerates the values for predictive autoscale policy scale mode.
type PredictiveAutoscalePolicyScaleMode string
const ( // Disabled ... Disabled PredictiveAutoscalePolicyScaleMode = "Disabled" // Enabled ... Enabled PredictiveAutoscalePolicyScaleMode = "Enabled" // ForecastOnly ... ForecastOnly PredictiveAutoscalePolicyScaleMode = "ForecastOnly" )
func PossiblePredictiveAutoscalePolicyScaleModeValues() []PredictiveAutoscalePolicyScaleMode
PossiblePredictiveAutoscalePolicyScaleModeValues returns an array of possible values for the PredictiveAutoscalePolicyScaleMode const type.
PredictiveMetricClient is the monitor Management Client
type PredictiveMetricClient struct { BaseClient }
func NewPredictiveMetricClient(subscriptionID string) PredictiveMetricClient
NewPredictiveMetricClient creates an instance of the PredictiveMetricClient client.
func NewPredictiveMetricClientWithBaseURI(baseURI string, subscriptionID string) PredictiveMetricClient
NewPredictiveMetricClientWithBaseURI creates an instance of the PredictiveMetricClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client PredictiveMetricClient) Get(ctx context.Context, resourceGroupName string, autoscaleSettingName string, timespan string, interval string, metricNamespace string, metricName string, aggregation string) (result PredictiveResponse, err error)
Get get predictive autoscale metric future data Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. autoscaleSettingName - the autoscale setting name. 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. metricNamespace - metric namespace to query metric definitions for. metricName - the names of the metrics (comma separated) to retrieve. Special case: If a metricname itself has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be **'Metric%2Name1'** aggregation - the list of aggregation types (comma separated) to retrieve.
func (client PredictiveMetricClient) GetPreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string, timespan string, interval string, metricNamespace string, metricName string, aggregation string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client PredictiveMetricClient) GetResponder(resp *http.Response) (result PredictiveResponse, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client PredictiveMetricClient) 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.
PredictiveResponse the response to a metrics query.
type PredictiveResponse struct { autorest.Response `json:"-"` // 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"` // MetricName - The metrics being queried MetricName *string `json:"metricName,omitempty"` // TargetResourceID - resource of the predictive metric. TargetResourceID *string `json:"targetResourceId,omitempty"` // Data - the value of the collection. Data *[]PredictiveValue `json:"data,omitempty"` }
PredictiveValue represents a predictive metric value in the given bucket.
type PredictiveValue struct { // TimeStamp - the timestamp for the metric value in ISO 8601 format. TimeStamp *date.Time `json:"timeStamp,omitempty"` // Value - Predictive value in this time bucket. Value *float64 `json:"value,omitempty"` }
PrivateEndpoint the Private Endpoint resource.
type PrivateEndpoint struct { // ID - READ-ONLY; The ARM identifier for Private Endpoint ID *string `json:"id,omitempty"` }
func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateEndpoint.
PrivateEndpointConnection the Private Endpoint Connection resource.
type PrivateEndpointConnection struct { autorest.Response `json:"-"` // PrivateEndpointConnectionProperties - Resource properties. *PrivateEndpointConnectionProperties `json:"properties,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateEndpointConnection.
func (pec *PrivateEndpointConnection) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnection struct.
PrivateEndpointConnectionListResult list of private endpoint connection associated with the specified storage account
type PrivateEndpointConnectionListResult struct { autorest.Response `json:"-"` // Value - Array of private endpoint connections Value *[]PrivateEndpointConnection `json:"value,omitempty"` }
PrivateEndpointConnectionProperties properties of the PrivateEndpointConnectProperties.
type PrivateEndpointConnectionProperties struct { // PrivateEndpoint - The resource of private end point. PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` // PrivateLinkServiceConnectionState - A collection of information about the state of the connection between service consumer and provider. PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` // ProvisioningState - The provisioning state of the private endpoint connection resource. Possible values include: 'Succeeded', 'Creating', 'Deleting', 'Failed' ProvisioningState PrivateEndpointConnectionProvisioningState `json:"provisioningState,omitempty"` }
PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection provisioning state.
type PrivateEndpointConnectionProvisioningState string
const ( // Creating ... Creating PrivateEndpointConnectionProvisioningState = "Creating" // Deleting ... Deleting PrivateEndpointConnectionProvisioningState = "Deleting" // Failed ... Failed PrivateEndpointConnectionProvisioningState = "Failed" // Succeeded ... Succeeded PrivateEndpointConnectionProvisioningState = "Succeeded" )
func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState
PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type.
PrivateEndpointConnectionsClient is the monitor Management Client
type PrivateEndpointConnectionsClient struct { BaseClient }
func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient
NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client.
func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient
NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection) (result PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
CreateOrUpdate approve or reject a private endpoint connection with a given name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. scopeName - the name of the Azure Monitor PrivateLinkScope resource. privateEndpointConnectionName - the name of the private endpoint connection.
func (client PrivateEndpointConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client PrivateEndpointConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result PrivateEndpointConnection, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client PrivateEndpointConnectionsClient) CreateOrUpdateSender(req *http.Request) (future PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (result PrivateEndpointConnectionsDeleteFuture, err error)
Delete deletes a private endpoint connection with a given name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. scopeName - the name of the Azure Monitor PrivateLinkScope resource. privateEndpointConnectionName - the name of the private endpoint connection.
func (client PrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client PrivateEndpointConnectionsClient) 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 (client PrivateEndpointConnectionsClient) DeleteSender(req *http.Request) (future PrivateEndpointConnectionsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (result PrivateEndpointConnection, err error)
Get gets a private endpoint connection. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. scopeName - the name of the Azure Monitor PrivateLinkScope resource. privateEndpointConnectionName - the name of the private endpoint connection.
func (client PrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client PrivateEndpointConnectionsClient) 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 (client PrivateEndpointConnectionsClient) ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result PrivateEndpointConnectionListResult, err error)
ListByPrivateLinkScope gets all private endpoint connections on a private link scope. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. scopeName - the name of the Azure Monitor PrivateLinkScope resource.
func (client PrivateEndpointConnectionsClient) ListByPrivateLinkScopePreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
ListByPrivateLinkScopePreparer prepares the ListByPrivateLinkScope request.
func (client PrivateEndpointConnectionsClient) ListByPrivateLinkScopeResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error)
ListByPrivateLinkScopeResponder handles the response to the ListByPrivateLinkScope request. The method always closes the http.Response Body.
func (client PrivateEndpointConnectionsClient) ListByPrivateLinkScopeSender(req *http.Request) (*http.Response, error)
ListByPrivateLinkScopeSender sends the ListByPrivateLinkScope request. The method will close the http.Response Body if it receives an error.
PrivateEndpointConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type PrivateEndpointConnectionsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(PrivateEndpointConnectionsClient) (PrivateEndpointConnection, error) }
func (future *PrivateEndpointConnectionsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
PrivateEndpointConnectionsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type PrivateEndpointConnectionsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(PrivateEndpointConnectionsClient) (autorest.Response, error) }
func (future *PrivateEndpointConnectionsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status.
type PrivateEndpointServiceConnectionStatus string
const ( // Approved ... Approved PrivateEndpointServiceConnectionStatus = "Approved" // Pending ... Pending PrivateEndpointServiceConnectionStatus = "Pending" // Rejected ... Rejected PrivateEndpointServiceConnectionStatus = "Rejected" )
func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus
PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type.
PrivateLinkResource a private link resource
type PrivateLinkResource struct { autorest.Response `json:"-"` // PrivateLinkResourceProperties - Resource properties. *PrivateLinkResourceProperties `json:"properties,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (plr PrivateLinkResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateLinkResource.
func (plr *PrivateLinkResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for PrivateLinkResource struct.
PrivateLinkResourceListResult a list of private link resources
type PrivateLinkResourceListResult struct { autorest.Response `json:"-"` // Value - Array of private link resources Value *[]PrivateLinkResource `json:"value,omitempty"` }
PrivateLinkResourceProperties properties of a private link resource.
type PrivateLinkResourceProperties struct { // GroupID - READ-ONLY; The private link resource group id. GroupID *string `json:"groupId,omitempty"` // RequiredMembers - READ-ONLY; The private link resource required member names. RequiredMembers *[]string `json:"requiredMembers,omitempty"` // RequiredZoneNames - The private link resource Private link DNS zone name. RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"` }
func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateLinkResourceProperties.
PrivateLinkResourcesClient is the monitor Management Client
type PrivateLinkResourcesClient struct { BaseClient }
func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient
NewPrivateLinkResourcesClient creates an instance of the PrivateLinkResourcesClient client.
func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient
NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, scopeName string, groupName string) (result PrivateLinkResource, err error)
Get gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. scopeName - the name of the Azure Monitor PrivateLinkScope resource. groupName - the name of the private link resource.
func (client PrivateLinkResourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, scopeName string, groupName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client PrivateLinkResourcesClient) GetResponder(resp *http.Response) (result PrivateLinkResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client PrivateLinkResourcesClient) 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 (client PrivateLinkResourcesClient) ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result PrivateLinkResourceListResult, err error)
ListByPrivateLinkScope gets the private link resources that need to be created for a Azure Monitor PrivateLinkScope. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. scopeName - the name of the Azure Monitor PrivateLinkScope resource.
func (client PrivateLinkResourcesClient) ListByPrivateLinkScopePreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
ListByPrivateLinkScopePreparer prepares the ListByPrivateLinkScope request.
func (client PrivateLinkResourcesClient) ListByPrivateLinkScopeResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error)
ListByPrivateLinkScopeResponder handles the response to the ListByPrivateLinkScope request. The method always closes the http.Response Body.
func (client PrivateLinkResourcesClient) ListByPrivateLinkScopeSender(req *http.Request) (*http.Response, error)
ListByPrivateLinkScopeSender sends the ListByPrivateLinkScope request. The method will close the http.Response Body if it receives an error.
PrivateLinkScopeOperationStatusClient is the monitor Management Client
type PrivateLinkScopeOperationStatusClient struct { BaseClient }
func NewPrivateLinkScopeOperationStatusClient(subscriptionID string) PrivateLinkScopeOperationStatusClient
NewPrivateLinkScopeOperationStatusClient creates an instance of the PrivateLinkScopeOperationStatusClient client.
func NewPrivateLinkScopeOperationStatusClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkScopeOperationStatusClient
NewPrivateLinkScopeOperationStatusClientWithBaseURI creates an instance of the PrivateLinkScopeOperationStatusClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client PrivateLinkScopeOperationStatusClient) Get(ctx context.Context, asyncOperationID string, resourceGroupName string) (result OperationStatus, err error)
Get get the status of an azure asynchronous operation associated with a private link scope operation. Parameters: asyncOperationID - the operation Id. resourceGroupName - the name of the resource group. The name is case insensitive.
func (client PrivateLinkScopeOperationStatusClient) GetPreparer(ctx context.Context, asyncOperationID string, resourceGroupName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client PrivateLinkScopeOperationStatusClient) GetResponder(resp *http.Response) (result OperationStatus, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client PrivateLinkScopeOperationStatusClient) 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.
PrivateLinkScopedResourcesClient is the monitor Management Client
type PrivateLinkScopedResourcesClient struct { BaseClient }
func NewPrivateLinkScopedResourcesClient(subscriptionID string) PrivateLinkScopedResourcesClient
NewPrivateLinkScopedResourcesClient creates an instance of the PrivateLinkScopedResourcesClient client.
func NewPrivateLinkScopedResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkScopedResourcesClient
NewPrivateLinkScopedResourcesClientWithBaseURI creates an instance of the PrivateLinkScopedResourcesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client PrivateLinkScopedResourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, name string, parameters ScopedResource) (result PrivateLinkScopedResourcesCreateOrUpdateFuture, err error)
CreateOrUpdate approve or reject a private endpoint connection with a given name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. scopeName - the name of the Azure Monitor PrivateLinkScope resource. name - the name of the scoped resource object.
func (client PrivateLinkScopedResourcesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, scopeName string, name string, parameters ScopedResource) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client PrivateLinkScopedResourcesClient) CreateOrUpdateResponder(resp *http.Response) (result ScopedResource, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client PrivateLinkScopedResourcesClient) CreateOrUpdateSender(req *http.Request) (future PrivateLinkScopedResourcesCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (client PrivateLinkScopedResourcesClient) Delete(ctx context.Context, resourceGroupName string, scopeName string, name string) (result PrivateLinkScopedResourcesDeleteFuture, err error)
Delete deletes a private endpoint connection with a given name. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. scopeName - the name of the Azure Monitor PrivateLinkScope resource. name - the name of the scoped resource object.
func (client PrivateLinkScopedResourcesClient) DeletePreparer(ctx context.Context, resourceGroupName string, scopeName string, name string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client PrivateLinkScopedResourcesClient) 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 (client PrivateLinkScopedResourcesClient) DeleteSender(req *http.Request) (future PrivateLinkScopedResourcesDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client PrivateLinkScopedResourcesClient) Get(ctx context.Context, resourceGroupName string, scopeName string, name string) (result ScopedResource, err error)
Get gets a scoped resource in a private link scope. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. scopeName - the name of the Azure Monitor PrivateLinkScope resource. name - the name of the scoped resource object.
func (client PrivateLinkScopedResourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, scopeName string, name string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client PrivateLinkScopedResourcesClient) GetResponder(resp *http.Response) (result ScopedResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client PrivateLinkScopedResourcesClient) 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 (client PrivateLinkScopedResourcesClient) ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result ScopedResourceListResultPage, err error)
ListByPrivateLinkScope gets all private endpoint connections on a private link scope. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. scopeName - the name of the Azure Monitor PrivateLinkScope resource.
func (client PrivateLinkScopedResourcesClient) ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result ScopedResourceListResultIterator, err error)
ListByPrivateLinkScopeComplete enumerates all values, automatically crossing page boundaries as required.
func (client PrivateLinkScopedResourcesClient) ListByPrivateLinkScopePreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
ListByPrivateLinkScopePreparer prepares the ListByPrivateLinkScope request.
func (client PrivateLinkScopedResourcesClient) ListByPrivateLinkScopeResponder(resp *http.Response) (result ScopedResourceListResult, err error)
ListByPrivateLinkScopeResponder handles the response to the ListByPrivateLinkScope request. The method always closes the http.Response Body.
func (client PrivateLinkScopedResourcesClient) ListByPrivateLinkScopeSender(req *http.Request) (*http.Response, error)
ListByPrivateLinkScopeSender sends the ListByPrivateLinkScope request. The method will close the http.Response Body if it receives an error.
PrivateLinkScopedResourcesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type PrivateLinkScopedResourcesCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(PrivateLinkScopedResourcesClient) (ScopedResource, error) }
func (future *PrivateLinkScopedResourcesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
PrivateLinkScopedResourcesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type PrivateLinkScopedResourcesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(PrivateLinkScopedResourcesClient) (autorest.Response, error) }
func (future *PrivateLinkScopedResourcesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
PrivateLinkScopesClient is the monitor Management Client
type PrivateLinkScopesClient struct { BaseClient }
func NewPrivateLinkScopesClient(subscriptionID string) PrivateLinkScopesClient
NewPrivateLinkScopesClient creates an instance of the PrivateLinkScopesClient client.
func NewPrivateLinkScopesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkScopesClient
NewPrivateLinkScopesClientWithBaseURI creates an instance of the PrivateLinkScopesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client PrivateLinkScopesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, azureMonitorPrivateLinkScopePayload AzureMonitorPrivateLinkScope) (result AzureMonitorPrivateLinkScope, err error)
CreateOrUpdate creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. scopeName - the name of the Azure Monitor PrivateLinkScope resource. azureMonitorPrivateLinkScopePayload - properties that need to be specified to create or update a Azure Monitor PrivateLinkScope.
func (client PrivateLinkScopesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, scopeName string, azureMonitorPrivateLinkScopePayload AzureMonitorPrivateLinkScope) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client PrivateLinkScopesClient) CreateOrUpdateResponder(resp *http.Response) (result AzureMonitorPrivateLinkScope, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client PrivateLinkScopesClient) 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 (client PrivateLinkScopesClient) Delete(ctx context.Context, resourceGroupName string, scopeName string) (result PrivateLinkScopesDeleteFuture, err error)
Delete deletes a Azure Monitor PrivateLinkScope. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. scopeName - the name of the Azure Monitor PrivateLinkScope resource.
func (client PrivateLinkScopesClient) DeletePreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client PrivateLinkScopesClient) 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 (client PrivateLinkScopesClient) DeleteSender(req *http.Request) (future PrivateLinkScopesDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (client PrivateLinkScopesClient) Get(ctx context.Context, resourceGroupName string, scopeName string) (result AzureMonitorPrivateLinkScope, err error)
Get returns a Azure Monitor PrivateLinkScope. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. scopeName - the name of the Azure Monitor PrivateLinkScope resource.
func (client PrivateLinkScopesClient) GetPreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client PrivateLinkScopesClient) GetResponder(resp *http.Response) (result AzureMonitorPrivateLinkScope, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client PrivateLinkScopesClient) 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 (client PrivateLinkScopesClient) List(ctx context.Context) (result AzureMonitorPrivateLinkScopeListResultPage, err error)
List gets a list of all Azure Monitor PrivateLinkScopes within a subscription.
func (client PrivateLinkScopesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AzureMonitorPrivateLinkScopeListResultPage, err error)
ListByResourceGroup gets a list of Azure Monitor PrivateLinkScopes within a resource group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.
func (client PrivateLinkScopesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AzureMonitorPrivateLinkScopeListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (client PrivateLinkScopesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (client PrivateLinkScopesClient) ListByResourceGroupResponder(resp *http.Response) (result AzureMonitorPrivateLinkScopeListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (client PrivateLinkScopesClient) 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 (client PrivateLinkScopesClient) ListComplete(ctx context.Context) (result AzureMonitorPrivateLinkScopeListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (client PrivateLinkScopesClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
func (client PrivateLinkScopesClient) ListResponder(resp *http.Response) (result AzureMonitorPrivateLinkScopeListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client PrivateLinkScopesClient) 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 (client PrivateLinkScopesClient) UpdateTags(ctx context.Context, resourceGroupName string, scopeName string, privateLinkScopeTags TagsResource) (result AzureMonitorPrivateLinkScope, err error)
UpdateTags updates an existing PrivateLinkScope's tags. To update other fields use the CreateOrUpdate method. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. scopeName - the name of the Azure Monitor PrivateLinkScope resource. privateLinkScopeTags - updated tag information to set into the PrivateLinkScope instance.
func (client PrivateLinkScopesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, scopeName string, privateLinkScopeTags TagsResource) (*http.Request, error)
UpdateTagsPreparer prepares the UpdateTags request.
func (client PrivateLinkScopesClient) UpdateTagsResponder(resp *http.Response) (result AzureMonitorPrivateLinkScope, err error)
UpdateTagsResponder handles the response to the UpdateTags request. The method always closes the http.Response Body.
func (client PrivateLinkScopesClient) UpdateTagsSender(req *http.Request) (*http.Response, error)
UpdateTagsSender sends the UpdateTags request. The method will close the http.Response Body if it receives an error.
PrivateLinkScopesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
type PrivateLinkScopesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(PrivateLinkScopesClient) (autorest.Response, error) }
func (future *PrivateLinkScopesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
PrivateLinkServiceConnectionState a collection of information about the state of the connection between service consumer and provider.
type PrivateLinkServiceConnectionState struct { // Status - Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service. Possible values include: 'Pending', 'Approved', 'Rejected' Status PrivateEndpointServiceConnectionStatus `json:"status,omitempty"` // Description - The reason for approval/rejection of the connection. Description *string `json:"description,omitempty"` // ActionsRequired - A message indicating if changes on the service provider require any updates on the consumer. ActionsRequired *string `json:"actionsRequired,omitempty"` }
ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
type ProxyResource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (pr ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProxyResource.
ReceiverStatus enumerates the values for receiver status.
type ReceiverStatus string
const ( // ReceiverStatusDisabled ... ReceiverStatusDisabled ReceiverStatus = "Disabled" // ReceiverStatusEnabled ... ReceiverStatusEnabled ReceiverStatus = "Enabled" // ReceiverStatusNotSpecified ... ReceiverStatusNotSpecified ReceiverStatus = "NotSpecified" )
func PossibleReceiverStatusValues() []ReceiverStatus
PossibleReceiverStatusValues returns an array of possible values for the ReceiverStatus const type.
Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate element is used.
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: 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year' Frequency RecurrenceFrequency `json:"frequency,omitempty"` // Schedule - the scheduling constraints for when the profile begins. Schedule *RecurrentSchedule `json:"schedule,omitempty"` }
RecurrenceFrequency enumerates the values for recurrence frequency.
type RecurrenceFrequency string
const ( // Day ... Day RecurrenceFrequency = "Day" // Hour ... Hour RecurrenceFrequency = "Hour" // Minute ... Minute RecurrenceFrequency = "Minute" // Month ... Month RecurrenceFrequency = "Month" // None ... None RecurrenceFrequency = "None" // Second ... Second RecurrenceFrequency = "Second" // Week ... Week RecurrenceFrequency = "Week" // Year ... Year RecurrenceFrequency = "Year" )
func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency
PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type.
RecurrentSchedule the scheduling constraints for when the profile begins.
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"` }
Resource common fields that are returned in the response for all Azure Resource Manager resources
type Resource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (r Resource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for Resource.
RetentionPolicy specifies the retention policy for the log.
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"` }
ScaleAction the parameters for the scaling action.
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', 'ServiceAllowedNextValue' 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"` }
ScaleCapacity the number of instances that can be used during this profile.
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"` }
ScaleDirection enumerates the values for scale direction.
type ScaleDirection string
const ( // ScaleDirectionDecrease ... ScaleDirectionDecrease ScaleDirection = "Decrease" // ScaleDirectionIncrease ... ScaleDirectionIncrease ScaleDirection = "Increase" // ScaleDirectionNone ... ScaleDirectionNone ScaleDirection = "None" )
func PossibleScaleDirectionValues() []ScaleDirection
PossibleScaleDirectionValues returns an array of possible values for the ScaleDirection const type.
ScaleRule a rule that provide the triggers and parameters for the scaling action.
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"` }
ScaleRuleMetricDimension specifies an auto scale rule metric dimension.
type ScaleRuleMetricDimension struct { // DimensionName - Name of the dimension. DimensionName *string `json:"DimensionName,omitempty"` // Operator - the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values. Possible values include: 'ScaleRuleMetricDimensionOperationTypeEquals', 'ScaleRuleMetricDimensionOperationTypeNotEquals' Operator ScaleRuleMetricDimensionOperationType `json:"Operator,omitempty"` // Values - list of dimension values. For example: ["App1","App2"]. Values *[]string `json:"Values,omitempty"` }
ScaleRuleMetricDimensionOperationType enumerates the values for scale rule metric dimension operation type.
type ScaleRuleMetricDimensionOperationType string
const ( // ScaleRuleMetricDimensionOperationTypeEquals ... ScaleRuleMetricDimensionOperationTypeEquals ScaleRuleMetricDimensionOperationType = "Equals" // ScaleRuleMetricDimensionOperationTypeNotEquals ... ScaleRuleMetricDimensionOperationTypeNotEquals ScaleRuleMetricDimensionOperationType = "NotEquals" )
func PossibleScaleRuleMetricDimensionOperationTypeValues() []ScaleRuleMetricDimensionOperationType
PossibleScaleRuleMetricDimensionOperationTypeValues returns an array of possible values for the ScaleRuleMetricDimensionOperationType const type.
ScaleType enumerates the values for scale type.
type ScaleType string
const ( // ChangeCount ... ChangeCount ScaleType = "ChangeCount" // ExactCount ... ExactCount ScaleType = "ExactCount" // PercentChangeCount ... PercentChangeCount ScaleType = "PercentChangeCount" // ServiceAllowedNextValue ... ServiceAllowedNextValue ScaleType = "ServiceAllowedNextValue" )
func PossibleScaleTypeValues() []ScaleType
PossibleScaleTypeValues returns an array of possible values for the ScaleType const type.
ScopedResource a private link scoped resource
type ScopedResource struct { autorest.Response `json:"-"` // ScopedResourceProperties - Resource properties. *ScopedResourceProperties `json:"properties,omitempty"` // SystemData - READ-ONLY; System data SystemData *SystemData `json:"systemData,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (sr ScopedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ScopedResource.
func (sr *ScopedResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ScopedResource struct.
ScopedResourceListResult a list of scoped resources in a private link scope.
type ScopedResourceListResult struct { autorest.Response `json:"-"` // Value - READ-ONLY; Array of results. Value *[]ScopedResource `json:"value,omitempty"` // NextLink - READ-ONLY; Link to retrieve next page of results. NextLink *string `json:"nextLink,omitempty"` }
func (srlr ScopedResourceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (srlr ScopedResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ScopedResourceListResult.
ScopedResourceListResultIterator provides access to a complete listing of ScopedResource values.
type ScopedResourceListResultIterator struct {
// contains filtered or unexported fields
}
func NewScopedResourceListResultIterator(page ScopedResourceListResultPage) ScopedResourceListResultIterator
Creates a new instance of the ScopedResourceListResultIterator type.
func (iter *ScopedResourceListResultIterator) 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 (iter *ScopedResourceListResultIterator) 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 (iter ScopedResourceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (iter ScopedResourceListResultIterator) Response() ScopedResourceListResult
Response returns the raw server response from the last page request.
func (iter ScopedResourceListResultIterator) Value() ScopedResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
ScopedResourceListResultPage contains a page of ScopedResource values.
type ScopedResourceListResultPage struct {
// contains filtered or unexported fields
}
func NewScopedResourceListResultPage(cur ScopedResourceListResult, getNextPage func(context.Context, ScopedResourceListResult) (ScopedResourceListResult, error)) ScopedResourceListResultPage
Creates a new instance of the ScopedResourceListResultPage type.
func (page *ScopedResourceListResultPage) 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 (page *ScopedResourceListResultPage) 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 (page ScopedResourceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (page ScopedResourceListResultPage) Response() ScopedResourceListResult
Response returns the raw server response from the last page request.
func (page ScopedResourceListResultPage) Values() []ScopedResource
Values returns the slice of values for the current page or nil if there are no values.
ScopedResourceProperties properties of a private link scoped resource.
type ScopedResourceProperties struct { // LinkedResourceID - The resource id of the scoped Azure monitor resource. LinkedResourceID *string `json:"linkedResourceId,omitempty"` // ProvisioningState - READ-ONLY; State of the private endpoint connection. ProvisioningState *string `json:"provisioningState,omitempty"` }
func (srp ScopedResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ScopedResourceProperties.
Settings the diagnostic settings.
type Settings 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"` // MarketplacePartnerID - The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs. MarketplacePartnerID *string `json:"marketplacePartnerId,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"` }
SettingsCategory the diagnostic settings Category.
type SettingsCategory struct { // CategoryType - The type of the diagnostic settings category. Possible values include: 'Metrics', 'Logs' CategoryType CategoryType `json:"categoryType,omitempty"` // CategoryGroups - the collection of what category groups are supported. CategoryGroups *[]string `json:"categoryGroups,omitempty"` }
SettingsCategoryClient is the monitor Management Client
type SettingsCategoryClient struct { BaseClient }
func NewSettingsCategoryClient(subscriptionID string) SettingsCategoryClient
NewSettingsCategoryClient creates an instance of the SettingsCategoryClient client.
func NewSettingsCategoryClientWithBaseURI(baseURI string, subscriptionID string) SettingsCategoryClient
NewSettingsCategoryClientWithBaseURI creates an instance of the SettingsCategoryClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client SettingsCategoryClient) Get(ctx context.Context, resourceURI string, name string) (result SettingsCategoryResource, 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 (client SettingsCategoryClient) GetPreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client SettingsCategoryClient) GetResponder(resp *http.Response) (result SettingsCategoryResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client SettingsCategoryClient) 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 (client SettingsCategoryClient) List(ctx context.Context, resourceURI string) (result SettingsCategoryResourceCollection, err error)
List lists the diagnostic settings categories for the specified resource. Parameters: resourceURI - the identifier of the resource.
func (client SettingsCategoryClient) ListPreparer(ctx context.Context, resourceURI string) (*http.Request, error)
ListPreparer prepares the List request.
func (client SettingsCategoryClient) ListResponder(resp *http.Response) (result SettingsCategoryResourceCollection, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client SettingsCategoryClient) 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.
SettingsCategoryResource the diagnostic settings category resource.
type SettingsCategoryResource struct { autorest.Response `json:"-"` // SettingsCategory - The properties of a Diagnostic Settings Category. *SettingsCategory `json:"properties,omitempty"` // SystemData - READ-ONLY; The system metadata related to this resource. SystemData *SystemData `json:"systemData,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (scr SettingsCategoryResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SettingsCategoryResource.
func (scr *SettingsCategoryResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SettingsCategoryResource struct.
SettingsCategoryResourceCollection represents a collection of diagnostic setting category resources.
type SettingsCategoryResourceCollection struct { autorest.Response `json:"-"` // Value - The collection of diagnostic settings category resources. Value *[]SettingsCategoryResource `json:"value,omitempty"` }
SettingsClient is the monitor Management Client
type SettingsClient struct { BaseClient }
func NewSettingsClient(subscriptionID string) SettingsClient
NewSettingsClient creates an instance of the SettingsClient client.
func NewSettingsClientWithBaseURI(baseURI string, subscriptionID string) SettingsClient
NewSettingsClientWithBaseURI creates an instance of the SettingsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client SettingsClient) CreateOrUpdate(ctx context.Context, resourceURI string, parameters SettingsResource, name string) (result SettingsResource, 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 (client SettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceURI string, parameters SettingsResource, name string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client SettingsClient) CreateOrUpdateResponder(resp *http.Response) (result SettingsResource, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client SettingsClient) 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 (client SettingsClient) 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 (client SettingsClient) DeletePreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client SettingsClient) 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 (client SettingsClient) 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 (client SettingsClient) Get(ctx context.Context, resourceURI string, name string) (result SettingsResource, 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 (client SettingsClient) GetPreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client SettingsClient) GetResponder(resp *http.Response) (result SettingsResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client SettingsClient) 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 (client SettingsClient) List(ctx context.Context, resourceURI string) (result SettingsResourceCollection, err error)
List gets the active diagnostic settings list for the specified resource. Parameters: resourceURI - the identifier of the resource.
func (client SettingsClient) ListPreparer(ctx context.Context, resourceURI string) (*http.Request, error)
ListPreparer prepares the List request.
func (client SettingsClient) ListResponder(resp *http.Response) (result SettingsResourceCollection, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client SettingsClient) 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.
SettingsResource the diagnostic setting resource.
type SettingsResource struct { autorest.Response `json:"-"` // Settings - Properties of a Diagnostic Settings Resource. *Settings `json:"properties,omitempty"` // SystemData - READ-ONLY; The system metadata related to this resource. SystemData *SystemData `json:"systemData,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (sr SettingsResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SettingsResource.
func (sr *SettingsResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SettingsResource struct.
SettingsResourceCollection represents a collection of alert rule resources.
type SettingsResourceCollection struct { autorest.Response `json:"-"` // Value - The collection of diagnostic settings resources;. Value *[]SettingsResource `json:"value,omitempty"` }
SmsReceiver an SMS receiver.
type SmsReceiver struct { // Name - The name of the SMS receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // CountryCode - The country code of the SMS receiver. CountryCode *string `json:"countryCode,omitempty"` // PhoneNumber - The phone number of the SMS receiver. PhoneNumber *string `json:"phoneNumber,omitempty"` // Status - READ-ONLY; The status of the receiver. Possible values include: 'ReceiverStatusNotSpecified', 'ReceiverStatusEnabled', 'ReceiverStatusDisabled' Status ReceiverStatus `json:"status,omitempty"` }
func (sr SmsReceiver) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SmsReceiver.
SubscriptionDiagnosticSettings the subscription diagnostic settings.
type SubscriptionDiagnosticSettings 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"` // Logs - The list of logs settings. Logs *[]SubscriptionLogSettings `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"` // MarketplacePartnerID - The full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs. MarketplacePartnerID *string `json:"marketplacePartnerId,omitempty"` }
SubscriptionDiagnosticSettingsClient is the monitor Management Client
type SubscriptionDiagnosticSettingsClient struct { BaseClient }
func NewSubscriptionDiagnosticSettingsClient(subscriptionID string) SubscriptionDiagnosticSettingsClient
NewSubscriptionDiagnosticSettingsClient creates an instance of the SubscriptionDiagnosticSettingsClient client.
func NewSubscriptionDiagnosticSettingsClientWithBaseURI(baseURI string, subscriptionID string) SubscriptionDiagnosticSettingsClient
NewSubscriptionDiagnosticSettingsClientWithBaseURI creates an instance of the SubscriptionDiagnosticSettingsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (client SubscriptionDiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, parameters SubscriptionDiagnosticSettingsResource, name string) (result SubscriptionDiagnosticSettingsResource, err error)
CreateOrUpdate creates or updates subscription diagnostic settings for the specified resource. Parameters: parameters - parameters supplied to the operation. name - the name of the diagnostic setting.
func (client SubscriptionDiagnosticSettingsClient) CreateOrUpdatePreparer(ctx context.Context, parameters SubscriptionDiagnosticSettingsResource, name string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (client SubscriptionDiagnosticSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result SubscriptionDiagnosticSettingsResource, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (client SubscriptionDiagnosticSettingsClient) 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 (client SubscriptionDiagnosticSettingsClient) Delete(ctx context.Context, name string) (result autorest.Response, err error)
Delete deletes existing subscription diagnostic settings for the specified resource. Parameters: name - the name of the diagnostic setting.
func (client SubscriptionDiagnosticSettingsClient) DeletePreparer(ctx context.Context, name string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (client SubscriptionDiagnosticSettingsClient) 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 (client SubscriptionDiagnosticSettingsClient) 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 (client SubscriptionDiagnosticSettingsClient) Get(ctx context.Context, name string) (result SubscriptionDiagnosticSettingsResource, err error)
Get gets the active subscription diagnostic settings for the specified resource. Parameters: name - the name of the diagnostic setting.
func (client SubscriptionDiagnosticSettingsClient) GetPreparer(ctx context.Context, name string) (*http.Request, error)
GetPreparer prepares the Get request.
func (client SubscriptionDiagnosticSettingsClient) GetResponder(resp *http.Response) (result SubscriptionDiagnosticSettingsResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (client SubscriptionDiagnosticSettingsClient) 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 (client SubscriptionDiagnosticSettingsClient) List(ctx context.Context) (result SubscriptionDiagnosticSettingsResourceCollection, err error)
List gets the active subscription diagnostic settings list for the specified subscriptionId.
func (client SubscriptionDiagnosticSettingsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
func (client SubscriptionDiagnosticSettingsClient) ListResponder(resp *http.Response) (result SubscriptionDiagnosticSettingsResourceCollection, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (client SubscriptionDiagnosticSettingsClient) 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.
SubscriptionDiagnosticSettingsResource the subscription diagnostic setting resource.
type SubscriptionDiagnosticSettingsResource struct { autorest.Response `json:"-"` // SubscriptionDiagnosticSettings - Properties of a Subscription Diagnostic Settings Resource. *SubscriptionDiagnosticSettings `json:"properties,omitempty"` // SystemData - READ-ONLY; The system metadata related to this resource. SystemData *SystemData `json:"systemData,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (sdsr SubscriptionDiagnosticSettingsResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SubscriptionDiagnosticSettingsResource.
func (sdsr *SubscriptionDiagnosticSettingsResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SubscriptionDiagnosticSettingsResource struct.
SubscriptionDiagnosticSettingsResourceCollection represents a collection of subscription diagnostic settings resources.
type SubscriptionDiagnosticSettingsResourceCollection struct { autorest.Response `json:"-"` // Value - The collection of subscription diagnostic settings resources. Value *[]SubscriptionDiagnosticSettingsResource `json:"value,omitempty"` }
SubscriptionLogSettings part of Subscription diagnostic setting. Specifies the settings for a particular log.
type SubscriptionLogSettings struct { // Category - Name of a Subscription Diagnostic Log category for a resource type this setting is applied to. Category *string `json:"category,omitempty"` // CategoryGroup - Name of a Subscription Diagnostic Log category group for a resource type this setting is applied to. CategoryGroup *string `json:"categoryGroup,omitempty"` // Enabled - a value indicating whether this log is enabled. Enabled *bool `json:"enabled,omitempty"` }
SystemData metadata pertaining to creation and last modification of the resource.
type SystemData struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // CreatedByType - The type of identity that created the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' CreatedByType CreatedByType `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` }
TagsResource a container holding only the Tags for a resource, allowing the user to update the tags on a PrivateLinkScope instance.
type TagsResource struct { // Tags - Resource tags Tags map[string]*string `json:"tags"` }
func (tr TagsResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TagsResource.
TestNotificationDetailsResponse the details of the test notification results.
type TestNotificationDetailsResponse struct { autorest.Response `json:"-"` Context *Context `json:"context,omitempty"` // State - The overall state State *string `json:"state,omitempty"` // CompletedTime - The completed time CompletedTime *string `json:"completedTime,omitempty"` // CreatedTime - The created time CreatedTime *string `json:"createdTime,omitempty"` // ActionDetails - The list of action detail ActionDetails *[]ActionDetail `json:"actionDetails,omitempty"` }
TimeAggregationType enumerates the values for time aggregation type.
type TimeAggregationType string
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() []TimeAggregationType
PossibleTimeAggregationTypeValues returns an array of possible values for the TimeAggregationType const type.
TimeWindow a specific date-time for the profile.
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"` }
TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
type TrackedResource struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"` // Location - The geo-location where the resource lives Location *string `json:"location,omitempty"` // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` // Name - READ-ONLY; The name of the resource Name *string `json:"name,omitempty"` // Type - READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty"` }
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
VoiceReceiver a voice receiver.
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"` }
WebhookNotification webhook notification of an autoscale event.
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"` }
func (wn WebhookNotification) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WebhookNotification.
WebhookReceiver a webhook receiver.
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"` // UseCommonAlertSchema - Indicates whether to use common alert schema. UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"` // UseAadAuth - Indicates whether or not use AAD authentication. UseAadAuth *bool `json:"useAadAuth,omitempty"` // ObjectID - Indicates the webhook app object Id for aad auth. ObjectID *string `json:"objectId,omitempty"` // IdentifierURI - Indicates the identifier uri for aad auth. IdentifierURI *string `json:"identifierUri,omitempty"` // TenantID - Indicates the tenant id for aad auth. TenantID *string `json:"tenantId,omitempty"` }
Name | Synopsis |
---|---|
.. | |
diagnosticsapi | Deprecated: Please note, this package has been deprecated. |