workloadmonitor

package
v32.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package workloadmonitor implements the Azure ARM Workloadmonitor service API version 2018-08-31-preview.

APIs for workload monitoring

Index

Constants

View Source
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

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

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

func (c Component) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Component.

func (*Component) UnmarshalJSON

func (c *Component) UnmarshalJSON(body []byte) error

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

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

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

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

func (ComponentsCollectionIterator) Value

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

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

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

func (mVar Monitor) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Monitor.

func (*Monitor) UnmarshalJSON

func (mVar *Monitor) UnmarshalJSON(body []byte) error

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

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

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

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

func (MonitorInstancesCollectionIterator) Response

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

func (MonitorInstancesCollectionIterator) Value

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

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

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

func (MonitorInstancesCollectionPage) Values

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

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

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

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

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

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

type 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

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

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

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

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

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

type 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

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

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

func (NotificationSettingsCollectionIterator) Response

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

func (NotificationSettingsCollectionIterator) Value

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

Creates a new instance of the NotificationSettingsCollectionPage type.

func (*NotificationSettingsCollectionPage) Next

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

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

func (NotificationSettingsCollectionPage) Response

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

func (NotificationSettingsCollectionPage) Values

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

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

func (OperationListResultIterator) Value

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

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

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

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

type 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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