Documentation ¶
Overview ¶
Package workloadmonitor implements the Azure ARM Workloadmonitor service API version 2018-08-31-preview.
APIs for workload monitoring
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type AlertGeneration
- type AzureEntityResource
- type BaseClient
- type Component
- type ComponentProperties
- type ComponentsClient
- func (client ComponentsClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (result Component, err error)
- func (client ComponentsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (*http.Request, error)
- func (client ComponentsClient) GetResponder(resp *http.Response) (result Component, err error)
- func (client ComponentsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ComponentsClient) ListByResource(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (result ComponentsCollectionPage, err error)
- func (client ComponentsClient) ListByResourceComplete(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (result ComponentsCollectionIterator, err error)
- func (client ComponentsClient) ListByResourcePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (*http.Request, error)
- func (client ComponentsClient) ListByResourceResponder(resp *http.Response) (result ComponentsCollection, err error)
- func (client ComponentsClient) ListByResourceSender(req *http.Request) (*http.Response, error)
- type ComponentsCollection
- type ComponentsCollectionIterator
- func (iter *ComponentsCollectionIterator) Next() error
- func (iter *ComponentsCollectionIterator) NextWithContext(ctx context.Context) (err error)
- func (iter ComponentsCollectionIterator) NotDone() bool
- func (iter ComponentsCollectionIterator) Response() ComponentsCollection
- func (iter ComponentsCollectionIterator) Value() Component
- type ComponentsCollectionPage
- func (page *ComponentsCollectionPage) Next() error
- func (page *ComponentsCollectionPage) NextWithContext(ctx context.Context) (err error)
- func (page ComponentsCollectionPage) NotDone() bool
- func (page ComponentsCollectionPage) Response() ComponentsCollection
- func (page ComponentsCollectionPage) Values() []Component
- type ComponentsSummaryClient
- func (client ComponentsSummaryClient) List(ctx context.Context, selectParameter string, filter string, apply string, ...) (result ComponentsCollectionPage, err error)
- func (client ComponentsSummaryClient) ListComplete(ctx context.Context, selectParameter string, filter string, apply string, ...) (result ComponentsCollectionIterator, err error)
- func (client ComponentsSummaryClient) ListPreparer(ctx context.Context, selectParameter string, filter string, apply string, ...) (*http.Request, error)
- func (client ComponentsSummaryClient) ListResponder(resp *http.Response) (result ComponentsCollection, err error)
- func (client ComponentsSummaryClient) ListSender(req *http.Request) (*http.Response, error)
- type ErrorFieldContract
- type ErrorResponse
- type HealthState
- type HealthStateCategory
- type HealthStateChange
- type Monitor
- type MonitorCategory
- type MonitorCriteria
- type MonitorInstance
- type MonitorInstanceProperties
- type MonitorInstancesClient
- func (client MonitorInstancesClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (result MonitorInstance, err error)
- func (client MonitorInstancesClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (*http.Request, error)
- func (client MonitorInstancesClient) GetResponder(resp *http.Response) (result MonitorInstance, err error)
- func (client MonitorInstancesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client MonitorInstancesClient) ListByResource(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (result MonitorInstancesCollectionPage, err error)
- func (client MonitorInstancesClient) ListByResourceComplete(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (result MonitorInstancesCollectionIterator, err error)
- func (client MonitorInstancesClient) ListByResourcePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (*http.Request, error)
- func (client MonitorInstancesClient) ListByResourceResponder(resp *http.Response) (result MonitorInstancesCollection, err error)
- func (client MonitorInstancesClient) ListByResourceSender(req *http.Request) (*http.Response, error)
- type MonitorInstancesCollection
- type MonitorInstancesCollectionIterator
- func (iter *MonitorInstancesCollectionIterator) Next() error
- func (iter *MonitorInstancesCollectionIterator) NextWithContext(ctx context.Context) (err error)
- func (iter MonitorInstancesCollectionIterator) NotDone() bool
- func (iter MonitorInstancesCollectionIterator) Response() MonitorInstancesCollection
- func (iter MonitorInstancesCollectionIterator) Value() MonitorInstance
- type MonitorInstancesCollectionPage
- func (page *MonitorInstancesCollectionPage) Next() error
- func (page *MonitorInstancesCollectionPage) NextWithContext(ctx context.Context) (err error)
- func (page MonitorInstancesCollectionPage) NotDone() bool
- func (page MonitorInstancesCollectionPage) Response() MonitorInstancesCollection
- func (page MonitorInstancesCollectionPage) Values() []MonitorInstance
- type MonitorInstancesSummaryClient
- func (client MonitorInstancesSummaryClient) List(ctx context.Context, selectParameter string, filter string, apply string, ...) (result MonitorInstancesCollectionPage, err error)
- func (client MonitorInstancesSummaryClient) ListComplete(ctx context.Context, selectParameter string, filter string, apply string, ...) (result MonitorInstancesCollectionIterator, err error)
- func (client MonitorInstancesSummaryClient) ListPreparer(ctx context.Context, selectParameter string, filter string, apply string, ...) (*http.Request, error)
- func (client MonitorInstancesSummaryClient) ListResponder(resp *http.Response) (result MonitorInstancesCollection, err error)
- func (client MonitorInstancesSummaryClient) ListSender(req *http.Request) (*http.Response, error)
- type MonitorProperties
- type MonitorState
- type MonitorType
- type MonitorsClient
- func (client MonitorsClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (result Monitor, err error)
- func (client MonitorsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (*http.Request, error)
- func (client MonitorsClient) GetResponder(resp *http.Response) (result Monitor, err error)
- func (client MonitorsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client MonitorsClient) ListByResource(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (result MonitorsCollectionPage, err error)
- func (client MonitorsClient) ListByResourceComplete(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (result MonitorsCollectionIterator, err error)
- func (client MonitorsClient) ListByResourcePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (*http.Request, error)
- func (client MonitorsClient) ListByResourceResponder(resp *http.Response) (result MonitorsCollection, err error)
- func (client MonitorsClient) ListByResourceSender(req *http.Request) (*http.Response, error)
- func (client MonitorsClient) Update(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (result Monitor, err error)
- func (client MonitorsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (*http.Request, error)
- func (client MonitorsClient) UpdateResponder(resp *http.Response) (result Monitor, err error)
- func (client MonitorsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type MonitorsCollection
- type MonitorsCollectionIterator
- func (iter *MonitorsCollectionIterator) Next() error
- func (iter *MonitorsCollectionIterator) NextWithContext(ctx context.Context) (err error)
- func (iter MonitorsCollectionIterator) NotDone() bool
- func (iter MonitorsCollectionIterator) Response() MonitorsCollection
- func (iter MonitorsCollectionIterator) Value() Monitor
- type MonitorsCollectionPage
- func (page *MonitorsCollectionPage) Next() error
- func (page *MonitorsCollectionPage) NextWithContext(ctx context.Context) (err error)
- func (page MonitorsCollectionPage) NotDone() bool
- func (page MonitorsCollectionPage) Response() MonitorsCollection
- func (page MonitorsCollectionPage) Values() []Monitor
- type NotificationSetting
- type NotificationSettingProperties
- type NotificationSettingsClient
- func (client NotificationSettingsClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (result NotificationSetting, err error)
- func (client NotificationSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (*http.Request, error)
- func (client NotificationSettingsClient) GetResponder(resp *http.Response) (result NotificationSetting, err error)
- func (client NotificationSettingsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client NotificationSettingsClient) ListByResource(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (result NotificationSettingsCollectionPage, err error)
- func (client NotificationSettingsClient) ListByResourceComplete(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (result NotificationSettingsCollectionIterator, err error)
- func (client NotificationSettingsClient) ListByResourcePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (*http.Request, error)
- func (client NotificationSettingsClient) ListByResourceResponder(resp *http.Response) (result NotificationSettingsCollection, err error)
- func (client NotificationSettingsClient) ListByResourceSender(req *http.Request) (*http.Response, error)
- func (client NotificationSettingsClient) Update(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (result NotificationSetting, err error)
- func (client NotificationSettingsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, ...) (*http.Request, error)
- func (client NotificationSettingsClient) UpdateResponder(resp *http.Response) (result NotificationSetting, err error)
- func (client NotificationSettingsClient) UpdateSender(req *http.Request) (*http.Response, error)
- type NotificationSettingsCollection
- type NotificationSettingsCollectionIterator
- func (iter *NotificationSettingsCollectionIterator) Next() error
- func (iter *NotificationSettingsCollectionIterator) NextWithContext(ctx context.Context) (err error)
- func (iter NotificationSettingsCollectionIterator) NotDone() bool
- func (iter NotificationSettingsCollectionIterator) Response() NotificationSettingsCollection
- func (iter NotificationSettingsCollectionIterator) Value() NotificationSetting
- type NotificationSettingsCollectionPage
- func (page *NotificationSettingsCollectionPage) Next() error
- func (page *NotificationSettingsCollectionPage) NextWithContext(ctx context.Context) (err error)
- func (page NotificationSettingsCollectionPage) NotDone() bool
- func (page NotificationSettingsCollectionPage) Response() NotificationSettingsCollection
- func (page NotificationSettingsCollectionPage) Values() []NotificationSetting
- type Operation
- type OperationListResult
- type OperationListResultIterator
- func (iter *OperationListResultIterator) Next() error
- func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter OperationListResultIterator) NotDone() bool
- func (iter OperationListResultIterator) Response() OperationListResult
- func (iter OperationListResultIterator) Value() Operation
- type OperationListResultPage
- func (page *OperationListResultPage) Next() error
- func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page OperationListResultPage) NotDone() bool
- func (page OperationListResultPage) Response() OperationListResult
- func (page OperationListResultPage) Values() []Operation
- type OperationProperties
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context, skiptoken string) (result OperationListResultPage, err error)
- func (client OperationsClient) ListComplete(ctx context.Context, skiptoken string) (result OperationListResultIterator, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context, skiptoken string) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type Operator
- type ProxyResource
- type Resource
- type TrackedResource
- type WorkloadType
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Workloadmonitor
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 AlertGeneration ¶
type AlertGeneration string
AlertGeneration enumerates the values for alert generation.
const ( // Disabled ... Disabled AlertGeneration = "Disabled" // Enabled ... Enabled AlertGeneration = "Enabled" )
func PossibleAlertGenerationValues ¶
func PossibleAlertGenerationValues() []AlertGeneration
PossibleAlertGenerationValues returns an array of possible values for the AlertGeneration const type.
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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
AzureEntityResource the resource model definition for a Azure Resource Manager resource with an etag.
type BaseClient ¶
BaseClient is the base client for Workloadmonitor.
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.
type Component ¶
type Component struct { autorest.Response `json:"-"` // Etag - READ-ONLY; For optimistic concurrency control. Etag *string `json:"etag,omitempty"` // ComponentProperties - READ-ONLY; Properties of the component. *ComponentProperties `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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
Component model for component.
func (Component) MarshalJSON ¶
MarshalJSON is the custom marshaler for Component.
func (*Component) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Component struct.
type ComponentProperties ¶
type ComponentProperties struct { // WorkspaceID - READ-ONLY; ID of the workspace. WorkspaceID *string `json:"workspaceId,omitempty"` // SolutionID - READ-ONLY; ID of the OMS solution this component belong to. SolutionID *string `json:"solutionId,omitempty"` // WorkloadType - READ-ONLY; Type of the workload. Possible values include: 'BaseOS', 'SQL', 'IIS', 'Apache' WorkloadType WorkloadType `json:"workloadType,omitempty"` // ComponentName - READ-ONLY; Name of the component. ComponentName *string `json:"componentName,omitempty"` // ComponentTypeID - READ-ONLY; ID of the component type. ComponentTypeID *string `json:"componentTypeId,omitempty"` // ComponentTypeName - READ-ONLY; Name of the component type. Qualifies the type of component such as whether it is a SQL database, logical disk, website, etc. ComponentTypeName *string `json:"componentTypeName,omitempty"` // ComponentTypeGroupCategory - READ-ONLY; Component type group category. Classification of component type groups into a logical category. e.g. Network, Disk, Memory, CPU. ComponentTypeGroupCategory *string `json:"componentTypeGroupCategory,omitempty"` // HealthState - READ-ONLY; Health state of the component. Possible values include: 'Error', 'Warning', 'Success', 'Unknown', 'Uninitialized' HealthState HealthState `json:"healthState,omitempty"` // HealthStateCategory - READ-ONLY; Category of component's health state. Possible values include: 'Identity', 'CustomGroup' HealthStateCategory HealthStateCategory `json:"healthStateCategory,omitempty"` // HealthStateChangesStartTime - READ-ONLY; Start time for health state changes. HealthStateChangesStartTime *date.Time `json:"healthStateChangesStartTime,omitempty"` // HealthStateChangesEndTime - READ-ONLY; End time for health state changes. HealthStateChangesEndTime *date.Time `json:"healthStateChangesEndTime,omitempty"` // LastHealthStateChangeTime - READ-ONLY; Time of last health state change. LastHealthStateChangeTime *date.Time `json:"lastHealthStateChangeTime,omitempty"` // VMID - READ-ONLY; ID of the VM this component belongs to. VMID *string `json:"vmId,omitempty"` // VMName - READ-ONLY; Name of the VM this component belongs to. VMName *string `json:"vmName,omitempty"` // VMTags - READ-ONLY; Tags on the VM this component belongs to. VMTags map[string]*string `json:"vmTags"` // AggregateProperties - READ-ONLY; Properties requested in aggregation queries. AggregateProperties map[string]*string `json:"aggregateProperties"` // Children - READ-ONLY; component children. Children *[]Component `json:"children,omitempty"` }
ComponentProperties model for properties of a component.
func (ComponentProperties) MarshalJSON ¶
func (cp ComponentProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ComponentProperties.
type ComponentsClient ¶
type ComponentsClient struct {
BaseClient
}
ComponentsClient is the aPIs for workload monitoring
func NewComponentsClient ¶
func NewComponentsClient(subscriptionID string) ComponentsClient
NewComponentsClient creates an instance of the ComponentsClient client.
func NewComponentsClientWithBaseURI ¶
func NewComponentsClientWithBaseURI(baseURI string, subscriptionID string) ComponentsClient
NewComponentsClientWithBaseURI creates an instance of the ComponentsClient client.
func (ComponentsClient) Get ¶
func (client ComponentsClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, componentID uuid.UUID, selectParameter string, expand string) (result Component, err error)
Get sends the get request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource. componentID - component Id. selectParameter - properties to be returned in the response. expand - include properties inline in the response.
func (ComponentsClient) GetPreparer ¶
func (client ComponentsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, componentID uuid.UUID, selectParameter string, expand string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ComponentsClient) GetResponder ¶
func (client ComponentsClient) GetResponder(resp *http.Response) (result Component, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ComponentsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ComponentsClient) ListByResource ¶
func (client ComponentsClient) ListByResource(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, selectParameter string, filter string, apply string, orderby string, expand string, top string, skiptoken string) (result ComponentsCollectionPage, err error)
ListByResource sends the list by resource request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource. selectParameter - properties to be returned in the response. filter - filter to be applied on the operation. apply - apply aggregation. orderby - sort the result on one or more properties. expand - include properties inline in the response. top - limit the result to the specified number of rows. skiptoken - the page-continuation token to use with a paged version of this API.
func (ComponentsClient) ListByResourceComplete ¶
func (client ComponentsClient) ListByResourceComplete(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, selectParameter string, filter string, apply string, orderby string, expand string, top string, skiptoken string) (result ComponentsCollectionIterator, err error)
ListByResourceComplete enumerates all values, automatically crossing page boundaries as required.
func (ComponentsClient) ListByResourcePreparer ¶
func (client ComponentsClient) ListByResourcePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, selectParameter string, filter string, apply string, orderby string, expand string, top string, skiptoken string) (*http.Request, error)
ListByResourcePreparer prepares the ListByResource request.
func (ComponentsClient) ListByResourceResponder ¶
func (client ComponentsClient) ListByResourceResponder(resp *http.Response) (result ComponentsCollection, err error)
ListByResourceResponder handles the response to the ListByResource request. The method always closes the http.Response Body.
func (ComponentsClient) ListByResourceSender ¶
ListByResourceSender sends the ListByResource request. The method will close the http.Response Body if it receives an error.
type ComponentsCollection ¶
type ComponentsCollection struct { autorest.Response `json:"-"` // NextLink - READ-ONLY; URL to the next set of results. NextLink *string `json:"nextLink,omitempty"` // Value - READ-ONLY; Collection of components. Value *[]Component `json:"value,omitempty"` }
ComponentsCollection model for collection of components.
func (ComponentsCollection) IsEmpty ¶
func (cc ComponentsCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type ComponentsCollectionIterator ¶
type ComponentsCollectionIterator struct {
// contains filtered or unexported fields
}
ComponentsCollectionIterator provides access to a complete listing of Component values.
func NewComponentsCollectionIterator ¶
func NewComponentsCollectionIterator(page ComponentsCollectionPage) ComponentsCollectionIterator
Creates a new instance of the ComponentsCollectionIterator type.
func (*ComponentsCollectionIterator) Next ¶
func (iter *ComponentsCollectionIterator) 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 (*ComponentsCollectionIterator) NextWithContext ¶
func (iter *ComponentsCollectionIterator) 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 (ComponentsCollectionIterator) NotDone ¶
func (iter ComponentsCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (ComponentsCollectionIterator) Response ¶
func (iter ComponentsCollectionIterator) Response() ComponentsCollection
Response returns the raw server response from the last page request.
func (ComponentsCollectionIterator) Value ¶
func (iter ComponentsCollectionIterator) Value() Component
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type ComponentsCollectionPage ¶
type ComponentsCollectionPage struct {
// contains filtered or unexported fields
}
ComponentsCollectionPage contains a page of Component values.
func NewComponentsCollectionPage ¶
func NewComponentsCollectionPage(getNextPage func(context.Context, ComponentsCollection) (ComponentsCollection, error)) ComponentsCollectionPage
Creates a new instance of the ComponentsCollectionPage type.
func (*ComponentsCollectionPage) Next ¶
func (page *ComponentsCollectionPage) 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 (*ComponentsCollectionPage) NextWithContext ¶
func (page *ComponentsCollectionPage) 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 (ComponentsCollectionPage) NotDone ¶
func (page ComponentsCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (ComponentsCollectionPage) Response ¶
func (page ComponentsCollectionPage) Response() ComponentsCollection
Response returns the raw server response from the last page request.
func (ComponentsCollectionPage) Values ¶
func (page ComponentsCollectionPage) Values() []Component
Values returns the slice of values for the current page or nil if there are no values.
type ComponentsSummaryClient ¶
type ComponentsSummaryClient struct {
BaseClient
}
ComponentsSummaryClient is the aPIs for workload monitoring
func NewComponentsSummaryClient ¶
func NewComponentsSummaryClient(subscriptionID string) ComponentsSummaryClient
NewComponentsSummaryClient creates an instance of the ComponentsSummaryClient client.
func NewComponentsSummaryClientWithBaseURI ¶
func NewComponentsSummaryClientWithBaseURI(baseURI string, subscriptionID string) ComponentsSummaryClient
NewComponentsSummaryClientWithBaseURI creates an instance of the ComponentsSummaryClient client.
func (ComponentsSummaryClient) List ¶
func (client ComponentsSummaryClient) List(ctx context.Context, selectParameter string, filter string, apply string, orderby string, expand string, top string, skiptoken string) (result ComponentsCollectionPage, err error)
List sends the list request. Parameters: selectParameter - properties to be returned in the response. filter - filter to be applied on the operation. apply - apply aggregation. orderby - sort the result on one or more properties. expand - include properties inline in the response. top - limit the result to the specified number of rows. skiptoken - the page-continuation token to use with a paged version of this API.
func (ComponentsSummaryClient) ListComplete ¶
func (client ComponentsSummaryClient) ListComplete(ctx context.Context, selectParameter string, filter string, apply string, orderby string, expand string, top string, skiptoken string) (result ComponentsCollectionIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (ComponentsSummaryClient) ListPreparer ¶
func (client ComponentsSummaryClient) ListPreparer(ctx context.Context, selectParameter string, filter string, apply string, orderby string, expand string, top string, skiptoken string) (*http.Request, error)
ListPreparer prepares the List request.
func (ComponentsSummaryClient) ListResponder ¶
func (client ComponentsSummaryClient) ListResponder(resp *http.Response) (result ComponentsCollection, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ComponentsSummaryClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type ErrorFieldContract ¶
type ErrorFieldContract struct { // Code - Property level error code. Code *string `json:"code,omitempty"` // Message - Human-readable representation of property-level error. Message *string `json:"message,omitempty"` // Target - Property name. Target *string `json:"target,omitempty"` }
ErrorFieldContract error field contract.
type ErrorResponse ¶
type ErrorResponse struct { // Code - Service-defined error code. This code serves as a sub-status for the HTTP error code specified in the response. Code *string `json:"code,omitempty"` // Message - Human-readable representation of the error. Message *string `json:"message,omitempty"` // Details - The list of invalid fields send in request, in case of validation error. Details *[]ErrorFieldContract `json:"details,omitempty"` }
ErrorResponse error body contract.
type HealthState ¶
type HealthState string
HealthState enumerates the values for health state.
const ( // Error ... Error HealthState = "Error" // Success ... Success HealthState = "Success" // Uninitialized ... Uninitialized HealthState = "Uninitialized" // Unknown ... Unknown HealthState = "Unknown" // Warning ... Warning HealthState = "Warning" )
func PossibleHealthStateValues ¶
func PossibleHealthStateValues() []HealthState
PossibleHealthStateValues returns an array of possible values for the HealthState const type.
type HealthStateCategory ¶
type HealthStateCategory string
HealthStateCategory enumerates the values for health state category.
const ( // CustomGroup ... CustomGroup HealthStateCategory = "CustomGroup" // Identity ... Identity HealthStateCategory = "Identity" )
func PossibleHealthStateCategoryValues ¶
func PossibleHealthStateCategoryValues() []HealthStateCategory
PossibleHealthStateCategoryValues returns an array of possible values for the HealthStateCategory const type.
type HealthStateChange ¶
type HealthStateChange struct { // HealthState - READ-ONLY; Health state of monitor instance. Possible values include: 'Error', 'Warning', 'Success', 'Unknown', 'Uninitialized' HealthState HealthState `json:"healthState,omitempty"` // HealthStateChangeTime - READ-ONLY; Time at which this Health state was reached. HealthStateChangeTime *date.Time `json:"healthStateChangeTime,omitempty"` }
HealthStateChange model for health state change
type Monitor ¶
type Monitor struct { autorest.Response `json:"-"` // Etag - READ-ONLY; For optimistic concurrency control. Etag *string `json:"etag,omitempty"` // MonitorProperties - READ-ONLY; Properties of monitor instance *MonitorProperties `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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
Monitor model for Monitor
func (Monitor) MarshalJSON ¶
MarshalJSON is the custom marshaler for Monitor.
func (*Monitor) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Monitor struct.
type MonitorCategory ¶
type MonitorCategory string
MonitorCategory enumerates the values for monitor category.
const ( // AvailabilityHealth ... AvailabilityHealth MonitorCategory = "AvailabilityHealth" // Configuration ... Configuration MonitorCategory = "Configuration" // EntityHealth ... EntityHealth MonitorCategory = "EntityHealth" // PerformanceHealth ... PerformanceHealth MonitorCategory = "PerformanceHealth" // Security ... Security MonitorCategory = "Security" )
func PossibleMonitorCategoryValues ¶
func PossibleMonitorCategoryValues() []MonitorCategory
PossibleMonitorCategoryValues returns an array of possible values for the MonitorCategory const type.
type MonitorCriteria ¶
type MonitorCriteria struct { // HealthState - READ-ONLY; Target health state of the criteria. Possible values include: 'Error', 'Warning', 'Success', 'Unknown', 'Uninitialized' HealthState HealthState `json:"healthState,omitempty"` // Threshold - READ-ONLY; Threshold value for this criteria Threshold *float64 `json:"threshold,omitempty"` // ComparisonOperator - READ-ONLY; Comparison enum on threshold of this criteria. Possible values include: 'Equals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual', 'NotEquals' ComparisonOperator Operator `json:"comparisonOperator,omitempty"` }
MonitorCriteria criteria for monitor configuration
type MonitorInstance ¶
type MonitorInstance struct { autorest.Response `json:"-"` // Etag - READ-ONLY; For optimistic concurrency control. Etag *string `json:"etag,omitempty"` // MonitorInstanceProperties - READ-ONLY; Properties of the monitor instance. *MonitorInstanceProperties `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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
MonitorInstance model for monitor instance.
func (MonitorInstance) MarshalJSON ¶
func (mi MonitorInstance) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MonitorInstance.
func (*MonitorInstance) UnmarshalJSON ¶
func (mi *MonitorInstance) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for MonitorInstance struct.
type MonitorInstanceProperties ¶
type MonitorInstanceProperties struct { // WorkspaceID - READ-ONLY; ID of the workspace. WorkspaceID *string `json:"workspaceId,omitempty"` // SolutionID - READ-ONLY; ID of the OMS solution this health instance belong to. SolutionID *string `json:"solutionId,omitempty"` // WorkloadType - READ-ONLY; Type of the workload. Possible values include: 'BaseOS', 'SQL', 'IIS', 'Apache' WorkloadType WorkloadType `json:"workloadType,omitempty"` // ComponentID - READ-ONLY; ID of the component. ComponentID *string `json:"componentId,omitempty"` // ComponentName - READ-ONLY; Name of the component. ComponentName *string `json:"componentName,omitempty"` // ComponentTypeID - READ-ONLY; ID of the component type. ComponentTypeID *string `json:"componentTypeId,omitempty"` // ComponentTypeName - READ-ONLY; Name of the component type. Qualifies the type of component such as whether it is a SQL database, logical disk, website, etc. ComponentTypeName *string `json:"componentTypeName,omitempty"` // MonitorID - READ-ONLY; ID of the monitor instance. MonitorID *string `json:"monitorId,omitempty"` // MonitorName - READ-ONLY; Name of the monitor. MonitorName *string `json:"monitorName,omitempty"` // MonitorType - READ-ONLY; Type of the monitor. The qualifier for the health criteria depending on the functionality it performs such as Unit, Aggregate, Dependency. Possible values include: 'Aggregate', 'Dependency', 'Unit' MonitorType MonitorType `json:"monitorType,omitempty"` // MonitorCategory - READ-ONLY; Monitor type category. Indicates the attribute of the component that the health criteria monitors such as Performance, Availability, etc. Possible values include: 'AvailabilityHealth', 'Configuration', 'EntityHealth', 'PerformanceHealth', 'Security' MonitorCategory MonitorCategory `json:"monitorCategory,omitempty"` // HealthState - READ-ONLY; Health state of monitor instance. Possible values include: 'Error', 'Warning', 'Success', 'Unknown', 'Uninitialized' HealthState HealthState `json:"healthState,omitempty"` // HealthStateCategory - READ-ONLY; Category of monitor instance's health state. Possible values include: 'Identity', 'CustomGroup' HealthStateCategory HealthStateCategory `json:"healthStateCategory,omitempty"` // HealthStateChanges - READ-ONLY; Health state changes. HealthStateChanges *[]HealthStateChange `json:"healthStateChanges,omitempty"` // HealthStateChangesStartTime - READ-ONLY; Start time for health state changes. HealthStateChangesStartTime *date.Time `json:"healthStateChangesStartTime,omitempty"` // HealthStateChangesEndTime - READ-ONLY; End time for health state changes. HealthStateChangesEndTime *date.Time `json:"healthStateChangesEndTime,omitempty"` // LastHealthStateChangeTime - READ-ONLY; Time of last health state change. LastHealthStateChangeTime *date.Time `json:"lastHealthStateChangeTime,omitempty"` // AlertGeneration - READ-ONLY; Generates alert or not. Possible values include: 'Enabled', 'Disabled' AlertGeneration AlertGeneration `json:"alertGeneration,omitempty"` // AggregateProperties - READ-ONLY; Properties requested in aggregation queries. AggregateProperties map[string]*string `json:"aggregateProperties"` // Children - READ-ONLY; Health instance children. Children *[]MonitorInstance `json:"children,omitempty"` }
MonitorInstanceProperties model for properties of a monitor instance.
func (MonitorInstanceProperties) MarshalJSON ¶
func (mip MonitorInstanceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for MonitorInstanceProperties.
type MonitorInstancesClient ¶
type MonitorInstancesClient struct {
BaseClient
}
MonitorInstancesClient is the aPIs for workload monitoring
func NewMonitorInstancesClient ¶
func NewMonitorInstancesClient(subscriptionID string) MonitorInstancesClient
NewMonitorInstancesClient creates an instance of the MonitorInstancesClient client.
func NewMonitorInstancesClientWithBaseURI ¶
func NewMonitorInstancesClientWithBaseURI(baseURI string, subscriptionID string) MonitorInstancesClient
NewMonitorInstancesClientWithBaseURI creates an instance of the MonitorInstancesClient client.
func (MonitorInstancesClient) Get ¶
func (client MonitorInstancesClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, monitorInstanceID uuid.UUID, selectParameter string, expand string) (result MonitorInstance, err error)
Get sends the get request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource. monitorInstanceID - monitorInstance Id. selectParameter - properties to be returned in the response. expand - include properties inline in the response.
func (MonitorInstancesClient) GetPreparer ¶
func (client MonitorInstancesClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, monitorInstanceID uuid.UUID, selectParameter string, expand string) (*http.Request, error)
GetPreparer prepares the Get request.
func (MonitorInstancesClient) GetResponder ¶
func (client MonitorInstancesClient) GetResponder(resp *http.Response) (result MonitorInstance, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (MonitorInstancesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (MonitorInstancesClient) ListByResource ¶
func (client MonitorInstancesClient) ListByResource(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, selectParameter string, filter string, apply string, orderby string, expand string, top string, skiptoken string) (result MonitorInstancesCollectionPage, err error)
ListByResource sends the list by resource request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource. selectParameter - properties to be returned in the response. filter - filter to be applied on the operation. apply - apply aggregation. orderby - sort the result on one or more properties. expand - include properties inline in the response. top - limit the result to the specified number of rows. skiptoken - the page-continuation token to use with a paged version of this API.
func (MonitorInstancesClient) ListByResourceComplete ¶
func (client MonitorInstancesClient) ListByResourceComplete(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, selectParameter string, filter string, apply string, orderby string, expand string, top string, skiptoken string) (result MonitorInstancesCollectionIterator, err error)
ListByResourceComplete enumerates all values, automatically crossing page boundaries as required.
func (MonitorInstancesClient) ListByResourcePreparer ¶
func (client MonitorInstancesClient) ListByResourcePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, selectParameter string, filter string, apply string, orderby string, expand string, top string, skiptoken string) (*http.Request, error)
ListByResourcePreparer prepares the ListByResource request.
func (MonitorInstancesClient) ListByResourceResponder ¶
func (client MonitorInstancesClient) ListByResourceResponder(resp *http.Response) (result MonitorInstancesCollection, err error)
ListByResourceResponder handles the response to the ListByResource request. The method always closes the http.Response Body.
func (MonitorInstancesClient) ListByResourceSender ¶
func (client MonitorInstancesClient) ListByResourceSender(req *http.Request) (*http.Response, error)
ListByResourceSender sends the ListByResource request. The method will close the http.Response Body if it receives an error.
type MonitorInstancesCollection ¶
type MonitorInstancesCollection struct { autorest.Response `json:"-"` // NextLink - READ-ONLY; URL to the next set of results. NextLink *string `json:"nextLink,omitempty"` // Value - READ-ONLY; Collection of health instances. Value *[]MonitorInstance `json:"value,omitempty"` }
MonitorInstancesCollection model for collection of health instances.
func (MonitorInstancesCollection) IsEmpty ¶
func (mic MonitorInstancesCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type MonitorInstancesCollectionIterator ¶
type MonitorInstancesCollectionIterator struct {
// contains filtered or unexported fields
}
MonitorInstancesCollectionIterator provides access to a complete listing of MonitorInstance values.
func NewMonitorInstancesCollectionIterator ¶
func NewMonitorInstancesCollectionIterator(page MonitorInstancesCollectionPage) MonitorInstancesCollectionIterator
Creates a new instance of the MonitorInstancesCollectionIterator type.
func (*MonitorInstancesCollectionIterator) Next ¶
func (iter *MonitorInstancesCollectionIterator) 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 (*MonitorInstancesCollectionIterator) NextWithContext ¶
func (iter *MonitorInstancesCollectionIterator) 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 (MonitorInstancesCollectionIterator) NotDone ¶
func (iter MonitorInstancesCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (MonitorInstancesCollectionIterator) Response ¶
func (iter MonitorInstancesCollectionIterator) Response() MonitorInstancesCollection
Response returns the raw server response from the last page request.
func (MonitorInstancesCollectionIterator) Value ¶
func (iter MonitorInstancesCollectionIterator) Value() MonitorInstance
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type MonitorInstancesCollectionPage ¶
type MonitorInstancesCollectionPage struct {
// contains filtered or unexported fields
}
MonitorInstancesCollectionPage contains a page of MonitorInstance values.
func NewMonitorInstancesCollectionPage ¶
func NewMonitorInstancesCollectionPage(getNextPage func(context.Context, MonitorInstancesCollection) (MonitorInstancesCollection, error)) MonitorInstancesCollectionPage
Creates a new instance of the MonitorInstancesCollectionPage type.
func (*MonitorInstancesCollectionPage) Next ¶
func (page *MonitorInstancesCollectionPage) 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 (*MonitorInstancesCollectionPage) NextWithContext ¶
func (page *MonitorInstancesCollectionPage) 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 (MonitorInstancesCollectionPage) NotDone ¶
func (page MonitorInstancesCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (MonitorInstancesCollectionPage) Response ¶
func (page MonitorInstancesCollectionPage) Response() MonitorInstancesCollection
Response returns the raw server response from the last page request.
func (MonitorInstancesCollectionPage) Values ¶
func (page MonitorInstancesCollectionPage) Values() []MonitorInstance
Values returns the slice of values for the current page or nil if there are no values.
type MonitorInstancesSummaryClient ¶
type MonitorInstancesSummaryClient struct {
BaseClient
}
MonitorInstancesSummaryClient is the aPIs for workload monitoring
func NewMonitorInstancesSummaryClient ¶
func NewMonitorInstancesSummaryClient(subscriptionID string) MonitorInstancesSummaryClient
NewMonitorInstancesSummaryClient creates an instance of the MonitorInstancesSummaryClient client.
func NewMonitorInstancesSummaryClientWithBaseURI ¶
func NewMonitorInstancesSummaryClientWithBaseURI(baseURI string, subscriptionID string) MonitorInstancesSummaryClient
NewMonitorInstancesSummaryClientWithBaseURI creates an instance of the MonitorInstancesSummaryClient client.
func (MonitorInstancesSummaryClient) List ¶
func (client MonitorInstancesSummaryClient) List(ctx context.Context, selectParameter string, filter string, apply string, orderby string, expand string, top string, skiptoken string) (result MonitorInstancesCollectionPage, err error)
List sends the list request. Parameters: selectParameter - properties to be returned in the response. filter - filter to be applied on the operation. apply - apply aggregation. orderby - sort the result on one or more properties. expand - include properties inline in the response. top - limit the result to the specified number of rows. skiptoken - the page-continuation token to use with a paged version of this API.
func (MonitorInstancesSummaryClient) ListComplete ¶
func (client MonitorInstancesSummaryClient) ListComplete(ctx context.Context, selectParameter string, filter string, apply string, orderby string, expand string, top string, skiptoken string) (result MonitorInstancesCollectionIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (MonitorInstancesSummaryClient) ListPreparer ¶
func (client MonitorInstancesSummaryClient) ListPreparer(ctx context.Context, selectParameter string, filter string, apply string, orderby string, expand string, top string, skiptoken string) (*http.Request, error)
ListPreparer prepares the List request.
func (MonitorInstancesSummaryClient) ListResponder ¶
func (client MonitorInstancesSummaryClient) ListResponder(resp *http.Response) (result MonitorInstancesCollection, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (MonitorInstancesSummaryClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type MonitorProperties ¶
type MonitorProperties struct { // Description - READ-ONLY; Description of the monitor Description *string `json:"description,omitempty"` // MonitorID - READ-ONLY; ID of the monitor MonitorID *string `json:"monitorId,omitempty"` // MonitorName - READ-ONLY; Name of the monitor MonitorName *string `json:"monitorName,omitempty"` // MonitorDisplayName - READ-ONLY; User friendly display name of the monitor MonitorDisplayName *string `json:"monitorDisplayName,omitempty"` // ParentMonitorName - READ-ONLY; Name of the parent monitor ParentMonitorName *string `json:"parentMonitorName,omitempty"` // ParentMonitorDisplayName - READ-ONLY; User friendly display name of the parent monitor ParentMonitorDisplayName *string `json:"parentMonitorDisplayName,omitempty"` // MonitorType - READ-ONLY; Type of the monitor. Possible values include: 'Aggregate', 'Dependency', 'Unit' MonitorType MonitorType `json:"monitorType,omitempty"` // MonitorCategory - READ-ONLY; Category of the monitor. Possible values include: 'AvailabilityHealth', 'Configuration', 'EntityHealth', 'PerformanceHealth', 'Security' MonitorCategory MonitorCategory `json:"monitorCategory,omitempty"` // ComponentTypeID - READ-ONLY; Component Type Id of monitor ComponentTypeID *string `json:"componentTypeId,omitempty"` // ComponentTypeName - READ-ONLY; Component Type Name of monitor ComponentTypeName *string `json:"componentTypeName,omitempty"` // ComponentTypeDisplayName - READ-ONLY; Component Type Display Name of the monitor ComponentTypeDisplayName *string `json:"componentTypeDisplayName,omitempty"` // MonitorState - READ-ONLY; Is the monitor state enabled or disabled. Possible values include: 'MonitorStateEnabled', 'MonitorStateDisabled' MonitorState MonitorState `json:"monitorState,omitempty"` // Criteria - READ-ONLY; Collection of MonitorCriteria. For PATCH calls, instead of partial list, complete list of expected criteria should be passed for proper updating. Criteria *[]MonitorCriteria `json:"criteria,omitempty"` // AlertGeneration - READ-ONLY; Generates alerts or not. Possible values include: 'Enabled', 'Disabled' AlertGeneration AlertGeneration `json:"alertGeneration,omitempty"` // Frequency - READ-ONLY; Frequency at which monitor condition is evaluated Frequency *int32 `json:"frequency,omitempty"` // LookbackDuration - READ-ONLY; The duration in minutes in the past during which the monitor is evaluated LookbackDuration *int32 `json:"lookbackDuration,omitempty"` // DocumentationURL - READ-ONLY; URL pointing to the documentation of the monitor DocumentationURL *string `json:"documentationURL,omitempty"` // SignalName - READ-ONLY; Name of the signal on which this monitor is configured. SignalName *string `json:"signalName,omitempty"` // SignalType - READ-ONLY; Type of the signal on which this monitor is configured. SignalType *string `json:"signalType,omitempty"` }
MonitorProperties model for properties of a Monitor.
type MonitorState ¶
type MonitorState string
MonitorState enumerates the values for monitor state.
const ( // MonitorStateDisabled ... MonitorStateDisabled MonitorState = "Disabled" // MonitorStateEnabled ... MonitorStateEnabled MonitorState = "Enabled" )
func PossibleMonitorStateValues ¶
func PossibleMonitorStateValues() []MonitorState
PossibleMonitorStateValues returns an array of possible values for the MonitorState const type.
type MonitorType ¶
type MonitorType string
MonitorType enumerates the values for monitor type.
const ( // Aggregate ... Aggregate MonitorType = "Aggregate" // Dependency ... Dependency MonitorType = "Dependency" // Unit ... Unit MonitorType = "Unit" )
func PossibleMonitorTypeValues ¶
func PossibleMonitorTypeValues() []MonitorType
PossibleMonitorTypeValues returns an array of possible values for the MonitorType const type.
type MonitorsClient ¶
type MonitorsClient struct {
BaseClient
}
MonitorsClient is the aPIs for workload monitoring
func NewMonitorsClient ¶
func NewMonitorsClient(subscriptionID string) MonitorsClient
NewMonitorsClient creates an instance of the MonitorsClient client.
func NewMonitorsClientWithBaseURI ¶
func NewMonitorsClientWithBaseURI(baseURI string, subscriptionID string) MonitorsClient
NewMonitorsClientWithBaseURI creates an instance of the MonitorsClient client.
func (MonitorsClient) Get ¶
func (client MonitorsClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, monitorID string) (result Monitor, err error)
Get sends the get request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource. monitorID - monitor Id.
func (MonitorsClient) GetPreparer ¶
func (client MonitorsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, monitorID string) (*http.Request, error)
GetPreparer prepares the Get request.
func (MonitorsClient) GetResponder ¶
func (client MonitorsClient) GetResponder(resp *http.Response) (result Monitor, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (MonitorsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (MonitorsClient) ListByResource ¶
func (client MonitorsClient) ListByResource(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, filter string, skiptoken string) (result MonitorsCollectionPage, err error)
ListByResource sends the list by resource request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource. filter - filter to be applied on the operation. skiptoken - the page-continuation token to use with a paged version of this API.
func (MonitorsClient) ListByResourceComplete ¶
func (client MonitorsClient) ListByResourceComplete(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, filter string, skiptoken string) (result MonitorsCollectionIterator, err error)
ListByResourceComplete enumerates all values, automatically crossing page boundaries as required.
func (MonitorsClient) ListByResourcePreparer ¶
func (client MonitorsClient) ListByResourcePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, filter string, skiptoken string) (*http.Request, error)
ListByResourcePreparer prepares the ListByResource request.
func (MonitorsClient) ListByResourceResponder ¶
func (client MonitorsClient) ListByResourceResponder(resp *http.Response) (result MonitorsCollection, err error)
ListByResourceResponder handles the response to the ListByResource request. The method always closes the http.Response Body.
func (MonitorsClient) ListByResourceSender ¶
ListByResourceSender sends the ListByResource request. The method will close the http.Response Body if it receives an error.
func (MonitorsClient) Update ¶
func (client MonitorsClient) Update(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, monitorID string, body Monitor) (result Monitor, err error)
Update sends the update request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource. monitorID - monitor Id. body - body of the Monitor PATCH object.
func (MonitorsClient) UpdatePreparer ¶
func (client MonitorsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, monitorID string, body Monitor) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (MonitorsClient) UpdateResponder ¶
func (client MonitorsClient) UpdateResponder(resp *http.Response) (result Monitor, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (MonitorsClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type MonitorsCollection ¶
type MonitorsCollection struct { autorest.Response `json:"-"` // NextLink - READ-ONLY; URL for next set of results. NextLink *string `json:"nextLink,omitempty"` // Value - READ-ONLY; Collection of Monitor. Value *[]Monitor `json:"value,omitempty"` }
MonitorsCollection model for collection of Monitor.
func (MonitorsCollection) IsEmpty ¶
func (mc MonitorsCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type MonitorsCollectionIterator ¶
type MonitorsCollectionIterator struct {
// contains filtered or unexported fields
}
MonitorsCollectionIterator provides access to a complete listing of Monitor values.
func NewMonitorsCollectionIterator ¶
func NewMonitorsCollectionIterator(page MonitorsCollectionPage) MonitorsCollectionIterator
Creates a new instance of the MonitorsCollectionIterator type.
func (*MonitorsCollectionIterator) Next ¶
func (iter *MonitorsCollectionIterator) 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 (*MonitorsCollectionIterator) NextWithContext ¶
func (iter *MonitorsCollectionIterator) 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 (MonitorsCollectionIterator) NotDone ¶
func (iter MonitorsCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (MonitorsCollectionIterator) Response ¶
func (iter MonitorsCollectionIterator) Response() MonitorsCollection
Response returns the raw server response from the last page request.
func (MonitorsCollectionIterator) Value ¶
func (iter MonitorsCollectionIterator) Value() Monitor
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type MonitorsCollectionPage ¶
type MonitorsCollectionPage struct {
// contains filtered or unexported fields
}
MonitorsCollectionPage contains a page of Monitor values.
func NewMonitorsCollectionPage ¶
func NewMonitorsCollectionPage(getNextPage func(context.Context, MonitorsCollection) (MonitorsCollection, error)) MonitorsCollectionPage
Creates a new instance of the MonitorsCollectionPage type.
func (*MonitorsCollectionPage) Next ¶
func (page *MonitorsCollectionPage) 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 (*MonitorsCollectionPage) NextWithContext ¶
func (page *MonitorsCollectionPage) 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 (MonitorsCollectionPage) NotDone ¶
func (page MonitorsCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (MonitorsCollectionPage) Response ¶
func (page MonitorsCollectionPage) Response() MonitorsCollection
Response returns the raw server response from the last page request.
func (MonitorsCollectionPage) Values ¶
func (page MonitorsCollectionPage) Values() []Monitor
Values returns the slice of values for the current page or nil if there are no values.
type NotificationSetting ¶
type NotificationSetting struct { autorest.Response `json:"-"` // Etag - READ-ONLY; For optimistic concurrency control. Etag *string `json:"etag,omitempty"` // NotificationSettingProperties - READ-ONLY; Properties of Notification Settings *NotificationSettingProperties `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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
NotificationSetting model for NotificationSetting.
func (NotificationSetting) MarshalJSON ¶
func (ns NotificationSetting) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for NotificationSetting.
func (*NotificationSetting) UnmarshalJSON ¶
func (ns *NotificationSetting) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for NotificationSetting struct.
type NotificationSettingProperties ¶
type NotificationSettingProperties struct { // ActionGroupResourceIds - READ-ONLY; List of action group resource ids to be notified ActionGroupResourceIds *[]string `json:"actionGroupResourceIds,omitempty"` }
NotificationSettingProperties model for properties of a NotificationSetting.
type NotificationSettingsClient ¶
type NotificationSettingsClient struct {
BaseClient
}
NotificationSettingsClient is the aPIs for workload monitoring
func NewNotificationSettingsClient ¶
func NewNotificationSettingsClient(subscriptionID string) NotificationSettingsClient
NewNotificationSettingsClient creates an instance of the NotificationSettingsClient client.
func NewNotificationSettingsClientWithBaseURI ¶
func NewNotificationSettingsClientWithBaseURI(baseURI string, subscriptionID string) NotificationSettingsClient
NewNotificationSettingsClientWithBaseURI creates an instance of the NotificationSettingsClient client.
func (NotificationSettingsClient) Get ¶
func (client NotificationSettingsClient) Get(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string) (result NotificationSetting, err error)
Get sends the get request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource.
func (NotificationSettingsClient) GetPreparer ¶
func (client NotificationSettingsClient) GetPreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (NotificationSettingsClient) GetResponder ¶
func (client NotificationSettingsClient) GetResponder(resp *http.Response) (result NotificationSetting, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (NotificationSettingsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (NotificationSettingsClient) ListByResource ¶
func (client NotificationSettingsClient) ListByResource(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, skiptoken string) (result NotificationSettingsCollectionPage, err error)
ListByResource sends the list by resource request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource. skiptoken - the page-continuation token to use with a paged version of this API.
func (NotificationSettingsClient) ListByResourceComplete ¶
func (client NotificationSettingsClient) ListByResourceComplete(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, skiptoken string) (result NotificationSettingsCollectionIterator, err error)
ListByResourceComplete enumerates all values, automatically crossing page boundaries as required.
func (NotificationSettingsClient) ListByResourcePreparer ¶
func (client NotificationSettingsClient) ListByResourcePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, skiptoken string) (*http.Request, error)
ListByResourcePreparer prepares the ListByResource request.
func (NotificationSettingsClient) ListByResourceResponder ¶
func (client NotificationSettingsClient) ListByResourceResponder(resp *http.Response) (result NotificationSettingsCollection, err error)
ListByResourceResponder handles the response to the ListByResource request. The method always closes the http.Response Body.
func (NotificationSettingsClient) ListByResourceSender ¶
func (client NotificationSettingsClient) ListByResourceSender(req *http.Request) (*http.Response, error)
ListByResourceSender sends the ListByResource request. The method will close the http.Response Body if it receives an error.
func (NotificationSettingsClient) Update ¶
func (client NotificationSettingsClient) Update(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, body NotificationSetting) (result NotificationSetting, err error)
Update sends the update request. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. resourceNamespace - the Namespace of the resource. resourceType - the type of the resource. resourceName - name of the resource. body - body of the NotificationSetting PUT object.
func (NotificationSettingsClient) UpdatePreparer ¶
func (client NotificationSettingsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, body NotificationSetting) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (NotificationSettingsClient) UpdateResponder ¶
func (client NotificationSettingsClient) UpdateResponder(resp *http.Response) (result NotificationSetting, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (NotificationSettingsClient) UpdateSender ¶
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type NotificationSettingsCollection ¶
type NotificationSettingsCollection struct { autorest.Response `json:"-"` Value *[]NotificationSetting `json:"value,omitempty"` // NextLink - READ-ONLY; URL to the next set of results. NextLink *string `json:"nextLink,omitempty"` }
NotificationSettingsCollection model for collection of notificationSettings.
func (NotificationSettingsCollection) IsEmpty ¶
func (nsc NotificationSettingsCollection) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type NotificationSettingsCollectionIterator ¶
type NotificationSettingsCollectionIterator struct {
// contains filtered or unexported fields
}
NotificationSettingsCollectionIterator provides access to a complete listing of NotificationSetting values.
func NewNotificationSettingsCollectionIterator ¶
func NewNotificationSettingsCollectionIterator(page NotificationSettingsCollectionPage) NotificationSettingsCollectionIterator
Creates a new instance of the NotificationSettingsCollectionIterator type.
func (*NotificationSettingsCollectionIterator) Next ¶
func (iter *NotificationSettingsCollectionIterator) 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 (*NotificationSettingsCollectionIterator) NextWithContext ¶
func (iter *NotificationSettingsCollectionIterator) 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 (NotificationSettingsCollectionIterator) NotDone ¶
func (iter NotificationSettingsCollectionIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (NotificationSettingsCollectionIterator) Response ¶
func (iter NotificationSettingsCollectionIterator) Response() NotificationSettingsCollection
Response returns the raw server response from the last page request.
func (NotificationSettingsCollectionIterator) Value ¶
func (iter NotificationSettingsCollectionIterator) Value() NotificationSetting
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type NotificationSettingsCollectionPage ¶
type NotificationSettingsCollectionPage struct {
// contains filtered or unexported fields
}
NotificationSettingsCollectionPage contains a page of NotificationSetting values.
func NewNotificationSettingsCollectionPage ¶
func NewNotificationSettingsCollectionPage(getNextPage func(context.Context, NotificationSettingsCollection) (NotificationSettingsCollection, error)) NotificationSettingsCollectionPage
Creates a new instance of the NotificationSettingsCollectionPage type.
func (*NotificationSettingsCollectionPage) Next ¶
func (page *NotificationSettingsCollectionPage) 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 (*NotificationSettingsCollectionPage) NextWithContext ¶
func (page *NotificationSettingsCollectionPage) 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 (NotificationSettingsCollectionPage) NotDone ¶
func (page NotificationSettingsCollectionPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (NotificationSettingsCollectionPage) Response ¶
func (page NotificationSettingsCollectionPage) Response() NotificationSettingsCollection
Response returns the raw server response from the last page request.
func (NotificationSettingsCollectionPage) Values ¶
func (page NotificationSettingsCollectionPage) Values() []NotificationSetting
Values returns the slice of values for the current page or nil if there are no values.
type Operation ¶
type Operation struct { // Display - READ-ONLY; The properties of the resource operation. Display *OperationProperties `json:"display,omitempty"` // Name - READ-ONLY; The name of the resource operation. Name *string `json:"name,omitempty"` // Origin - READ-ONLY; The origin of the operation. Origin *string `json:"origin,omitempty"` }
Operation operation supported by the resource provider.
type OperationListResult ¶
type OperationListResult struct { autorest.Response `json:"-"` // NextLink - READ-ONLY; URL to the next set of results. NextLink *string `json:"nextLink,omitempty"` // Value - READ-ONLY; List of operations. Value *[]Operation `json:"value,omitempty"` }
OperationListResult container for a list of operations supported by the resource provider.
func (OperationListResult) IsEmpty ¶
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
type OperationListResultIterator ¶
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
OperationListResultIterator provides access to a complete listing of Operation values.
func NewOperationListResultIterator ¶
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
Creates a new instance of the OperationListResultIterator type.
func (*OperationListResultIterator) Next ¶
func (iter *OperationListResultIterator) 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 (*OperationListResultIterator) NextWithContext ¶
func (iter *OperationListResultIterator) 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 (OperationListResultIterator) NotDone ¶
func (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (OperationListResultIterator) Response ¶
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultIterator) Value ¶
func (iter OperationListResultIterator) Value() Operation
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type OperationListResultPage ¶
type OperationListResultPage struct {
// contains filtered or unexported fields
}
OperationListResultPage contains a page of Operation values.
func NewOperationListResultPage ¶
func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
Creates a new instance of the OperationListResultPage type.
func (*OperationListResultPage) Next ¶
func (page *OperationListResultPage) 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 (*OperationListResultPage) NextWithContext ¶
func (page *OperationListResultPage) 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 (OperationListResultPage) NotDone ¶
func (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (OperationListResultPage) Response ¶
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultPage) Values ¶
func (page OperationListResultPage) Values() []Operation
Values returns the slice of values for the current page or nil if there are no values.
type OperationProperties ¶
type OperationProperties struct { // Description - READ-ONLY; The description of the resource provider. Description *string `json:"description,omitempty"` // Operation - READ-ONLY; This operation name. Operation *string `json:"operation,omitempty"` // Provider - READ-ONLY; The provider name. Provider *string `json:"provider,omitempty"` // Resource - READ-ONLY; The resource name. Resource *string `json:"resource,omitempty"` }
OperationProperties properties of an operation supported by the resource provider.
type OperationsClient ¶
type OperationsClient struct {
BaseClient
}
OperationsClient is the aPIs for workload monitoring
func NewOperationsClient ¶
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI ¶
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.
func (OperationsClient) List ¶
func (client OperationsClient) List(ctx context.Context, skiptoken string) (result OperationListResultPage, err error)
List sends the list request. Parameters: skiptoken - the page-continuation token to use with a paged version of this API.
func (OperationsClient) ListComplete ¶
func (client OperationsClient) ListComplete(ctx context.Context, skiptoken string) (result OperationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (OperationsClient) ListPreparer ¶
func (client OperationsClient) ListPreparer(ctx context.Context, skiptoken string) (*http.Request, error)
ListPreparer prepares the List request.
func (OperationsClient) ListResponder ¶
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (OperationsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type Operator ¶
type Operator string
Operator enumerates the values for operator.
const ( // Equals ... Equals Operator = "Equals" // GreaterThan ... GreaterThan Operator = "GreaterThan" // GreaterThanOrEqual ... GreaterThanOrEqual Operator = "GreaterThanOrEqual" // LessThan ... LessThan Operator = "LessThan" // LessThanOrEqual ... LessThanOrEqual Operator = "LessThanOrEqual" // NotEquals ... NotEquals Operator = "NotEquals" )
func PossibleOperatorValues ¶
func PossibleOperatorValues() []Operator
PossibleOperatorValues returns an array of possible values for the Operator const type.
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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags
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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
Resource ...
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. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. Type *string `json:"type,omitempty"` }
TrackedResource the resource model definition for a ARM tracked top level resource
func (TrackedResource) MarshalJSON ¶
func (tr TrackedResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for TrackedResource.
type WorkloadType ¶
type WorkloadType string
WorkloadType enumerates the values for workload type.
const ( // Apache ... Apache WorkloadType = "Apache" // BaseOS ... BaseOS WorkloadType = "BaseOS" // IIS ... IIS WorkloadType = "IIS" // SQL ... SQL WorkloadType = "SQL" )
func PossibleWorkloadTypeValues ¶
func PossibleWorkloadTypeValues() []WorkloadType
PossibleWorkloadTypeValues returns an array of possible values for the WorkloadType const type.