Documentation ¶
Overview ¶
Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.
Package diagnostics implements the Azure ARM Diagnostics service API version .
Monitor Management Client
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type AccessMode
- type AccessModeSettings
- type AccessModeSettingsExclusion
- type ActionDetail
- type ActionGroup
- type ActionGroupList
- type ActionGroupPatch
- type ActionGroupPatchBody
- type ActionGroupResource
- type ActionGroupsClient
- func (client ActionGroupsClient) CreateNotificationsAtActionGroupResourceLevel(ctx context.Context, resourceGroupName string, actionGroupName string, ...) (result ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture, ...)
- func (client ActionGroupsClient) CreateNotificationsAtActionGroupResourceLevelPreparer(ctx context.Context, resourceGroupName string, actionGroupName string, ...) (*http.Request, error)
- func (client ActionGroupsClient) CreateNotificationsAtActionGroupResourceLevelResponder(resp *http.Response) (result TestNotificationDetailsResponse, err error)
- func (client ActionGroupsClient) CreateNotificationsAtActionGroupResourceLevelSender(req *http.Request) (future ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture, ...)
- func (client ActionGroupsClient) CreateNotificationsAtResourceGroupLevel(ctx context.Context, resourceGroupName string, ...) (result ActionGroupsCreateNotificationsAtResourceGroupLevelFuture, err error)
- func (client ActionGroupsClient) CreateNotificationsAtResourceGroupLevelPreparer(ctx context.Context, resourceGroupName string, ...) (*http.Request, error)
- func (client ActionGroupsClient) CreateNotificationsAtResourceGroupLevelResponder(resp *http.Response) (result TestNotificationDetailsResponse, err error)
- func (client ActionGroupsClient) CreateNotificationsAtResourceGroupLevelSender(req *http.Request) (future ActionGroupsCreateNotificationsAtResourceGroupLevelFuture, err error)
- func (client ActionGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, actionGroupName string, ...) (result ActionGroupResource, err error)
- func (client ActionGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, actionGroupName string, ...) (*http.Request, error)
- func (client ActionGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ActionGroupResource, err error)
- func (client ActionGroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ActionGroupsClient) Delete(ctx context.Context, resourceGroupName string, actionGroupName string) (result autorest.Response, err error)
- func (client ActionGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, actionGroupName string) (*http.Request, error)
- func (client ActionGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ActionGroupsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ActionGroupsClient) EnableReceiver(ctx context.Context, resourceGroupName string, actionGroupName string, ...) (result autorest.Response, err error)
- func (client ActionGroupsClient) EnableReceiverPreparer(ctx context.Context, resourceGroupName string, actionGroupName string, ...) (*http.Request, error)
- func (client ActionGroupsClient) EnableReceiverResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ActionGroupsClient) EnableReceiverSender(req *http.Request) (*http.Response, error)
- func (client ActionGroupsClient) Get(ctx context.Context, resourceGroupName string, actionGroupName string) (result ActionGroupResource, err error)
- func (client ActionGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, actionGroupName string) (*http.Request, error)
- func (client ActionGroupsClient) GetResponder(resp *http.Response) (result ActionGroupResource, err error)
- func (client ActionGroupsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ActionGroupsClient) GetTestNotifications(ctx context.Context, notificationID string) (result TestNotificationDetailsResponse, err error)
- func (client ActionGroupsClient) GetTestNotificationsAtActionGroupResourceLevel(ctx context.Context, resourceGroupName string, actionGroupName string, ...) (result TestNotificationDetailsResponse, err error)
- func (client ActionGroupsClient) GetTestNotificationsAtActionGroupResourceLevelPreparer(ctx context.Context, resourceGroupName string, actionGroupName string, ...) (*http.Request, error)
- func (client ActionGroupsClient) GetTestNotificationsAtActionGroupResourceLevelResponder(resp *http.Response) (result TestNotificationDetailsResponse, err error)
- func (client ActionGroupsClient) GetTestNotificationsAtActionGroupResourceLevelSender(req *http.Request) (*http.Response, error)
- func (client ActionGroupsClient) GetTestNotificationsAtResourceGroupLevel(ctx context.Context, resourceGroupName string, notificationID string) (result TestNotificationDetailsResponse, err error)
- func (client ActionGroupsClient) GetTestNotificationsAtResourceGroupLevelPreparer(ctx context.Context, resourceGroupName string, notificationID string) (*http.Request, error)
- func (client ActionGroupsClient) GetTestNotificationsAtResourceGroupLevelResponder(resp *http.Response) (result TestNotificationDetailsResponse, err error)
- func (client ActionGroupsClient) GetTestNotificationsAtResourceGroupLevelSender(req *http.Request) (*http.Response, error)
- func (client ActionGroupsClient) GetTestNotificationsPreparer(ctx context.Context, notificationID string) (*http.Request, error)
- func (client ActionGroupsClient) GetTestNotificationsResponder(resp *http.Response) (result TestNotificationDetailsResponse, err error)
- func (client ActionGroupsClient) GetTestNotificationsSender(req *http.Request) (*http.Response, error)
- func (client ActionGroupsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ActionGroupList, err error)
- func (client ActionGroupsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client ActionGroupsClient) ListByResourceGroupResponder(resp *http.Response) (result ActionGroupList, err error)
- func (client ActionGroupsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client ActionGroupsClient) ListBySubscriptionID(ctx context.Context) (result ActionGroupList, err error)
- func (client ActionGroupsClient) ListBySubscriptionIDPreparer(ctx context.Context) (*http.Request, error)
- func (client ActionGroupsClient) ListBySubscriptionIDResponder(resp *http.Response) (result ActionGroupList, err error)
- func (client ActionGroupsClient) ListBySubscriptionIDSender(req *http.Request) (*http.Response, error)
- func (client ActionGroupsClient) PostTestNotifications(ctx context.Context, notificationRequest NotificationRequestBody) (result ActionGroupsPostTestNotificationsFuture, err error)
- func (client ActionGroupsClient) PostTestNotificationsPreparer(ctx context.Context, notificationRequest NotificationRequestBody) (*http.Request, error)
- func (client ActionGroupsClient) PostTestNotificationsResponder(resp *http.Response) (result TestNotificationDetailsResponse, err error)
- func (client ActionGroupsClient) PostTestNotificationsSender(req *http.Request) (future ActionGroupsPostTestNotificationsFuture, err error)
- func (client ActionGroupsClient) Update(ctx context.Context, resourceGroupName string, actionGroupName string, ...) (result ActionGroupResource, err error)
- func (client ActionGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, actionGroupName string, ...) (*http.Request, error)
- func (client ActionGroupsClient) UpdateResponder(resp *http.Response) (result ActionGroupResource, err error)
- func (client ActionGroupsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture
- type ActionGroupsCreateNotificationsAtResourceGroupLevelFuture
- type ActionGroupsPostTestNotificationsFuture
- type ArmRoleReceiver
- type AutomationRunbookReceiver
- type AutoscaleErrorResponse
- type AutoscaleErrorResponseError
- type AutoscaleNotification
- type AutoscaleProfile
- type AutoscaleSetting
- type AutoscaleSettingResource
- type AutoscaleSettingResourceCollection
- type AutoscaleSettingResourceCollectionIterator
- func (iter *AutoscaleSettingResourceCollectionIterator) Next() error
- func (iter *AutoscaleSettingResourceCollectionIterator) NextWithContext(ctx context.Context) (err error)
- func (iter AutoscaleSettingResourceCollectionIterator) NotDone() bool
- func (iter AutoscaleSettingResourceCollectionIterator) Response() AutoscaleSettingResourceCollection
- func (iter AutoscaleSettingResourceCollectionIterator) Value() AutoscaleSettingResource
- type AutoscaleSettingResourceCollectionPage
- func (page *AutoscaleSettingResourceCollectionPage) Next() error
- func (page *AutoscaleSettingResourceCollectionPage) NextWithContext(ctx context.Context) (err error)
- func (page AutoscaleSettingResourceCollectionPage) NotDone() bool
- func (page AutoscaleSettingResourceCollectionPage) Response() AutoscaleSettingResourceCollection
- func (page AutoscaleSettingResourceCollectionPage) Values() []AutoscaleSettingResource
- type AutoscaleSettingResourcePatch
- type AutoscaleSettingsClient
- func (client AutoscaleSettingsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, autoscaleSettingName string, ...) (result AutoscaleSettingResource, err error)
- func (client AutoscaleSettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string, ...) (*http.Request, error)
- func (client AutoscaleSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result AutoscaleSettingResource, err error)
- func (client AutoscaleSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client AutoscaleSettingsClient) Delete(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (result autorest.Response, err error)
- func (client AutoscaleSettingsClient) DeletePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (*http.Request, error)
- func (client AutoscaleSettingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client AutoscaleSettingsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client AutoscaleSettingsClient) Get(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (result AutoscaleSettingResource, err error)
- func (client AutoscaleSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (*http.Request, error)
- func (client AutoscaleSettingsClient) GetResponder(resp *http.Response) (result AutoscaleSettingResource, err error)
- func (client AutoscaleSettingsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client AutoscaleSettingsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AutoscaleSettingResourceCollectionPage, err error)
- func (client AutoscaleSettingsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AutoscaleSettingResourceCollectionIterator, err error)
- func (client AutoscaleSettingsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client AutoscaleSettingsClient) ListByResourceGroupResponder(resp *http.Response) (result AutoscaleSettingResourceCollection, err error)
- func (client AutoscaleSettingsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client AutoscaleSettingsClient) ListBySubscription(ctx context.Context) (result AutoscaleSettingResourceCollectionPage, err error)
- func (client AutoscaleSettingsClient) ListBySubscriptionComplete(ctx context.Context) (result AutoscaleSettingResourceCollectionIterator, err error)
- func (client AutoscaleSettingsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
- func (client AutoscaleSettingsClient) ListBySubscriptionResponder(resp *http.Response) (result AutoscaleSettingResourceCollection, err error)
- func (client AutoscaleSettingsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
- func (client AutoscaleSettingsClient) Update(ctx context.Context, resourceGroupName string, autoscaleSettingName string, ...) (result AutoscaleSettingResource, err error)
- func (client AutoscaleSettingsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string, ...) (*http.Request, error)
- func (client AutoscaleSettingsClient) UpdateResponder(resp *http.Response) (result AutoscaleSettingResource, err error)
- func (client AutoscaleSettingsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type AzureAppPushReceiver
- type AzureEntityResource
- type AzureFunctionReceiver
- type AzureMonitorPrivateLinkScope
- type AzureMonitorPrivateLinkScopeListResult
- type AzureMonitorPrivateLinkScopeListResultIterator
- func (iter *AzureMonitorPrivateLinkScopeListResultIterator) Next() error
- func (iter *AzureMonitorPrivateLinkScopeListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter AzureMonitorPrivateLinkScopeListResultIterator) NotDone() bool
- func (iter AzureMonitorPrivateLinkScopeListResultIterator) Response() AzureMonitorPrivateLinkScopeListResult
- func (iter AzureMonitorPrivateLinkScopeListResultIterator) Value() AzureMonitorPrivateLinkScope
- type AzureMonitorPrivateLinkScopeListResultPage
- func (page *AzureMonitorPrivateLinkScopeListResultPage) Next() error
- func (page *AzureMonitorPrivateLinkScopeListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page AzureMonitorPrivateLinkScopeListResultPage) NotDone() bool
- func (page AzureMonitorPrivateLinkScopeListResultPage) Response() AzureMonitorPrivateLinkScopeListResult
- func (page AzureMonitorPrivateLinkScopeListResultPage) Values() []AzureMonitorPrivateLinkScope
- type AzureMonitorPrivateLinkScopeProperties
- type AzureResource
- type BaseClient
- type CategoryType
- type ComparisonOperationType
- type Context
- type CreatedByType
- type DefaultErrorResponse
- type EmailNotification
- type EmailReceiver
- type EnableRequest
- type ErrorAdditionalInfo
- type ErrorDetail
- type ErrorResponse
- type EventHubReceiver
- type ItsmReceiver
- type LogSettings
- type LogicAppReceiver
- type ManagementGroupDiagnosticSettings
- type ManagementGroupDiagnosticSettingsClient
- func (client ManagementGroupDiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, managementGroupID string, ...) (result ManagementGroupDiagnosticSettingsResource, err error)
- func (client ManagementGroupDiagnosticSettingsClient) CreateOrUpdatePreparer(ctx context.Context, managementGroupID string, ...) (*http.Request, error)
- func (client ManagementGroupDiagnosticSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result ManagementGroupDiagnosticSettingsResource, err error)
- func (client ManagementGroupDiagnosticSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ManagementGroupDiagnosticSettingsClient) Delete(ctx context.Context, managementGroupID string, name string) (result autorest.Response, err error)
- func (client ManagementGroupDiagnosticSettingsClient) DeletePreparer(ctx context.Context, managementGroupID string, name string) (*http.Request, error)
- func (client ManagementGroupDiagnosticSettingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ManagementGroupDiagnosticSettingsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ManagementGroupDiagnosticSettingsClient) Get(ctx context.Context, managementGroupID string, name string) (result ManagementGroupDiagnosticSettingsResource, err error)
- func (client ManagementGroupDiagnosticSettingsClient) GetPreparer(ctx context.Context, managementGroupID string, name string) (*http.Request, error)
- func (client ManagementGroupDiagnosticSettingsClient) GetResponder(resp *http.Response) (result ManagementGroupDiagnosticSettingsResource, err error)
- func (client ManagementGroupDiagnosticSettingsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ManagementGroupDiagnosticSettingsClient) List(ctx context.Context, managementGroupID string) (result ManagementGroupDiagnosticSettingsResourceCollection, err error)
- func (client ManagementGroupDiagnosticSettingsClient) ListPreparer(ctx context.Context, managementGroupID string) (*http.Request, error)
- func (client ManagementGroupDiagnosticSettingsClient) ListResponder(resp *http.Response) (result ManagementGroupDiagnosticSettingsResourceCollection, err error)
- func (client ManagementGroupDiagnosticSettingsClient) ListSender(req *http.Request) (*http.Response, error)
- type ManagementGroupDiagnosticSettingsResource
- type ManagementGroupDiagnosticSettingsResourceCollection
- type ManagementGroupLogSettings
- type MetricSettings
- type MetricStatisticType
- type MetricTrigger
- type NotificationRequestBody
- type OperationStatus
- type PredictiveAutoscalePolicy
- type PredictiveAutoscalePolicyScaleMode
- type PredictiveMetricClient
- func (client PredictiveMetricClient) Get(ctx context.Context, resourceGroupName string, autoscaleSettingName string, ...) (result PredictiveResponse, err error)
- func (client PredictiveMetricClient) GetPreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string, ...) (*http.Request, error)
- func (client PredictiveMetricClient) GetResponder(resp *http.Response) (result PredictiveResponse, err error)
- func (client PredictiveMetricClient) GetSender(req *http.Request) (*http.Response, error)
- type PredictiveResponse
- type PredictiveValue
- type PrivateEndpoint
- type PrivateEndpointConnection
- type PrivateEndpointConnectionListResult
- type PrivateEndpointConnectionProperties
- type PrivateEndpointConnectionProvisioningState
- type PrivateEndpointConnectionsClient
- func (client PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, ...) (result PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
- func (client PrivateEndpointConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, scopeName string, ...) (*http.Request, error)
- func (client PrivateEndpointConnectionsClient) CreateOrUpdateResponder(resp *http.Response) (result PrivateEndpointConnection, err error)
- func (client PrivateEndpointConnectionsClient) CreateOrUpdateSender(req *http.Request) (future PrivateEndpointConnectionsCreateOrUpdateFuture, err error)
- func (client PrivateEndpointConnectionsClient) Delete(ctx context.Context, resourceGroupName string, scopeName string, ...) (result PrivateEndpointConnectionsDeleteFuture, err error)
- func (client PrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, scopeName string, ...) (*http.Request, error)
- func (client PrivateEndpointConnectionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client PrivateEndpointConnectionsClient) DeleteSender(req *http.Request) (future PrivateEndpointConnectionsDeleteFuture, err error)
- func (client PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, scopeName string, ...) (result PrivateEndpointConnection, err error)
- func (client PrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, scopeName string, ...) (*http.Request, error)
- func (client PrivateEndpointConnectionsClient) GetResponder(resp *http.Response) (result PrivateEndpointConnection, err error)
- func (client PrivateEndpointConnectionsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client PrivateEndpointConnectionsClient) ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result PrivateEndpointConnectionListResult, err error)
- func (client PrivateEndpointConnectionsClient) ListByPrivateLinkScopePreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
- func (client PrivateEndpointConnectionsClient) ListByPrivateLinkScopeResponder(resp *http.Response) (result PrivateEndpointConnectionListResult, err error)
- func (client PrivateEndpointConnectionsClient) ListByPrivateLinkScopeSender(req *http.Request) (*http.Response, error)
- type PrivateEndpointConnectionsCreateOrUpdateFuture
- type PrivateEndpointConnectionsDeleteFuture
- type PrivateEndpointServiceConnectionStatus
- type PrivateLinkResource
- type PrivateLinkResourceListResult
- type PrivateLinkResourceProperties
- type PrivateLinkResourcesClient
- func (client PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, scopeName string, ...) (result PrivateLinkResource, err error)
- func (client PrivateLinkResourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, scopeName string, ...) (*http.Request, error)
- func (client PrivateLinkResourcesClient) GetResponder(resp *http.Response) (result PrivateLinkResource, err error)
- func (client PrivateLinkResourcesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client PrivateLinkResourcesClient) ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result PrivateLinkResourceListResult, err error)
- func (client PrivateLinkResourcesClient) ListByPrivateLinkScopePreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
- func (client PrivateLinkResourcesClient) ListByPrivateLinkScopeResponder(resp *http.Response) (result PrivateLinkResourceListResult, err error)
- func (client PrivateLinkResourcesClient) ListByPrivateLinkScopeSender(req *http.Request) (*http.Response, error)
- type PrivateLinkScopeOperationStatusClient
- func (client PrivateLinkScopeOperationStatusClient) Get(ctx context.Context, asyncOperationID string, resourceGroupName string) (result OperationStatus, err error)
- func (client PrivateLinkScopeOperationStatusClient) GetPreparer(ctx context.Context, asyncOperationID string, resourceGroupName string) (*http.Request, error)
- func (client PrivateLinkScopeOperationStatusClient) GetResponder(resp *http.Response) (result OperationStatus, err error)
- func (client PrivateLinkScopeOperationStatusClient) GetSender(req *http.Request) (*http.Response, error)
- type PrivateLinkScopedResourcesClient
- func (client PrivateLinkScopedResourcesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, name string, ...) (result PrivateLinkScopedResourcesCreateOrUpdateFuture, err error)
- func (client PrivateLinkScopedResourcesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, scopeName string, name string, ...) (*http.Request, error)
- func (client PrivateLinkScopedResourcesClient) CreateOrUpdateResponder(resp *http.Response) (result ScopedResource, err error)
- func (client PrivateLinkScopedResourcesClient) CreateOrUpdateSender(req *http.Request) (future PrivateLinkScopedResourcesCreateOrUpdateFuture, err error)
- func (client PrivateLinkScopedResourcesClient) Delete(ctx context.Context, resourceGroupName string, scopeName string, name string) (result PrivateLinkScopedResourcesDeleteFuture, err error)
- func (client PrivateLinkScopedResourcesClient) DeletePreparer(ctx context.Context, resourceGroupName string, scopeName string, name string) (*http.Request, error)
- func (client PrivateLinkScopedResourcesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client PrivateLinkScopedResourcesClient) DeleteSender(req *http.Request) (future PrivateLinkScopedResourcesDeleteFuture, err error)
- func (client PrivateLinkScopedResourcesClient) Get(ctx context.Context, resourceGroupName string, scopeName string, name string) (result ScopedResource, err error)
- func (client PrivateLinkScopedResourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, scopeName string, name string) (*http.Request, error)
- func (client PrivateLinkScopedResourcesClient) GetResponder(resp *http.Response) (result ScopedResource, err error)
- func (client PrivateLinkScopedResourcesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client PrivateLinkScopedResourcesClient) ListByPrivateLinkScope(ctx context.Context, resourceGroupName string, scopeName string) (result ScopedResourceListResultPage, err error)
- func (client PrivateLinkScopedResourcesClient) ListByPrivateLinkScopeComplete(ctx context.Context, resourceGroupName string, scopeName string) (result ScopedResourceListResultIterator, err error)
- func (client PrivateLinkScopedResourcesClient) ListByPrivateLinkScopePreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
- func (client PrivateLinkScopedResourcesClient) ListByPrivateLinkScopeResponder(resp *http.Response) (result ScopedResourceListResult, err error)
- func (client PrivateLinkScopedResourcesClient) ListByPrivateLinkScopeSender(req *http.Request) (*http.Response, error)
- type PrivateLinkScopedResourcesCreateOrUpdateFuture
- type PrivateLinkScopedResourcesDeleteFuture
- type PrivateLinkScopesClient
- func (client PrivateLinkScopesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, scopeName string, ...) (result AzureMonitorPrivateLinkScope, err error)
- func (client PrivateLinkScopesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, scopeName string, ...) (*http.Request, error)
- func (client PrivateLinkScopesClient) CreateOrUpdateResponder(resp *http.Response) (result AzureMonitorPrivateLinkScope, err error)
- func (client PrivateLinkScopesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client PrivateLinkScopesClient) Delete(ctx context.Context, resourceGroupName string, scopeName string) (result PrivateLinkScopesDeleteFuture, err error)
- func (client PrivateLinkScopesClient) DeletePreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
- func (client PrivateLinkScopesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client PrivateLinkScopesClient) DeleteSender(req *http.Request) (future PrivateLinkScopesDeleteFuture, err error)
- func (client PrivateLinkScopesClient) Get(ctx context.Context, resourceGroupName string, scopeName string) (result AzureMonitorPrivateLinkScope, err error)
- func (client PrivateLinkScopesClient) GetPreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
- func (client PrivateLinkScopesClient) GetResponder(resp *http.Response) (result AzureMonitorPrivateLinkScope, err error)
- func (client PrivateLinkScopesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client PrivateLinkScopesClient) List(ctx context.Context) (result AzureMonitorPrivateLinkScopeListResultPage, err error)
- func (client PrivateLinkScopesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result AzureMonitorPrivateLinkScopeListResultPage, err error)
- func (client PrivateLinkScopesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AzureMonitorPrivateLinkScopeListResultIterator, err error)
- func (client PrivateLinkScopesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client PrivateLinkScopesClient) ListByResourceGroupResponder(resp *http.Response) (result AzureMonitorPrivateLinkScopeListResult, err error)
- func (client PrivateLinkScopesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client PrivateLinkScopesClient) ListComplete(ctx context.Context) (result AzureMonitorPrivateLinkScopeListResultIterator, err error)
- func (client PrivateLinkScopesClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client PrivateLinkScopesClient) ListResponder(resp *http.Response) (result AzureMonitorPrivateLinkScopeListResult, err error)
- func (client PrivateLinkScopesClient) ListSender(req *http.Request) (*http.Response, error)
- func (client PrivateLinkScopesClient) UpdateTags(ctx context.Context, resourceGroupName string, scopeName string, ...) (result AzureMonitorPrivateLinkScope, err error)
- func (client PrivateLinkScopesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, scopeName string, ...) (*http.Request, error)
- func (client PrivateLinkScopesClient) UpdateTagsResponder(resp *http.Response) (result AzureMonitorPrivateLinkScope, err error)
- func (client PrivateLinkScopesClient) UpdateTagsSender(req *http.Request) (*http.Response, error)
- type PrivateLinkScopesDeleteFuture
- type PrivateLinkServiceConnectionState
- type ProxyResource
- type ReceiverStatus
- type Recurrence
- type RecurrenceFrequency
- type RecurrentSchedule
- type Resource
- type RetentionPolicy
- type ScaleAction
- type ScaleCapacity
- type ScaleDirection
- type ScaleRule
- type ScaleRuleMetricDimension
- type ScaleRuleMetricDimensionOperationType
- type ScaleType
- type ScopedResource
- type ScopedResourceListResult
- type ScopedResourceListResultIterator
- func (iter *ScopedResourceListResultIterator) Next() error
- func (iter *ScopedResourceListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ScopedResourceListResultIterator) NotDone() bool
- func (iter ScopedResourceListResultIterator) Response() ScopedResourceListResult
- func (iter ScopedResourceListResultIterator) Value() ScopedResource
- type ScopedResourceListResultPage
- func (page *ScopedResourceListResultPage) Next() error
- func (page *ScopedResourceListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page ScopedResourceListResultPage) NotDone() bool
- func (page ScopedResourceListResultPage) Response() ScopedResourceListResult
- func (page ScopedResourceListResultPage) Values() []ScopedResource
- type ScopedResourceProperties
- type Settings
- type SettingsCategory
- type SettingsCategoryClient
- func (client SettingsCategoryClient) Get(ctx context.Context, resourceURI string, name string) (result SettingsCategoryResource, err error)
- func (client SettingsCategoryClient) GetPreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error)
- func (client SettingsCategoryClient) GetResponder(resp *http.Response) (result SettingsCategoryResource, err error)
- func (client SettingsCategoryClient) GetSender(req *http.Request) (*http.Response, error)
- func (client SettingsCategoryClient) List(ctx context.Context, resourceURI string) (result SettingsCategoryResourceCollection, err error)
- func (client SettingsCategoryClient) ListPreparer(ctx context.Context, resourceURI string) (*http.Request, error)
- func (client SettingsCategoryClient) ListResponder(resp *http.Response) (result SettingsCategoryResourceCollection, err error)
- func (client SettingsCategoryClient) ListSender(req *http.Request) (*http.Response, error)
- type SettingsCategoryResource
- type SettingsCategoryResourceCollection
- type SettingsClient
- func (client SettingsClient) CreateOrUpdate(ctx context.Context, resourceURI string, parameters SettingsResource, ...) (result SettingsResource, err error)
- func (client SettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceURI string, parameters SettingsResource, ...) (*http.Request, error)
- func (client SettingsClient) CreateOrUpdateResponder(resp *http.Response) (result SettingsResource, err error)
- func (client SettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client SettingsClient) Delete(ctx context.Context, resourceURI string, name string) (result autorest.Response, err error)
- func (client SettingsClient) DeletePreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error)
- func (client SettingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client SettingsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client SettingsClient) Get(ctx context.Context, resourceURI string, name string) (result SettingsResource, err error)
- func (client SettingsClient) GetPreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error)
- func (client SettingsClient) GetResponder(resp *http.Response) (result SettingsResource, err error)
- func (client SettingsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client SettingsClient) List(ctx context.Context, resourceURI string) (result SettingsResourceCollection, err error)
- func (client SettingsClient) ListPreparer(ctx context.Context, resourceURI string) (*http.Request, error)
- func (client SettingsClient) ListResponder(resp *http.Response) (result SettingsResourceCollection, err error)
- func (client SettingsClient) ListSender(req *http.Request) (*http.Response, error)
- type SettingsResource
- type SettingsResourceCollection
- type SmsReceiver
- type SubscriptionDiagnosticSettings
- type SubscriptionDiagnosticSettingsClient
- func (client SubscriptionDiagnosticSettingsClient) CreateOrUpdate(ctx context.Context, parameters SubscriptionDiagnosticSettingsResource, ...) (result SubscriptionDiagnosticSettingsResource, err error)
- func (client SubscriptionDiagnosticSettingsClient) CreateOrUpdatePreparer(ctx context.Context, parameters SubscriptionDiagnosticSettingsResource, ...) (*http.Request, error)
- func (client SubscriptionDiagnosticSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result SubscriptionDiagnosticSettingsResource, err error)
- func (client SubscriptionDiagnosticSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client SubscriptionDiagnosticSettingsClient) Delete(ctx context.Context, name string) (result autorest.Response, err error)
- func (client SubscriptionDiagnosticSettingsClient) DeletePreparer(ctx context.Context, name string) (*http.Request, error)
- func (client SubscriptionDiagnosticSettingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client SubscriptionDiagnosticSettingsClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client SubscriptionDiagnosticSettingsClient) Get(ctx context.Context, name string) (result SubscriptionDiagnosticSettingsResource, err error)
- func (client SubscriptionDiagnosticSettingsClient) GetPreparer(ctx context.Context, name string) (*http.Request, error)
- func (client SubscriptionDiagnosticSettingsClient) GetResponder(resp *http.Response) (result SubscriptionDiagnosticSettingsResource, err error)
- func (client SubscriptionDiagnosticSettingsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client SubscriptionDiagnosticSettingsClient) List(ctx context.Context) (result SubscriptionDiagnosticSettingsResourceCollection, err error)
- func (client SubscriptionDiagnosticSettingsClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client SubscriptionDiagnosticSettingsClient) ListResponder(resp *http.Response) (result SubscriptionDiagnosticSettingsResourceCollection, err error)
- func (client SubscriptionDiagnosticSettingsClient) ListSender(req *http.Request) (*http.Response, error)
- type SubscriptionDiagnosticSettingsResource
- type SubscriptionDiagnosticSettingsResourceCollection
- type SubscriptionLogSettings
- type SystemData
- type TagsResource
- type TestNotificationDetailsResponse
- type TimeAggregationType
- type TimeWindow
- type TrackedResource
- type VoiceReceiver
- type WebhookNotification
- type WebhookReceiver
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Diagnostics
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type AccessMode ¶
type AccessMode string
AccessMode enumerates the values for access mode.
const ( // Open ... Open AccessMode = "Open" // PrivateOnly ... PrivateOnly AccessMode = "PrivateOnly" )
func PossibleAccessModeValues ¶
func PossibleAccessModeValues() []AccessMode
PossibleAccessModeValues returns an array of possible values for the AccessMode const type.
type AccessModeSettings ¶
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"` }
AccessModeSettings properties that define the scope private link mode settings.
type AccessModeSettingsExclusion ¶
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"` }
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 ActionDetail ¶
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"` }
ActionDetail the action detail
type ActionGroup ¶
type ActionGroup struct { // GroupShortName - The short name of the action group. This will be used in SMS messages. GroupShortName *string `json:"groupShortName,omitempty"` // Enabled - Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Enabled *bool `json:"enabled,omitempty"` // EmailReceivers - The list of email receivers that are part of this action group. EmailReceivers *[]EmailReceiver `json:"emailReceivers,omitempty"` // SmsReceivers - The list of SMS receivers that are part of this action group. SmsReceivers *[]SmsReceiver `json:"smsReceivers,omitempty"` // WebhookReceivers - The list of webhook receivers that are part of this action group. WebhookReceivers *[]WebhookReceiver `json:"webhookReceivers,omitempty"` // ItsmReceivers - The list of ITSM receivers that are part of this action group. ItsmReceivers *[]ItsmReceiver `json:"itsmReceivers,omitempty"` // AzureAppPushReceivers - The list of AzureAppPush receivers that are part of this action group. AzureAppPushReceivers *[]AzureAppPushReceiver `json:"azureAppPushReceivers,omitempty"` // AutomationRunbookReceivers - The list of AutomationRunbook receivers that are part of this action group. AutomationRunbookReceivers *[]AutomationRunbookReceiver `json:"automationRunbookReceivers,omitempty"` // VoiceReceivers - The list of voice receivers that are part of this action group. VoiceReceivers *[]VoiceReceiver `json:"voiceReceivers,omitempty"` // LogicAppReceivers - The list of logic app receivers that are part of this action group. LogicAppReceivers *[]LogicAppReceiver `json:"logicAppReceivers,omitempty"` // AzureFunctionReceivers - The list of azure function receivers that are part of this action group. AzureFunctionReceivers *[]AzureFunctionReceiver `json:"azureFunctionReceivers,omitempty"` // 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"` }
ActionGroup an Azure action group.
type ActionGroupList ¶
type ActionGroupList struct { autorest.Response `json:"-"` // Value - The list of action groups. Value *[]ActionGroupResource `json:"value,omitempty"` // NextLink - Provides the link to retrieve the next set of elements. NextLink *string `json:"nextLink,omitempty"` }
ActionGroupList a list of action groups.
type ActionGroupPatch ¶
type ActionGroupPatch struct { // Enabled - Indicates whether this action group is enabled. If an action group is not enabled, then none of its actions will be activated. Enabled *bool `json:"enabled,omitempty"` }
ActionGroupPatch an Azure action group for patch operations.
type ActionGroupPatchBody ¶
type ActionGroupPatchBody struct { // Tags - Resource tags Tags map[string]*string `json:"tags"` // ActionGroupPatch - The action group settings for an update operation. *ActionGroupPatch `json:"properties,omitempty"` }
ActionGroupPatchBody an action group object for the body of patch operations.
func (ActionGroupPatchBody) MarshalJSON ¶
func (agpb ActionGroupPatchBody) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ActionGroupPatchBody.
func (*ActionGroupPatchBody) UnmarshalJSON ¶
func (agpb *ActionGroupPatchBody) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ActionGroupPatchBody struct.
type ActionGroupResource ¶
type ActionGroupResource struct { autorest.Response `json:"-"` // ActionGroup - The action groups properties of the resource. *ActionGroup `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource Id ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type Type *string `json:"type,omitempty"` // Location - Resource location Location *string `json:"location,omitempty"` // Tags - Resource tags Tags map[string]*string `json:"tags"` }
ActionGroupResource an action group resource.
func (ActionGroupResource) MarshalJSON ¶
func (agr ActionGroupResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ActionGroupResource.
func (*ActionGroupResource) UnmarshalJSON ¶
func (agr *ActionGroupResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ActionGroupResource struct.
type ActionGroupsClient ¶
type ActionGroupsClient struct {
BaseClient
}
ActionGroupsClient is the monitor Management Client
func NewActionGroupsClient ¶
func NewActionGroupsClient(subscriptionID string) ActionGroupsClient
NewActionGroupsClient creates an instance of the ActionGroupsClient client.
func NewActionGroupsClientWithBaseURI ¶
func NewActionGroupsClientWithBaseURI(baseURI string, subscriptionID string) ActionGroupsClient
NewActionGroupsClientWithBaseURI creates an instance of the ActionGroupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ActionGroupsClient) CreateNotificationsAtActionGroupResourceLevel ¶
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 (ActionGroupsClient) CreateNotificationsAtActionGroupResourceLevelPreparer ¶
func (client ActionGroupsClient) CreateNotificationsAtActionGroupResourceLevelPreparer(ctx context.Context, resourceGroupName string, actionGroupName string, notificationRequest NotificationRequestBody) (*http.Request, error)
CreateNotificationsAtActionGroupResourceLevelPreparer prepares the CreateNotificationsAtActionGroupResourceLevel request.
func (ActionGroupsClient) CreateNotificationsAtActionGroupResourceLevelResponder ¶
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 (ActionGroupsClient) CreateNotificationsAtActionGroupResourceLevelSender ¶
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 (ActionGroupsClient) CreateNotificationsAtResourceGroupLevel ¶
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 (ActionGroupsClient) CreateNotificationsAtResourceGroupLevelPreparer ¶
func (client ActionGroupsClient) CreateNotificationsAtResourceGroupLevelPreparer(ctx context.Context, resourceGroupName string, notificationRequest NotificationRequestBody) (*http.Request, error)
CreateNotificationsAtResourceGroupLevelPreparer prepares the CreateNotificationsAtResourceGroupLevel request.
func (ActionGroupsClient) CreateNotificationsAtResourceGroupLevelResponder ¶
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 (ActionGroupsClient) CreateNotificationsAtResourceGroupLevelSender ¶
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 (ActionGroupsClient) CreateOrUpdate ¶
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 (ActionGroupsClient) CreateOrUpdatePreparer ¶
func (client ActionGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroup ActionGroupResource) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ActionGroupsClient) CreateOrUpdateResponder ¶
func (client ActionGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ActionGroupResource, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ActionGroupsClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ActionGroupsClient) Delete ¶
func (client ActionGroupsClient) Delete(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 (ActionGroupsClient) DeletePreparer ¶
func (client ActionGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, actionGroupName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ActionGroupsClient) DeleteResponder ¶
func (client ActionGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ActionGroupsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ActionGroupsClient) EnableReceiver ¶
func (client ActionGroupsClient) EnableReceiver(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 (ActionGroupsClient) EnableReceiverPreparer ¶
func (client ActionGroupsClient) EnableReceiverPreparer(ctx context.Context, resourceGroupName string, actionGroupName string, enableRequest EnableRequest) (*http.Request, error)
EnableReceiverPreparer prepares the EnableReceiver request.
func (ActionGroupsClient) EnableReceiverResponder ¶
func (client ActionGroupsClient) EnableReceiverResponder(resp *http.Response) (result autorest.Response, err error)
EnableReceiverResponder handles the response to the EnableReceiver request. The method always closes the http.Response Body.
func (ActionGroupsClient) EnableReceiverSender ¶
EnableReceiverSender sends the EnableReceiver request. The method will close the http.Response Body if it receives an error.
func (ActionGroupsClient) Get ¶
func (client ActionGroupsClient) Get(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 (ActionGroupsClient) GetPreparer ¶
func (client ActionGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, actionGroupName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ActionGroupsClient) GetResponder ¶
func (client ActionGroupsClient) GetResponder(resp *http.Response) (result ActionGroupResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ActionGroupsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ActionGroupsClient) GetTestNotifications ¶
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 (ActionGroupsClient) GetTestNotificationsAtActionGroupResourceLevel ¶
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 (ActionGroupsClient) GetTestNotificationsAtActionGroupResourceLevelPreparer ¶
func (client ActionGroupsClient) GetTestNotificationsAtActionGroupResourceLevelPreparer(ctx context.Context, resourceGroupName string, actionGroupName string, notificationID string) (*http.Request, error)
GetTestNotificationsAtActionGroupResourceLevelPreparer prepares the GetTestNotificationsAtActionGroupResourceLevel request.
func (ActionGroupsClient) GetTestNotificationsAtActionGroupResourceLevelResponder ¶
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 (ActionGroupsClient) GetTestNotificationsAtActionGroupResourceLevelSender ¶
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 (ActionGroupsClient) GetTestNotificationsAtResourceGroupLevel ¶
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 (ActionGroupsClient) GetTestNotificationsAtResourceGroupLevelPreparer ¶
func (client ActionGroupsClient) GetTestNotificationsAtResourceGroupLevelPreparer(ctx context.Context, resourceGroupName string, notificationID string) (*http.Request, error)
GetTestNotificationsAtResourceGroupLevelPreparer prepares the GetTestNotificationsAtResourceGroupLevel request.
func (ActionGroupsClient) GetTestNotificationsAtResourceGroupLevelResponder ¶
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 (ActionGroupsClient) GetTestNotificationsAtResourceGroupLevelSender ¶
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 (ActionGroupsClient) GetTestNotificationsPreparer ¶
func (client ActionGroupsClient) GetTestNotificationsPreparer(ctx context.Context, notificationID string) (*http.Request, error)
GetTestNotificationsPreparer prepares the GetTestNotifications request.
func (ActionGroupsClient) GetTestNotificationsResponder ¶
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 (ActionGroupsClient) GetTestNotificationsSender ¶
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 (ActionGroupsClient) ListByResourceGroup ¶
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 (ActionGroupsClient) ListByResourceGroupPreparer ¶
func (client ActionGroupsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (ActionGroupsClient) ListByResourceGroupResponder ¶
func (client ActionGroupsClient) ListByResourceGroupResponder(resp *http.Response) (result ActionGroupList, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (ActionGroupsClient) ListByResourceGroupSender ¶
func (client ActionGroupsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (ActionGroupsClient) ListBySubscriptionID ¶
func (client ActionGroupsClient) ListBySubscriptionID(ctx context.Context) (result ActionGroupList, err error)
ListBySubscriptionID get a list of all action groups in a subscription.
func (ActionGroupsClient) ListBySubscriptionIDPreparer ¶
func (client ActionGroupsClient) ListBySubscriptionIDPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionIDPreparer prepares the ListBySubscriptionID request.
func (ActionGroupsClient) ListBySubscriptionIDResponder ¶
func (client ActionGroupsClient) ListBySubscriptionIDResponder(resp *http.Response) (result ActionGroupList, err error)
ListBySubscriptionIDResponder handles the response to the ListBySubscriptionID request. The method always closes the http.Response Body.
func (ActionGroupsClient) ListBySubscriptionIDSender ¶
func (client ActionGroupsClient) ListBySubscriptionIDSender(req *http.Request) (*http.Response, error)
ListBySubscriptionIDSender sends the ListBySubscriptionID request. The method will close the http.Response Body if it receives an error.
func (ActionGroupsClient) PostTestNotifications ¶
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 (ActionGroupsClient) PostTestNotificationsPreparer ¶
func (client ActionGroupsClient) PostTestNotificationsPreparer(ctx context.Context, notificationRequest NotificationRequestBody) (*http.Request, error)
PostTestNotificationsPreparer prepares the PostTestNotifications request.
func (ActionGroupsClient) PostTestNotificationsResponder ¶
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 (ActionGroupsClient) PostTestNotificationsSender ¶
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 (ActionGroupsClient) Update ¶
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 (ActionGroupsClient) UpdatePreparer ¶
func (client ActionGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, actionGroupName string, actionGroupPatch ActionGroupPatchBody) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ActionGroupsClient) UpdateResponder ¶
func (client ActionGroupsClient) UpdateResponder(resp *http.Response) (result ActionGroupResource, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (ActionGroupsClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture ¶
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) }
ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture) UnmarshalJSON ¶
func (future *ActionGroupsCreateNotificationsAtActionGroupResourceLevelFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ActionGroupsCreateNotificationsAtResourceGroupLevelFuture ¶
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) }
ActionGroupsCreateNotificationsAtResourceGroupLevelFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ActionGroupsCreateNotificationsAtResourceGroupLevelFuture) UnmarshalJSON ¶
func (future *ActionGroupsCreateNotificationsAtResourceGroupLevelFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ActionGroupsPostTestNotificationsFuture ¶
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) }
ActionGroupsPostTestNotificationsFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ActionGroupsPostTestNotificationsFuture) UnmarshalJSON ¶
func (future *ActionGroupsPostTestNotificationsFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ArmRoleReceiver ¶
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"` }
ArmRoleReceiver an arm role receiver.
type AutomationRunbookReceiver ¶
type AutomationRunbookReceiver struct { // AutomationAccountID - The Azure automation account Id which holds this runbook and authenticate to Azure resource. AutomationAccountID *string `json:"automationAccountId,omitempty"` // RunbookName - The name for this runbook. RunbookName *string `json:"runbookName,omitempty"` // WebhookResourceID - The resource id for webhook linked to this runbook. WebhookResourceID *string `json:"webhookResourceId,omitempty"` // IsGlobalRunbook - Indicates whether this instance is global runbook. IsGlobalRunbook *bool `json:"isGlobalRunbook,omitempty"` // Name - Indicates name of the webhook. Name *string `json:"name,omitempty"` // ServiceURI - The URI where webhooks should be sent. ServiceURI *string `json:"serviceUri,omitempty"` // UseCommonAlertSchema - Indicates whether to use common alert schema. UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"` }
AutomationRunbookReceiver the Azure Automation Runbook notification receiver.
type AutoscaleErrorResponse ¶
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"` }
AutoscaleErrorResponse describes the format of Error response.
func (AutoscaleErrorResponse) MarshalJSON ¶
func (aer AutoscaleErrorResponse) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AutoscaleErrorResponse.
type AutoscaleErrorResponseError ¶
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"` }
AutoscaleErrorResponseError the error object.
type AutoscaleNotification ¶
type AutoscaleNotification struct { // Operation - the operation associated with the notification and its value must be "scale" Operation *string `json:"operation,omitempty"` // Email - the email notification. Email *EmailNotification `json:"email,omitempty"` // Webhooks - the collection of webhook notifications. Webhooks *[]WebhookNotification `json:"webhooks,omitempty"` }
AutoscaleNotification autoscale notification.
type AutoscaleProfile ¶
type AutoscaleProfile struct { // Name - the name of the profile. Name *string `json:"name,omitempty"` // Capacity - the number of instances that can be used during this profile. Capacity *ScaleCapacity `json:"capacity,omitempty"` // Rules - the collection of rules that provide the triggers and parameters for the scaling action. A maximum of 10 rules can be specified. Rules *[]ScaleRule `json:"rules,omitempty"` // FixedDate - the specific date-time for the profile. This element is not used if the Recurrence element is used. FixedDate *TimeWindow `json:"fixedDate,omitempty"` // Recurrence - the repeating times at which this profile begins. This element is not used if the FixedDate element is used. Recurrence *Recurrence `json:"recurrence,omitempty"` }
AutoscaleProfile autoscale profile.
type AutoscaleSetting ¶
type AutoscaleSetting struct { // Profiles - the collection of automatic scaling profiles that specify different scaling parameters for different time periods. A maximum of 20 profiles can be specified. Profiles *[]AutoscaleProfile `json:"profiles,omitempty"` // Notifications - the collection of notifications. Notifications *[]AutoscaleNotification `json:"notifications,omitempty"` // Enabled - the enabled flag. Specifies whether automatic scaling is enabled for the resource. The default value is '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"` }
AutoscaleSetting a setting that contains all of the configuration for the automatic scaling of a resource.
type AutoscaleSettingResource ¶
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"` }
AutoscaleSettingResource the autoscale setting resource.
func (AutoscaleSettingResource) MarshalJSON ¶
func (asr AutoscaleSettingResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AutoscaleSettingResource.
func (*AutoscaleSettingResource) UnmarshalJSON ¶
func (asr *AutoscaleSettingResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AutoscaleSettingResource struct.
type AutoscaleSettingResourceCollection ¶
type AutoscaleSettingResourceCollection struct { autorest.Response `json:"-"` // Value - the values for the autoscale setting resources. Value *[]AutoscaleSettingResource `json:"value,omitempty"` // NextLink - URL to get the next set of results. NextLink *string `json:"nextLink,omitempty"` }
AutoscaleSettingResourceCollection represents a collection of autoscale setting resources.
func (AutoscaleSettingResourceCollection) IsEmpty ¶
func (asrc AutoscaleSettingResourceCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type AutoscaleSettingResourceCollectionIterator ¶
type AutoscaleSettingResourceCollectionIterator struct {
// contains filtered or unexported fields
}
AutoscaleSettingResourceCollectionIterator provides access to a complete listing of AutoscaleSettingResource values.
func NewAutoscaleSettingResourceCollectionIterator ¶
func NewAutoscaleSettingResourceCollectionIterator(page AutoscaleSettingResourceCollectionPage) AutoscaleSettingResourceCollectionIterator
Creates a new instance of the AutoscaleSettingResourceCollectionIterator type.
func (*AutoscaleSettingResourceCollectionIterator) Next ¶
func (iter *AutoscaleSettingResourceCollectionIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*AutoscaleSettingResourceCollectionIterator) NextWithContext ¶
func (iter *AutoscaleSettingResourceCollectionIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (AutoscaleSettingResourceCollectionIterator) NotDone ¶
func (iter AutoscaleSettingResourceCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (AutoscaleSettingResourceCollectionIterator) Response ¶
func (iter AutoscaleSettingResourceCollectionIterator) Response() AutoscaleSettingResourceCollection
Response returns the raw server response from the last page request.
func (AutoscaleSettingResourceCollectionIterator) Value ¶
func (iter AutoscaleSettingResourceCollectionIterator) Value() AutoscaleSettingResource
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type AutoscaleSettingResourceCollectionPage ¶
type AutoscaleSettingResourceCollectionPage struct {
// contains filtered or unexported fields
}
AutoscaleSettingResourceCollectionPage contains a page of AutoscaleSettingResource values.
func NewAutoscaleSettingResourceCollectionPage ¶
func NewAutoscaleSettingResourceCollectionPage(cur AutoscaleSettingResourceCollection, getNextPage func(context.Context, AutoscaleSettingResourceCollection) (AutoscaleSettingResourceCollection, error)) AutoscaleSettingResourceCollectionPage
Creates a new instance of the AutoscaleSettingResourceCollectionPage type.
func (*AutoscaleSettingResourceCollectionPage) Next ¶
func (page *AutoscaleSettingResourceCollectionPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*AutoscaleSettingResourceCollectionPage) NextWithContext ¶
func (page *AutoscaleSettingResourceCollectionPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (AutoscaleSettingResourceCollectionPage) NotDone ¶
func (page AutoscaleSettingResourceCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (AutoscaleSettingResourceCollectionPage) Response ¶
func (page AutoscaleSettingResourceCollectionPage) Response() AutoscaleSettingResourceCollection
Response returns the raw server response from the last page request.
func (AutoscaleSettingResourceCollectionPage) Values ¶
func (page AutoscaleSettingResourceCollectionPage) Values() []AutoscaleSettingResource
Values returns the slice of values for the current page or nil if there are no values.
type AutoscaleSettingResourcePatch ¶
type AutoscaleSettingResourcePatch struct { // Tags - Resource tags Tags map[string]*string `json:"tags"` // AutoscaleSetting - The autoscale setting properties of the update operation. *AutoscaleSetting `json:"properties,omitempty"` }
AutoscaleSettingResourcePatch the autoscale setting object for patch operations.
func (AutoscaleSettingResourcePatch) MarshalJSON ¶
func (asrp AutoscaleSettingResourcePatch) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AutoscaleSettingResourcePatch.
func (*AutoscaleSettingResourcePatch) UnmarshalJSON ¶
func (asrp *AutoscaleSettingResourcePatch) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AutoscaleSettingResourcePatch struct.
type AutoscaleSettingsClient ¶
type AutoscaleSettingsClient struct {
BaseClient
}
AutoscaleSettingsClient is the monitor Management Client
func NewAutoscaleSettingsClient ¶
func NewAutoscaleSettingsClient(subscriptionID string) AutoscaleSettingsClient
NewAutoscaleSettingsClient creates an instance of the AutoscaleSettingsClient client.
func NewAutoscaleSettingsClientWithBaseURI ¶
func NewAutoscaleSettingsClientWithBaseURI(baseURI string, subscriptionID string) AutoscaleSettingsClient
NewAutoscaleSettingsClientWithBaseURI creates an instance of the AutoscaleSettingsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (AutoscaleSettingsClient) CreateOrUpdate ¶
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 (AutoscaleSettingsClient) CreateOrUpdatePreparer ¶
func (client AutoscaleSettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string, parameters AutoscaleSettingResource) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (AutoscaleSettingsClient) CreateOrUpdateResponder ¶
func (client AutoscaleSettingsClient) CreateOrUpdateResponder(resp *http.Response) (result AutoscaleSettingResource, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (AutoscaleSettingsClient) CreateOrUpdateSender ¶
func (client AutoscaleSettingsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (AutoscaleSettingsClient) Delete ¶
func (client AutoscaleSettingsClient) Delete(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 (AutoscaleSettingsClient) DeletePreparer ¶
func (client AutoscaleSettingsClient) DeletePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (AutoscaleSettingsClient) DeleteResponder ¶
func (client AutoscaleSettingsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (AutoscaleSettingsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (AutoscaleSettingsClient) Get ¶
func (client AutoscaleSettingsClient) Get(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 (AutoscaleSettingsClient) GetPreparer ¶
func (client AutoscaleSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (AutoscaleSettingsClient) GetResponder ¶
func (client AutoscaleSettingsClient) GetResponder(resp *http.Response) (result AutoscaleSettingResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (AutoscaleSettingsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (AutoscaleSettingsClient) ListByResourceGroup ¶
func (client AutoscaleSettingsClient) ListByResourceGroup(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 (AutoscaleSettingsClient) ListByResourceGroupComplete ¶
func (client AutoscaleSettingsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AutoscaleSettingResourceCollectionIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (AutoscaleSettingsClient) ListByResourceGroupPreparer ¶
func (client AutoscaleSettingsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (AutoscaleSettingsClient) ListByResourceGroupResponder ¶
func (client AutoscaleSettingsClient) ListByResourceGroupResponder(resp *http.Response) (result AutoscaleSettingResourceCollection, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (AutoscaleSettingsClient) ListByResourceGroupSender ¶
func (client AutoscaleSettingsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (AutoscaleSettingsClient) ListBySubscription ¶
func (client AutoscaleSettingsClient) ListBySubscription(ctx context.Context) (result AutoscaleSettingResourceCollectionPage, err error)
ListBySubscription lists the autoscale settings for a subscription
func (AutoscaleSettingsClient) ListBySubscriptionComplete ¶
func (client AutoscaleSettingsClient) ListBySubscriptionComplete(ctx context.Context) (result AutoscaleSettingResourceCollectionIterator, err error)
ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.
func (AutoscaleSettingsClient) ListBySubscriptionPreparer ¶
func (client AutoscaleSettingsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)
ListBySubscriptionPreparer prepares the ListBySubscription request.
func (AutoscaleSettingsClient) ListBySubscriptionResponder ¶
func (client AutoscaleSettingsClient) ListBySubscriptionResponder(resp *http.Response) (result AutoscaleSettingResourceCollection, err error)
ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.
func (AutoscaleSettingsClient) ListBySubscriptionSender ¶
func (client AutoscaleSettingsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)
ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.
func (AutoscaleSettingsClient) Update ¶
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 (AutoscaleSettingsClient) UpdatePreparer ¶
func (client AutoscaleSettingsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, autoscaleSettingName string, autoscaleSettingResource AutoscaleSettingResourcePatch) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (AutoscaleSettingsClient) UpdateResponder ¶
func (client AutoscaleSettingsClient) UpdateResponder(resp *http.Response) (result AutoscaleSettingResource, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (AutoscaleSettingsClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type AzureAppPushReceiver ¶
type AzureAppPushReceiver struct { // Name - The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // EmailAddress - The email address registered for the Azure mobile app. EmailAddress *string `json:"emailAddress,omitempty"` }
AzureAppPushReceiver the Azure mobile App push notification receiver.
type AzureEntityResource ¶
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"` }
AzureEntityResource the resource model definition for an Azure Resource Manager resource with an etag.
func (AzureEntityResource) MarshalJSON ¶
func (aer AzureEntityResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureEntityResource.
type AzureFunctionReceiver ¶
type AzureFunctionReceiver struct { // Name - The name of the azure function receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // FunctionAppResourceID - The azure resource id of the function app. FunctionAppResourceID *string `json:"functionAppResourceId,omitempty"` // FunctionName - The function name in the function app. FunctionName *string `json:"functionName,omitempty"` // HTTPTriggerURL - The http trigger url where http request sent to. HTTPTriggerURL *string `json:"httpTriggerUrl,omitempty"` // UseCommonAlertSchema - Indicates whether to use common alert schema. UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"` }
AzureFunctionReceiver an azure function receiver.
type AzureMonitorPrivateLinkScope ¶
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"` }
AzureMonitorPrivateLinkScope an Azure Monitor PrivateLinkScope definition.
func (AzureMonitorPrivateLinkScope) MarshalJSON ¶
func (ampls AzureMonitorPrivateLinkScope) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureMonitorPrivateLinkScope.
func (*AzureMonitorPrivateLinkScope) UnmarshalJSON ¶
func (ampls *AzureMonitorPrivateLinkScope) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for AzureMonitorPrivateLinkScope struct.
type AzureMonitorPrivateLinkScopeListResult ¶
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"` }
AzureMonitorPrivateLinkScopeListResult describes the list of Azure Monitor PrivateLinkScope resources.
func (AzureMonitorPrivateLinkScopeListResult) IsEmpty ¶
func (amplslr AzureMonitorPrivateLinkScopeListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type AzureMonitorPrivateLinkScopeListResultIterator ¶
type AzureMonitorPrivateLinkScopeListResultIterator struct {
// contains filtered or unexported fields
}
AzureMonitorPrivateLinkScopeListResultIterator provides access to a complete listing of AzureMonitorPrivateLinkScope values.
func NewAzureMonitorPrivateLinkScopeListResultIterator ¶
func NewAzureMonitorPrivateLinkScopeListResultIterator(page AzureMonitorPrivateLinkScopeListResultPage) AzureMonitorPrivateLinkScopeListResultIterator
Creates a new instance of the AzureMonitorPrivateLinkScopeListResultIterator type.
func (*AzureMonitorPrivateLinkScopeListResultIterator) Next ¶
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 (*AzureMonitorPrivateLinkScopeListResultIterator) NextWithContext ¶
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 (AzureMonitorPrivateLinkScopeListResultIterator) NotDone ¶
func (iter AzureMonitorPrivateLinkScopeListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (AzureMonitorPrivateLinkScopeListResultIterator) Response ¶
func (iter AzureMonitorPrivateLinkScopeListResultIterator) Response() AzureMonitorPrivateLinkScopeListResult
Response returns the raw server response from the last page request.
func (AzureMonitorPrivateLinkScopeListResultIterator) Value ¶
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.
type AzureMonitorPrivateLinkScopeListResultPage ¶
type AzureMonitorPrivateLinkScopeListResultPage struct {
// contains filtered or unexported fields
}
AzureMonitorPrivateLinkScopeListResultPage contains a page of AzureMonitorPrivateLinkScope values.
func NewAzureMonitorPrivateLinkScopeListResultPage ¶
func NewAzureMonitorPrivateLinkScopeListResultPage(cur AzureMonitorPrivateLinkScopeListResult, getNextPage func(context.Context, AzureMonitorPrivateLinkScopeListResult) (AzureMonitorPrivateLinkScopeListResult, error)) AzureMonitorPrivateLinkScopeListResultPage
Creates a new instance of the AzureMonitorPrivateLinkScopeListResultPage type.
func (*AzureMonitorPrivateLinkScopeListResultPage) Next ¶
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 (*AzureMonitorPrivateLinkScopeListResultPage) NextWithContext ¶
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 (AzureMonitorPrivateLinkScopeListResultPage) NotDone ¶
func (page AzureMonitorPrivateLinkScopeListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (AzureMonitorPrivateLinkScopeListResultPage) Response ¶
func (page AzureMonitorPrivateLinkScopeListResultPage) Response() AzureMonitorPrivateLinkScopeListResult
Response returns the raw server response from the last page request.
func (AzureMonitorPrivateLinkScopeListResultPage) Values ¶
func (page AzureMonitorPrivateLinkScopeListResultPage) Values() []AzureMonitorPrivateLinkScope
Values returns the slice of values for the current page or nil if there are no values.
type AzureMonitorPrivateLinkScopeProperties ¶
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"` }
AzureMonitorPrivateLinkScopeProperties properties that define a Azure Monitor PrivateLinkScope resource.
func (AzureMonitorPrivateLinkScopeProperties) MarshalJSON ¶
func (amplsp AzureMonitorPrivateLinkScopeProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureMonitorPrivateLinkScopeProperties.
type AzureResource ¶
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"` }
AzureResource an azure resource object
func (AzureResource) MarshalJSON ¶
func (ar AzureResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for AzureResource.
type BaseClient ¶
BaseClient is the base client for Diagnostics.
func New ¶
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
type CategoryType ¶
type CategoryType string
CategoryType enumerates the values for category type.
const ( // Logs ... Logs CategoryType = "Logs" // Metrics ... Metrics CategoryType = "Metrics" )
func PossibleCategoryTypeValues ¶
func PossibleCategoryTypeValues() []CategoryType
PossibleCategoryTypeValues returns an array of possible values for the CategoryType const type.
type ComparisonOperationType ¶
type ComparisonOperationType string
ComparisonOperationType enumerates the values for comparison operation type.
const ( // Equals ... Equals ComparisonOperationType = "Equals" // GreaterThan ... GreaterThan ComparisonOperationType = "GreaterThan" // GreaterThanOrEqual ... GreaterThanOrEqual ComparisonOperationType = "GreaterThanOrEqual" // LessThan ... LessThan ComparisonOperationType = "LessThan" // LessThanOrEqual ... LessThanOrEqual ComparisonOperationType = "LessThanOrEqual" // NotEquals ... NotEquals ComparisonOperationType = "NotEquals" )
func PossibleComparisonOperationTypeValues ¶
func PossibleComparisonOperationTypeValues() []ComparisonOperationType
PossibleComparisonOperationTypeValues returns an array of possible values for the ComparisonOperationType const type.
type Context ¶
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"` }
Context the context info
type CreatedByType ¶
type CreatedByType string
CreatedByType enumerates the values for created by type.
const ( // Application ... Application CreatedByType = "Application" // Key ... Key CreatedByType = "Key" // ManagedIdentity ... ManagedIdentity CreatedByType = "ManagedIdentity" // User ... User CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
type DefaultErrorResponse ¶
type DefaultErrorResponse struct { // Error - The error object. Error *ErrorDetail `json:"error,omitempty"` }
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 EmailNotification ¶
type EmailNotification struct { // SendToSubscriptionAdministrator - a value indicating whether to send email to subscription administrator. SendToSubscriptionAdministrator *bool `json:"sendToSubscriptionAdministrator,omitempty"` // SendToSubscriptionCoAdministrators - a value indicating whether to send email to subscription co-administrators. SendToSubscriptionCoAdministrators *bool `json:"sendToSubscriptionCoAdministrators,omitempty"` // CustomEmails - the custom e-mails list. This value can be null or empty, in which case this attribute will be ignored. CustomEmails *[]string `json:"customEmails,omitempty"` }
EmailNotification email notification of an autoscale event.
type EmailReceiver ¶
type EmailReceiver struct { // Name - The name of the email receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // EmailAddress - The email address of this receiver. EmailAddress *string `json:"emailAddress,omitempty"` // 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"` }
EmailReceiver an email receiver.
func (EmailReceiver) MarshalJSON ¶
func (er EmailReceiver) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for EmailReceiver.
type EnableRequest ¶
type EnableRequest struct { // ReceiverName - The name of the receiver to resubscribe. ReceiverName *string `json:"receiverName,omitempty"` }
EnableRequest describes a receiver that should be resubscribed.
type ErrorAdditionalInfo ¶
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"` }
ErrorAdditionalInfo the resource management error additional info.
func (ErrorAdditionalInfo) MarshalJSON ¶
func (eai ErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorAdditionalInfo.
type ErrorDetail ¶
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"` }
ErrorDetail the error detail.
func (ErrorDetail) MarshalJSON ¶
func (ed ErrorDetail) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ErrorDetail.
type ErrorResponse ¶
type ErrorResponse struct { // Code - Error code Code *string `json:"code,omitempty"` // Message - Error message indicating why the operation failed. Message *string `json:"message,omitempty"` }
ErrorResponse describes the format of Error response.
type EventHubReceiver ¶
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"` }
EventHubReceiver an Event hub receiver.
type ItsmReceiver ¶
type ItsmReceiver struct { // Name - The name of the Itsm receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // WorkspaceID - OMS LA instance identifier. WorkspaceID *string `json:"workspaceId,omitempty"` // ConnectionID - Unique identification of ITSM connection among multiple defined in above workspace. ConnectionID *string `json:"connectionId,omitempty"` // TicketConfiguration - JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well. TicketConfiguration *string `json:"ticketConfiguration,omitempty"` // Region - Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope' Region *string `json:"region,omitempty"` }
ItsmReceiver an Itsm receiver.
type LogSettings ¶
type LogSettings struct { // Category - Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation. Category *string `json:"category,omitempty"` // 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"` }
LogSettings part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.
type LogicAppReceiver ¶
type LogicAppReceiver struct { // Name - The name of the logic app receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // ResourceID - The azure resource id of the logic app receiver. ResourceID *string `json:"resourceId,omitempty"` // CallbackURL - The callback url where http request sent to. CallbackURL *string `json:"callbackUrl,omitempty"` // UseCommonAlertSchema - Indicates whether to use common alert schema. UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty"` }
LogicAppReceiver a logic app receiver.
type ManagementGroupDiagnosticSettings ¶
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"` }
ManagementGroupDiagnosticSettings the management group diagnostic settings.
type ManagementGroupDiagnosticSettingsClient ¶
type ManagementGroupDiagnosticSettingsClient struct {
BaseClient
}
ManagementGroupDiagnosticSettingsClient is the monitor Management Client
func NewManagementGroupDiagnosticSettingsClient ¶
func NewManagementGroupDiagnosticSettingsClient(subscriptionID string) ManagementGroupDiagnosticSettingsClient
NewManagementGroupDiagnosticSettingsClient creates an instance of the ManagementGroupDiagnosticSettingsClient client.
func NewManagementGroupDiagnosticSettingsClientWithBaseURI ¶
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 (ManagementGroupDiagnosticSettingsClient) CreateOrUpdate ¶
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 (ManagementGroupDiagnosticSettingsClient) CreateOrUpdatePreparer ¶
func (client ManagementGroupDiagnosticSettingsClient) CreateOrUpdatePreparer(ctx context.Context, managementGroupID string, parameters ManagementGroupDiagnosticSettingsResource, name string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ManagementGroupDiagnosticSettingsClient) CreateOrUpdateResponder ¶
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 (ManagementGroupDiagnosticSettingsClient) CreateOrUpdateSender ¶
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 (ManagementGroupDiagnosticSettingsClient) Delete ¶
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 (ManagementGroupDiagnosticSettingsClient) DeletePreparer ¶
func (client ManagementGroupDiagnosticSettingsClient) DeletePreparer(ctx context.Context, managementGroupID string, name string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ManagementGroupDiagnosticSettingsClient) DeleteResponder ¶
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 (ManagementGroupDiagnosticSettingsClient) DeleteSender ¶
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 (ManagementGroupDiagnosticSettingsClient) Get ¶
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 (ManagementGroupDiagnosticSettingsClient) GetPreparer ¶
func (client ManagementGroupDiagnosticSettingsClient) GetPreparer(ctx context.Context, managementGroupID string, name string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ManagementGroupDiagnosticSettingsClient) GetResponder ¶
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 (ManagementGroupDiagnosticSettingsClient) GetSender ¶
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 (ManagementGroupDiagnosticSettingsClient) List ¶
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 (ManagementGroupDiagnosticSettingsClient) ListPreparer ¶
func (client ManagementGroupDiagnosticSettingsClient) ListPreparer(ctx context.Context, managementGroupID string) (*http.Request, error)
ListPreparer prepares the List request.
func (ManagementGroupDiagnosticSettingsClient) ListResponder ¶
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 (ManagementGroupDiagnosticSettingsClient) ListSender ¶
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.
type ManagementGroupDiagnosticSettingsResource ¶
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"` }
ManagementGroupDiagnosticSettingsResource the management group diagnostic setting resource.
func (ManagementGroupDiagnosticSettingsResource) MarshalJSON ¶
func (mgdsr ManagementGroupDiagnosticSettingsResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ManagementGroupDiagnosticSettingsResource.
func (*ManagementGroupDiagnosticSettingsResource) UnmarshalJSON ¶
func (mgdsr *ManagementGroupDiagnosticSettingsResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ManagementGroupDiagnosticSettingsResource struct.
type ManagementGroupDiagnosticSettingsResourceCollection ¶
type ManagementGroupDiagnosticSettingsResourceCollection struct { autorest.Response `json:"-"` // Value - The collection of management group diagnostic settings resources. Value *[]ManagementGroupDiagnosticSettingsResource `json:"value,omitempty"` }
ManagementGroupDiagnosticSettingsResourceCollection represents a collection of management group diagnostic settings resources.
type ManagementGroupLogSettings ¶
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"` }
ManagementGroupLogSettings part of Management Group diagnostic setting. Specifies the settings for a particular log.
type MetricSettings ¶
type MetricSettings struct { // TimeGrain - the timegrain of the metric in ISO8601 format. TimeGrain *string `json:"timeGrain,omitempty"` // Category - Name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric categories for a resource, first perform a GET diagnostic settings operation. Category *string `json:"category,omitempty"` // Enabled - a value indicating whether this category is enabled. Enabled *bool `json:"enabled,omitempty"` // RetentionPolicy - the retention policy for this category. RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"` }
MetricSettings part of MultiTenantDiagnosticSettings. Specifies the settings for a particular metric.
type MetricStatisticType ¶
type MetricStatisticType string
MetricStatisticType enumerates the values for metric statistic type.
const ( // Average ... Average MetricStatisticType = "Average" // Count ... Count MetricStatisticType = "Count" // Max ... Max MetricStatisticType = "Max" // Min ... Min MetricStatisticType = "Min" // Sum ... Sum MetricStatisticType = "Sum" )
func PossibleMetricStatisticTypeValues ¶
func PossibleMetricStatisticTypeValues() []MetricStatisticType
PossibleMetricStatisticTypeValues returns an array of possible values for the MetricStatisticType const type.
type MetricTrigger ¶
type MetricTrigger struct { // MetricName - the name of the metric that defines what the rule monitors. MetricName *string `json:"metricName,omitempty"` // MetricNamespace - the namespace of the metric that defines what the rule monitors. MetricNamespace *string `json:"metricNamespace,omitempty"` // MetricResourceURI - the resource identifier of the resource the rule monitors. MetricResourceURI *string `json:"metricResourceUri,omitempty"` // 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"` }
MetricTrigger the trigger that results in a scaling action.
type NotificationRequestBody ¶
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"` }
NotificationRequestBody the request body which contain contact detail metadata
type OperationStatus ¶
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"` }
OperationStatus the status of operation.
type PredictiveAutoscalePolicy ¶
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"` }
PredictiveAutoscalePolicy the parameters for enabling predictive autoscale.
type PredictiveAutoscalePolicyScaleMode ¶
type PredictiveAutoscalePolicyScaleMode string
PredictiveAutoscalePolicyScaleMode enumerates the values for predictive autoscale policy scale mode.
const ( // Disabled ... Disabled PredictiveAutoscalePolicyScaleMode = "Disabled" // Enabled ... Enabled PredictiveAutoscalePolicyScaleMode = "Enabled" // ForecastOnly ... ForecastOnly PredictiveAutoscalePolicyScaleMode = "ForecastOnly" )
func PossiblePredictiveAutoscalePolicyScaleModeValues ¶
func PossiblePredictiveAutoscalePolicyScaleModeValues() []PredictiveAutoscalePolicyScaleMode
PossiblePredictiveAutoscalePolicyScaleModeValues returns an array of possible values for the PredictiveAutoscalePolicyScaleMode const type.
type PredictiveMetricClient ¶
type PredictiveMetricClient struct {
BaseClient
}
PredictiveMetricClient is the monitor Management Client
func NewPredictiveMetricClient ¶
func NewPredictiveMetricClient(subscriptionID string) PredictiveMetricClient
NewPredictiveMetricClient creates an instance of the PredictiveMetricClient client.
func NewPredictiveMetricClientWithBaseURI ¶
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 (PredictiveMetricClient) Get ¶
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 (PredictiveMetricClient) GetPreparer ¶
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 (PredictiveMetricClient) GetResponder ¶
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.
type PredictiveResponse ¶
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"` }
PredictiveResponse the response to a metrics query.
type PredictiveValue ¶
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"` }
PredictiveValue represents a predictive metric value in the given bucket.
type PrivateEndpoint ¶
type PrivateEndpoint struct { // ID - READ-ONLY; The ARM identifier for Private Endpoint ID *string `json:"id,omitempty"` }
PrivateEndpoint the Private Endpoint resource.
func (PrivateEndpoint) MarshalJSON ¶
func (peVar PrivateEndpoint) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateEndpoint.
type PrivateEndpointConnection ¶
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"` }
PrivateEndpointConnection the Private Endpoint Connection resource.
func (PrivateEndpointConnection) MarshalJSON ¶
func (pec PrivateEndpointConnection) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateEndpointConnection.
func (*PrivateEndpointConnection) UnmarshalJSON ¶
func (pec *PrivateEndpointConnection) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for PrivateEndpointConnection struct.
type PrivateEndpointConnectionListResult ¶
type PrivateEndpointConnectionListResult struct { autorest.Response `json:"-"` // Value - Array of private endpoint connections Value *[]PrivateEndpointConnection `json:"value,omitempty"` }
PrivateEndpointConnectionListResult list of private endpoint connection associated with the specified storage account
type PrivateEndpointConnectionProperties ¶
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"` }
PrivateEndpointConnectionProperties properties of the PrivateEndpointConnectProperties.
type PrivateEndpointConnectionProvisioningState ¶
type PrivateEndpointConnectionProvisioningState string
PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection provisioning state.
const ( // Creating ... Creating PrivateEndpointConnectionProvisioningState = "Creating" // Deleting ... Deleting PrivateEndpointConnectionProvisioningState = "Deleting" // Failed ... Failed PrivateEndpointConnectionProvisioningState = "Failed" // Succeeded ... Succeeded PrivateEndpointConnectionProvisioningState = "Succeeded" )
func PossiblePrivateEndpointConnectionProvisioningStateValues ¶
func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState
PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type.
type PrivateEndpointConnectionsClient ¶
type PrivateEndpointConnectionsClient struct {
BaseClient
}
PrivateEndpointConnectionsClient is the monitor Management Client
func NewPrivateEndpointConnectionsClient ¶
func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointConnectionsClient
NewPrivateEndpointConnectionsClient creates an instance of the PrivateEndpointConnectionsClient client.
func NewPrivateEndpointConnectionsClientWithBaseURI ¶
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 (PrivateEndpointConnectionsClient) CreateOrUpdate ¶
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 (PrivateEndpointConnectionsClient) CreateOrUpdatePreparer ¶
func (client PrivateEndpointConnectionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (PrivateEndpointConnectionsClient) CreateOrUpdateResponder ¶
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 (PrivateEndpointConnectionsClient) CreateOrUpdateSender ¶
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 (PrivateEndpointConnectionsClient) Delete ¶
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 (PrivateEndpointConnectionsClient) DeletePreparer ¶
func (client PrivateEndpointConnectionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (PrivateEndpointConnectionsClient) DeleteResponder ¶
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 (PrivateEndpointConnectionsClient) DeleteSender ¶
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 (PrivateEndpointConnectionsClient) Get ¶
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 (PrivateEndpointConnectionsClient) GetPreparer ¶
func (client PrivateEndpointConnectionsClient) GetPreparer(ctx context.Context, resourceGroupName string, scopeName string, privateEndpointConnectionName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (PrivateEndpointConnectionsClient) GetResponder ¶
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 (PrivateEndpointConnectionsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (PrivateEndpointConnectionsClient) ListByPrivateLinkScope ¶
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 (PrivateEndpointConnectionsClient) ListByPrivateLinkScopePreparer ¶
func (client PrivateEndpointConnectionsClient) ListByPrivateLinkScopePreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
ListByPrivateLinkScopePreparer prepares the ListByPrivateLinkScope request.
func (PrivateEndpointConnectionsClient) ListByPrivateLinkScopeResponder ¶
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 (PrivateEndpointConnectionsClient) ListByPrivateLinkScopeSender ¶
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.
type PrivateEndpointConnectionsCreateOrUpdateFuture ¶
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) }
PrivateEndpointConnectionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*PrivateEndpointConnectionsCreateOrUpdateFuture) UnmarshalJSON ¶
func (future *PrivateEndpointConnectionsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type PrivateEndpointConnectionsDeleteFuture ¶
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) }
PrivateEndpointConnectionsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*PrivateEndpointConnectionsDeleteFuture) UnmarshalJSON ¶
func (future *PrivateEndpointConnectionsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type PrivateEndpointServiceConnectionStatus ¶
type PrivateEndpointServiceConnectionStatus string
PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status.
const ( // Approved ... Approved PrivateEndpointServiceConnectionStatus = "Approved" // Pending ... Pending PrivateEndpointServiceConnectionStatus = "Pending" // Rejected ... Rejected PrivateEndpointServiceConnectionStatus = "Rejected" )
func PossiblePrivateEndpointServiceConnectionStatusValues ¶
func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus
PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type.
type PrivateLinkResource ¶
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"` }
PrivateLinkResource a private link resource
func (PrivateLinkResource) MarshalJSON ¶
func (plr PrivateLinkResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateLinkResource.
func (*PrivateLinkResource) UnmarshalJSON ¶
func (plr *PrivateLinkResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for PrivateLinkResource struct.
type PrivateLinkResourceListResult ¶
type PrivateLinkResourceListResult struct { autorest.Response `json:"-"` // Value - Array of private link resources Value *[]PrivateLinkResource `json:"value,omitempty"` }
PrivateLinkResourceListResult a list of private link resources
type PrivateLinkResourceProperties ¶
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"` }
PrivateLinkResourceProperties properties of a private link resource.
func (PrivateLinkResourceProperties) MarshalJSON ¶
func (plrp PrivateLinkResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PrivateLinkResourceProperties.
type PrivateLinkResourcesClient ¶
type PrivateLinkResourcesClient struct {
BaseClient
}
PrivateLinkResourcesClient is the monitor Management Client
func NewPrivateLinkResourcesClient ¶
func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesClient
NewPrivateLinkResourcesClient creates an instance of the PrivateLinkResourcesClient client.
func NewPrivateLinkResourcesClientWithBaseURI ¶
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 (PrivateLinkResourcesClient) Get ¶
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 (PrivateLinkResourcesClient) GetPreparer ¶
func (client PrivateLinkResourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, scopeName string, groupName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (PrivateLinkResourcesClient) GetResponder ¶
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 (PrivateLinkResourcesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (PrivateLinkResourcesClient) ListByPrivateLinkScope ¶
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 (PrivateLinkResourcesClient) ListByPrivateLinkScopePreparer ¶
func (client PrivateLinkResourcesClient) ListByPrivateLinkScopePreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
ListByPrivateLinkScopePreparer prepares the ListByPrivateLinkScope request.
func (PrivateLinkResourcesClient) ListByPrivateLinkScopeResponder ¶
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 (PrivateLinkResourcesClient) ListByPrivateLinkScopeSender ¶
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.
type PrivateLinkScopeOperationStatusClient ¶
type PrivateLinkScopeOperationStatusClient struct {
BaseClient
}
PrivateLinkScopeOperationStatusClient is the monitor Management Client
func NewPrivateLinkScopeOperationStatusClient ¶
func NewPrivateLinkScopeOperationStatusClient(subscriptionID string) PrivateLinkScopeOperationStatusClient
NewPrivateLinkScopeOperationStatusClient creates an instance of the PrivateLinkScopeOperationStatusClient client.
func NewPrivateLinkScopeOperationStatusClientWithBaseURI ¶
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 (PrivateLinkScopeOperationStatusClient) Get ¶
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 (PrivateLinkScopeOperationStatusClient) GetPreparer ¶
func (client PrivateLinkScopeOperationStatusClient) GetPreparer(ctx context.Context, asyncOperationID string, resourceGroupName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (PrivateLinkScopeOperationStatusClient) GetResponder ¶
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.
type PrivateLinkScopedResourcesClient ¶
type PrivateLinkScopedResourcesClient struct {
BaseClient
}
PrivateLinkScopedResourcesClient is the monitor Management Client
func NewPrivateLinkScopedResourcesClient ¶
func NewPrivateLinkScopedResourcesClient(subscriptionID string) PrivateLinkScopedResourcesClient
NewPrivateLinkScopedResourcesClient creates an instance of the PrivateLinkScopedResourcesClient client.
func NewPrivateLinkScopedResourcesClientWithBaseURI ¶
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 (PrivateLinkScopedResourcesClient) CreateOrUpdate ¶
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 (PrivateLinkScopedResourcesClient) CreateOrUpdatePreparer ¶
func (client PrivateLinkScopedResourcesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, scopeName string, name string, parameters ScopedResource) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (PrivateLinkScopedResourcesClient) CreateOrUpdateResponder ¶
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 (PrivateLinkScopedResourcesClient) CreateOrUpdateSender ¶
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 (PrivateLinkScopedResourcesClient) Delete ¶
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 (PrivateLinkScopedResourcesClient) DeletePreparer ¶
func (client PrivateLinkScopedResourcesClient) DeletePreparer(ctx context.Context, resourceGroupName string, scopeName string, name string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (PrivateLinkScopedResourcesClient) DeleteResponder ¶
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 (PrivateLinkScopedResourcesClient) DeleteSender ¶
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 (PrivateLinkScopedResourcesClient) Get ¶
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 (PrivateLinkScopedResourcesClient) GetPreparer ¶
func (client PrivateLinkScopedResourcesClient) GetPreparer(ctx context.Context, resourceGroupName string, scopeName string, name string) (*http.Request, error)
GetPreparer prepares the Get request.
func (PrivateLinkScopedResourcesClient) GetResponder ¶
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 (PrivateLinkScopedResourcesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (PrivateLinkScopedResourcesClient) ListByPrivateLinkScope ¶
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 (PrivateLinkScopedResourcesClient) ListByPrivateLinkScopeComplete ¶
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 (PrivateLinkScopedResourcesClient) ListByPrivateLinkScopePreparer ¶
func (client PrivateLinkScopedResourcesClient) ListByPrivateLinkScopePreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
ListByPrivateLinkScopePreparer prepares the ListByPrivateLinkScope request.
func (PrivateLinkScopedResourcesClient) ListByPrivateLinkScopeResponder ¶
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 (PrivateLinkScopedResourcesClient) ListByPrivateLinkScopeSender ¶
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.
type PrivateLinkScopedResourcesCreateOrUpdateFuture ¶
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) }
PrivateLinkScopedResourcesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*PrivateLinkScopedResourcesCreateOrUpdateFuture) UnmarshalJSON ¶
func (future *PrivateLinkScopedResourcesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type PrivateLinkScopedResourcesDeleteFuture ¶
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) }
PrivateLinkScopedResourcesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*PrivateLinkScopedResourcesDeleteFuture) UnmarshalJSON ¶
func (future *PrivateLinkScopedResourcesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type PrivateLinkScopesClient ¶
type PrivateLinkScopesClient struct {
BaseClient
}
PrivateLinkScopesClient is the monitor Management Client
func NewPrivateLinkScopesClient ¶
func NewPrivateLinkScopesClient(subscriptionID string) PrivateLinkScopesClient
NewPrivateLinkScopesClient creates an instance of the PrivateLinkScopesClient client.
func NewPrivateLinkScopesClientWithBaseURI ¶
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 (PrivateLinkScopesClient) CreateOrUpdate ¶
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 (PrivateLinkScopesClient) CreateOrUpdatePreparer ¶
func (client PrivateLinkScopesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, scopeName string, azureMonitorPrivateLinkScopePayload AzureMonitorPrivateLinkScope) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (PrivateLinkScopesClient) CreateOrUpdateResponder ¶
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 (PrivateLinkScopesClient) CreateOrUpdateSender ¶
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 (PrivateLinkScopesClient) Delete ¶
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 (PrivateLinkScopesClient) DeletePreparer ¶
func (client PrivateLinkScopesClient) DeletePreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (PrivateLinkScopesClient) DeleteResponder ¶
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 (PrivateLinkScopesClient) DeleteSender ¶
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 (PrivateLinkScopesClient) Get ¶
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 (PrivateLinkScopesClient) GetPreparer ¶
func (client PrivateLinkScopesClient) GetPreparer(ctx context.Context, resourceGroupName string, scopeName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (PrivateLinkScopesClient) GetResponder ¶
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 (PrivateLinkScopesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (PrivateLinkScopesClient) List ¶
func (client PrivateLinkScopesClient) List(ctx context.Context) (result AzureMonitorPrivateLinkScopeListResultPage, err error)
List gets a list of all Azure Monitor PrivateLinkScopes within a subscription.
func (PrivateLinkScopesClient) ListByResourceGroup ¶
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 (PrivateLinkScopesClient) ListByResourceGroupComplete ¶
func (client PrivateLinkScopesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result AzureMonitorPrivateLinkScopeListResultIterator, err error)
ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.
func (PrivateLinkScopesClient) ListByResourceGroupPreparer ¶
func (client PrivateLinkScopesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (PrivateLinkScopesClient) ListByResourceGroupResponder ¶
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 (PrivateLinkScopesClient) ListByResourceGroupSender ¶
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 (PrivateLinkScopesClient) ListComplete ¶
func (client PrivateLinkScopesClient) ListComplete(ctx context.Context) (result AzureMonitorPrivateLinkScopeListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (PrivateLinkScopesClient) ListPreparer ¶
ListPreparer prepares the List request.
func (PrivateLinkScopesClient) ListResponder ¶
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 (PrivateLinkScopesClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (PrivateLinkScopesClient) UpdateTags ¶
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 (PrivateLinkScopesClient) UpdateTagsPreparer ¶
func (client PrivateLinkScopesClient) UpdateTagsPreparer(ctx context.Context, resourceGroupName string, scopeName string, privateLinkScopeTags TagsResource) (*http.Request, error)
UpdateTagsPreparer prepares the UpdateTags request.
func (PrivateLinkScopesClient) UpdateTagsResponder ¶
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 (PrivateLinkScopesClient) UpdateTagsSender ¶
UpdateTagsSender sends the UpdateTags request. The method will close the http.Response Body if it receives an error.
type PrivateLinkScopesDeleteFuture ¶
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) }
PrivateLinkScopesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*PrivateLinkScopesDeleteFuture) UnmarshalJSON ¶
func (future *PrivateLinkScopesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type PrivateLinkServiceConnectionState ¶
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"` }
PrivateLinkServiceConnectionState a collection of information about the state of the connection between service consumer and provider.
type ProxyResource ¶
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"` }
ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
func (ProxyResource) MarshalJSON ¶
func (pr ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProxyResource.
type ReceiverStatus ¶
type ReceiverStatus string
ReceiverStatus enumerates the values for receiver status.
const ( // ReceiverStatusDisabled ... ReceiverStatusDisabled ReceiverStatus = "Disabled" // ReceiverStatusEnabled ... ReceiverStatusEnabled ReceiverStatus = "Enabled" // ReceiverStatusNotSpecified ... ReceiverStatusNotSpecified ReceiverStatus = "NotSpecified" )
func PossibleReceiverStatusValues ¶
func PossibleReceiverStatusValues() []ReceiverStatus
PossibleReceiverStatusValues returns an array of possible values for the ReceiverStatus const type.
type Recurrence ¶
type Recurrence struct { // Frequency - the recurrence frequency. How often the schedule profile should take effect. This value must be Week, meaning each week will have the same set of profiles. For example, to set a daily schedule, set **schedule** to every day of the week. The frequency property specifies that the schedule is repeated weekly. Possible values include: '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"` }
Recurrence the repeating times at which this profile begins. This element is not used if the FixedDate element is used.
type RecurrenceFrequency ¶
type RecurrenceFrequency string
RecurrenceFrequency enumerates the values for recurrence frequency.
const ( // 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 ¶
func PossibleRecurrenceFrequencyValues() []RecurrenceFrequency
PossibleRecurrenceFrequencyValues returns an array of possible values for the RecurrenceFrequency const type.
type RecurrentSchedule ¶
type RecurrentSchedule struct { // TimeZone - the timezone for the hours of the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time TimeZone *string `json:"timeZone,omitempty"` // Days - the collection of days that the profile takes effect on. Possible values are Sunday through Saturday. Days *[]string `json:"days,omitempty"` // Hours - A collection of hours that the profile takes effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM times are not supported). Hours *[]int32 `json:"hours,omitempty"` // Minutes - A collection of minutes at which the profile takes effect at. Minutes *[]int32 `json:"minutes,omitempty"` }
RecurrentSchedule the scheduling constraints for when the profile begins.
type Resource ¶
type Resource struct { // ID - READ-ONLY; 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"` }
Resource common fields that are returned in the response for all Azure Resource Manager resources
func (Resource) MarshalJSON ¶
MarshalJSON is the custom marshaler for Resource.
type RetentionPolicy ¶
type RetentionPolicy struct { // Enabled - a value indicating whether the retention policy is enabled. Enabled *bool `json:"enabled,omitempty"` // Days - the number of days for the retention in days. A value of 0 will retain the events indefinitely. Days *int32 `json:"days,omitempty"` }
RetentionPolicy specifies the retention policy for the log.
type ScaleAction ¶
type ScaleAction struct { // Direction - the scale direction. Whether the scaling action increases or decreases the number of instances. Possible values include: 'ScaleDirectionNone', 'ScaleDirectionIncrease', 'ScaleDirectionDecrease' Direction ScaleDirection `json:"direction,omitempty"` // Type - the type of action that should occur when the scale rule fires. Possible values include: 'ChangeCount', 'PercentChangeCount', 'ExactCount', '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"` }
ScaleAction the parameters for the scaling action.
type ScaleCapacity ¶
type ScaleCapacity struct { // Minimum - the minimum number of instances for the resource. Minimum *string `json:"minimum,omitempty"` // Maximum - the maximum number of instances for the resource. The actual maximum number of instances is limited by the cores that are available in the subscription. Maximum *string `json:"maximum,omitempty"` // Default - the number of instances that will be set if metrics are not available for evaluation. The default is only used if the current instance count is lower than the default. Default *string `json:"default,omitempty"` }
ScaleCapacity the number of instances that can be used during this profile.
type ScaleDirection ¶
type ScaleDirection string
ScaleDirection enumerates the values for scale direction.
const ( // ScaleDirectionDecrease ... ScaleDirectionDecrease ScaleDirection = "Decrease" // ScaleDirectionIncrease ... ScaleDirectionIncrease ScaleDirection = "Increase" // ScaleDirectionNone ... ScaleDirectionNone ScaleDirection = "None" )
func PossibleScaleDirectionValues ¶
func PossibleScaleDirectionValues() []ScaleDirection
PossibleScaleDirectionValues returns an array of possible values for the ScaleDirection const type.
type ScaleRule ¶
type ScaleRule struct { // MetricTrigger - the trigger that results in a scaling action. MetricTrigger *MetricTrigger `json:"metricTrigger,omitempty"` // ScaleAction - the parameters for the scaling action. ScaleAction *ScaleAction `json:"scaleAction,omitempty"` }
ScaleRule a rule that provide the triggers and parameters for the scaling action.
type ScaleRuleMetricDimension ¶
type ScaleRuleMetricDimension struct { // DimensionName - Name of the dimension. DimensionName *string `json:"DimensionName,omitempty"` // Operator - the dimension operator. Only 'Equals' and 'NotEquals' are supported. 'Equals' being equal to any of the values. 'NotEquals' being not equal to all of the values. Possible values include: 'ScaleRuleMetricDimensionOperationTypeEquals', 'ScaleRuleMetricDimensionOperationTypeNotEquals' Operator ScaleRuleMetricDimensionOperationType `json:"Operator,omitempty"` // Values - list of dimension values. For example: ["App1","App2"]. Values *[]string `json:"Values,omitempty"` }
ScaleRuleMetricDimension specifies an auto scale rule metric dimension.
type ScaleRuleMetricDimensionOperationType ¶
type ScaleRuleMetricDimensionOperationType string
ScaleRuleMetricDimensionOperationType enumerates the values for scale rule metric dimension operation type.
const ( // ScaleRuleMetricDimensionOperationTypeEquals ... ScaleRuleMetricDimensionOperationTypeEquals ScaleRuleMetricDimensionOperationType = "Equals" // ScaleRuleMetricDimensionOperationTypeNotEquals ... ScaleRuleMetricDimensionOperationTypeNotEquals ScaleRuleMetricDimensionOperationType = "NotEquals" )
func PossibleScaleRuleMetricDimensionOperationTypeValues ¶
func PossibleScaleRuleMetricDimensionOperationTypeValues() []ScaleRuleMetricDimensionOperationType
PossibleScaleRuleMetricDimensionOperationTypeValues returns an array of possible values for the ScaleRuleMetricDimensionOperationType const type.
type ScaleType ¶
type ScaleType string
ScaleType enumerates the values for scale type.
func PossibleScaleTypeValues ¶
func PossibleScaleTypeValues() []ScaleType
PossibleScaleTypeValues returns an array of possible values for the ScaleType const type.
type ScopedResource ¶
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"` }
ScopedResource a private link scoped resource
func (ScopedResource) MarshalJSON ¶
func (sr ScopedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ScopedResource.
func (*ScopedResource) UnmarshalJSON ¶
func (sr *ScopedResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ScopedResource struct.
type ScopedResourceListResult ¶
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"` }
ScopedResourceListResult a list of scoped resources in a private link scope.
func (ScopedResourceListResult) IsEmpty ¶
func (srlr ScopedResourceListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (ScopedResourceListResult) MarshalJSON ¶
func (srlr ScopedResourceListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ScopedResourceListResult.
type ScopedResourceListResultIterator ¶
type ScopedResourceListResultIterator struct {
// contains filtered or unexported fields
}
ScopedResourceListResultIterator provides access to a complete listing of ScopedResource values.
func NewScopedResourceListResultIterator ¶
func NewScopedResourceListResultIterator(page ScopedResourceListResultPage) ScopedResourceListResultIterator
Creates a new instance of the ScopedResourceListResultIterator type.
func (*ScopedResourceListResultIterator) Next ¶
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 (*ScopedResourceListResultIterator) NextWithContext ¶
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 (ScopedResourceListResultIterator) NotDone ¶
func (iter ScopedResourceListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ScopedResourceListResultIterator) Response ¶
func (iter ScopedResourceListResultIterator) Response() ScopedResourceListResult
Response returns the raw server response from the last page request.
func (ScopedResourceListResultIterator) Value ¶
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.
type ScopedResourceListResultPage ¶
type ScopedResourceListResultPage struct {
// contains filtered or unexported fields
}
ScopedResourceListResultPage contains a page of ScopedResource values.
func NewScopedResourceListResultPage ¶
func NewScopedResourceListResultPage(cur ScopedResourceListResult, getNextPage func(context.Context, ScopedResourceListResult) (ScopedResourceListResult, error)) ScopedResourceListResultPage
Creates a new instance of the ScopedResourceListResultPage type.
func (*ScopedResourceListResultPage) Next ¶
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 (*ScopedResourceListResultPage) NextWithContext ¶
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 (ScopedResourceListResultPage) NotDone ¶
func (page ScopedResourceListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ScopedResourceListResultPage) Response ¶
func (page ScopedResourceListResultPage) Response() ScopedResourceListResult
Response returns the raw server response from the last page request.
func (ScopedResourceListResultPage) Values ¶
func (page ScopedResourceListResultPage) Values() []ScopedResource
Values returns the slice of values for the current page or nil if there are no values.
type ScopedResourceProperties ¶
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"` }
ScopedResourceProperties properties of a private link scoped resource.
func (ScopedResourceProperties) MarshalJSON ¶
func (srp ScopedResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ScopedResourceProperties.
type 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"` }
Settings the diagnostic settings.
type SettingsCategory ¶
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"` }
SettingsCategory the diagnostic settings Category.
type SettingsCategoryClient ¶
type SettingsCategoryClient struct {
BaseClient
}
SettingsCategoryClient is the monitor Management Client
func NewSettingsCategoryClient ¶
func NewSettingsCategoryClient(subscriptionID string) SettingsCategoryClient
NewSettingsCategoryClient creates an instance of the SettingsCategoryClient client.
func NewSettingsCategoryClientWithBaseURI ¶
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 (SettingsCategoryClient) Get ¶
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 (SettingsCategoryClient) GetPreparer ¶
func (client SettingsCategoryClient) GetPreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error)
GetPreparer prepares the Get request.
func (SettingsCategoryClient) GetResponder ¶
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 (SettingsCategoryClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (SettingsCategoryClient) List ¶
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 (SettingsCategoryClient) ListPreparer ¶
func (client SettingsCategoryClient) ListPreparer(ctx context.Context, resourceURI string) (*http.Request, error)
ListPreparer prepares the List request.
func (SettingsCategoryClient) ListResponder ¶
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 (SettingsCategoryClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type SettingsCategoryResource ¶
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"` }
SettingsCategoryResource the diagnostic settings category resource.
func (SettingsCategoryResource) MarshalJSON ¶
func (scr SettingsCategoryResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SettingsCategoryResource.
func (*SettingsCategoryResource) UnmarshalJSON ¶
func (scr *SettingsCategoryResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SettingsCategoryResource struct.
type SettingsCategoryResourceCollection ¶
type SettingsCategoryResourceCollection struct { autorest.Response `json:"-"` // Value - The collection of diagnostic settings category resources. Value *[]SettingsCategoryResource `json:"value,omitempty"` }
SettingsCategoryResourceCollection represents a collection of diagnostic setting category resources.
type SettingsClient ¶
type SettingsClient struct {
BaseClient
}
SettingsClient is the monitor Management Client
func NewSettingsClient ¶
func NewSettingsClient(subscriptionID string) SettingsClient
NewSettingsClient creates an instance of the SettingsClient client.
func NewSettingsClientWithBaseURI ¶
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 (SettingsClient) CreateOrUpdate ¶
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 (SettingsClient) CreateOrUpdatePreparer ¶
func (client SettingsClient) CreateOrUpdatePreparer(ctx context.Context, resourceURI string, parameters SettingsResource, name string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (SettingsClient) CreateOrUpdateResponder ¶
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 (SettingsClient) CreateOrUpdateSender ¶
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (SettingsClient) Delete ¶
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 (SettingsClient) DeletePreparer ¶
func (client SettingsClient) DeletePreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (SettingsClient) DeleteResponder ¶
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 (SettingsClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (SettingsClient) Get ¶
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 (SettingsClient) GetPreparer ¶
func (client SettingsClient) GetPreparer(ctx context.Context, resourceURI string, name string) (*http.Request, error)
GetPreparer prepares the Get request.
func (SettingsClient) GetResponder ¶
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 (SettingsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (SettingsClient) List ¶
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 (SettingsClient) ListPreparer ¶
func (client SettingsClient) ListPreparer(ctx context.Context, resourceURI string) (*http.Request, error)
ListPreparer prepares the List request.
func (SettingsClient) ListResponder ¶
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 (SettingsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type SettingsResource ¶
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"` }
SettingsResource the diagnostic setting resource.
func (SettingsResource) MarshalJSON ¶
func (sr SettingsResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SettingsResource.
func (*SettingsResource) UnmarshalJSON ¶
func (sr *SettingsResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SettingsResource struct.
type SettingsResourceCollection ¶
type SettingsResourceCollection struct { autorest.Response `json:"-"` // Value - The collection of diagnostic settings resources;. Value *[]SettingsResource `json:"value,omitempty"` }
SettingsResourceCollection represents a collection of alert rule resources.
type SmsReceiver ¶
type SmsReceiver struct { // Name - The name of the SMS receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // CountryCode - The country code of the SMS receiver. CountryCode *string `json:"countryCode,omitempty"` // PhoneNumber - The phone number of the SMS receiver. PhoneNumber *string `json:"phoneNumber,omitempty"` // Status - READ-ONLY; The status of the receiver. Possible values include: 'ReceiverStatusNotSpecified', 'ReceiverStatusEnabled', 'ReceiverStatusDisabled' Status ReceiverStatus `json:"status,omitempty"` }
SmsReceiver an SMS receiver.
func (SmsReceiver) MarshalJSON ¶
func (sr SmsReceiver) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SmsReceiver.
type SubscriptionDiagnosticSettings ¶
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"` }
SubscriptionDiagnosticSettings the subscription diagnostic settings.
type SubscriptionDiagnosticSettingsClient ¶
type SubscriptionDiagnosticSettingsClient struct {
BaseClient
}
SubscriptionDiagnosticSettingsClient is the monitor Management Client
func NewSubscriptionDiagnosticSettingsClient ¶
func NewSubscriptionDiagnosticSettingsClient(subscriptionID string) SubscriptionDiagnosticSettingsClient
NewSubscriptionDiagnosticSettingsClient creates an instance of the SubscriptionDiagnosticSettingsClient client.
func NewSubscriptionDiagnosticSettingsClientWithBaseURI ¶
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 (SubscriptionDiagnosticSettingsClient) CreateOrUpdate ¶
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 (SubscriptionDiagnosticSettingsClient) CreateOrUpdatePreparer ¶
func (client SubscriptionDiagnosticSettingsClient) CreateOrUpdatePreparer(ctx context.Context, parameters SubscriptionDiagnosticSettingsResource, name string) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (SubscriptionDiagnosticSettingsClient) CreateOrUpdateResponder ¶
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 (SubscriptionDiagnosticSettingsClient) CreateOrUpdateSender ¶
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 (SubscriptionDiagnosticSettingsClient) Delete ¶
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 (SubscriptionDiagnosticSettingsClient) DeletePreparer ¶
func (client SubscriptionDiagnosticSettingsClient) DeletePreparer(ctx context.Context, name string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (SubscriptionDiagnosticSettingsClient) DeleteResponder ¶
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 (SubscriptionDiagnosticSettingsClient) DeleteSender ¶
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 (SubscriptionDiagnosticSettingsClient) Get ¶
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 (SubscriptionDiagnosticSettingsClient) GetPreparer ¶
func (client SubscriptionDiagnosticSettingsClient) GetPreparer(ctx context.Context, name string) (*http.Request, error)
GetPreparer prepares the Get request.
func (SubscriptionDiagnosticSettingsClient) GetResponder ¶
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 (SubscriptionDiagnosticSettingsClient) GetSender ¶
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 (SubscriptionDiagnosticSettingsClient) List ¶
func (client SubscriptionDiagnosticSettingsClient) List(ctx context.Context) (result SubscriptionDiagnosticSettingsResourceCollection, err error)
List gets the active subscription diagnostic settings list for the specified subscriptionId.
func (SubscriptionDiagnosticSettingsClient) ListPreparer ¶
func (client SubscriptionDiagnosticSettingsClient) ListPreparer(ctx context.Context) (*http.Request, error)
ListPreparer prepares the List request.
func (SubscriptionDiagnosticSettingsClient) ListResponder ¶
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 (SubscriptionDiagnosticSettingsClient) ListSender ¶
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.
type SubscriptionDiagnosticSettingsResource ¶
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"` }
SubscriptionDiagnosticSettingsResource the subscription diagnostic setting resource.
func (SubscriptionDiagnosticSettingsResource) MarshalJSON ¶
func (sdsr SubscriptionDiagnosticSettingsResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SubscriptionDiagnosticSettingsResource.
func (*SubscriptionDiagnosticSettingsResource) UnmarshalJSON ¶
func (sdsr *SubscriptionDiagnosticSettingsResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for SubscriptionDiagnosticSettingsResource struct.
type SubscriptionDiagnosticSettingsResourceCollection ¶
type SubscriptionDiagnosticSettingsResourceCollection struct { autorest.Response `json:"-"` // Value - The collection of subscription diagnostic settings resources. Value *[]SubscriptionDiagnosticSettingsResource `json:"value,omitempty"` }
SubscriptionDiagnosticSettingsResourceCollection represents a collection of subscription diagnostic settings resources.
type SubscriptionLogSettings ¶
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"` }
SubscriptionLogSettings part of Subscription diagnostic setting. Specifies the settings for a particular log.
type SystemData ¶
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"` }
SystemData metadata pertaining to creation and last modification of the resource.
type TagsResource ¶
TagsResource a container holding only the Tags for a resource, allowing the user to update the tags on a PrivateLinkScope instance.
func (TagsResource) MarshalJSON ¶
func (tr TagsResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TagsResource.
type TestNotificationDetailsResponse ¶
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"` }
TestNotificationDetailsResponse the details of the test notification results.
type TimeAggregationType ¶
type TimeAggregationType string
TimeAggregationType enumerates the values for time aggregation type.
const ( // TimeAggregationTypeAverage ... TimeAggregationTypeAverage TimeAggregationType = "Average" // TimeAggregationTypeCount ... TimeAggregationTypeCount TimeAggregationType = "Count" // TimeAggregationTypeLast ... TimeAggregationTypeLast TimeAggregationType = "Last" // TimeAggregationTypeMaximum ... TimeAggregationTypeMaximum TimeAggregationType = "Maximum" // TimeAggregationTypeMinimum ... TimeAggregationTypeMinimum TimeAggregationType = "Minimum" // TimeAggregationTypeTotal ... TimeAggregationTypeTotal TimeAggregationType = "Total" )
func PossibleTimeAggregationTypeValues ¶
func PossibleTimeAggregationTypeValues() []TimeAggregationType
PossibleTimeAggregationTypeValues returns an array of possible values for the TimeAggregationType const type.
type TimeWindow ¶
type TimeWindow struct { // TimeZone - the timezone of the start and end times for the profile. Some examples of valid time zones are: Dateline Standard Time, UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard Time (Mexico), Pacific Standard Time, US Mountain Standard Time, Mountain Standard Time (Mexico), Mountain Standard Time, Central America Standard Time, Central Standard Time, Central Standard Time (Mexico), Canada Central Standard Time, SA Pacific Standard Time, Eastern Standard Time, US Eastern Standard Time, Venezuela Standard Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian Standard Time, SA Western Standard Time, Pacific SA Standard Time, Newfoundland Standard Time, E. South America Standard Time, Argentina Standard Time, SA Eastern Standard Time, Greenland Standard Time, Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W. Europe Standard Time, Central Europe Standard Time, Romance Standard Time, Central European Standard Time, W. Central Africa Standard Time, Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe Standard Time, South Africa Standard Time, FLE Standard Time, Turkey Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya Standard Time, Arabic Standard Time, Arab Standard Time, Belarus Standard Time, Russian Standard Time, E. Africa Standard Time, Iran Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus Standard Time, Afghanistan Standard Time, West Asia Standard Time, Ekaterinburg Standard Time, Pakistan Standard Time, India Standard Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time, Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time, China Standard Time, North Asia East Standard Time, Singapore Standard Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk Standard Time, Cen. Australia Standard Time, AUS Central Standard Time, E. Australia Standard Time, AUS Eastern Standard Time, West Pacific Standard Time, Tasmania Standard Time, Magadan Standard Time, Vladivostok Standard Time, Russia Time Zone 10, Central Pacific Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12, Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa Standard Time, Line Islands Standard Time TimeZone *string `json:"timeZone,omitempty"` // Start - the start time for the profile in ISO 8601 format. Start *date.Time `json:"start,omitempty"` // End - the end time for the profile in ISO 8601 format. End *date.Time `json:"end,omitempty"` }
TimeWindow a specific date-time for the profile.
type TrackedResource ¶
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"` }
TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
func (TrackedResource) MarshalJSON ¶
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
type VoiceReceiver ¶
type VoiceReceiver struct { // Name - The name of the voice receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // CountryCode - The country code of the voice receiver. CountryCode *string `json:"countryCode,omitempty"` // PhoneNumber - The phone number of the voice receiver. PhoneNumber *string `json:"phoneNumber,omitempty"` }
VoiceReceiver a voice receiver.
type WebhookNotification ¶
type WebhookNotification struct { // ServiceURI - the service address to receive the notification. ServiceURI *string `json:"serviceUri,omitempty"` // Properties - a property bag of settings. This value can be empty. Properties map[string]*string `json:"properties"` }
WebhookNotification webhook notification of an autoscale event.
func (WebhookNotification) MarshalJSON ¶
func (wn WebhookNotification) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for WebhookNotification.
type WebhookReceiver ¶
type WebhookReceiver struct { // Name - The name of the webhook receiver. Names must be unique across all receivers within an action group. Name *string `json:"name,omitempty"` // ServiceURI - The URI where webhooks should be sent. ServiceURI *string `json:"serviceUri,omitempty"` // 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"` }
WebhookReceiver a webhook receiver.
Source Files ¶
- actiongroups.go
- autoscalesettings.go
- client.go
- enums.go
- managementgroupdiagnosticsettings.go
- models.go
- predictivemetric.go
- privateendpointconnections.go
- privatelinkresources.go
- privatelinkscopedresources.go
- privatelinkscopeoperationstatus.go
- privatelinkscopes.go
- settings.go
- settingscategory.go
- subscriptiondiagnosticsettings.go
- version.go