azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor Index | Files | Directories

package workloadmonitor

import "github.com/Azure/azure-sdk-for-go/services/preview/workloadmonitor/mgmt/2018-08-31-preview/workloadmonitor"

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

APIs for workload monitoring

Index

Package Files

client.go components.go componentssummary.go models.go monitorinstances.go monitorinstancessummary.go monitors.go notificationsettings.go operations.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type AlertGeneration Uses

type AlertGeneration string

AlertGeneration enumerates the values for alert generation.

const (
    // Disabled ...
    Disabled AlertGeneration = "Disabled"
    // Enabled ...
    Enabled AlertGeneration = "Enabled"
)

func PossibleAlertGenerationValues Uses

func PossibleAlertGenerationValues() []AlertGeneration

PossibleAlertGenerationValues returns an array of possible values for the AlertGeneration const type.

type AzureEntityResource Uses

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 Uses

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

BaseClient is the base client for Workloadmonitor.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type Component Uses

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 Uses

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

MarshalJSON is the custom marshaler for Component.

func (*Component) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Component struct.

type ComponentProperties Uses

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 Uses

func (cp ComponentProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ComponentProperties.

type ComponentsClient Uses

type ComponentsClient struct {
    BaseClient
}

ComponentsClient is the aPIs for workload monitoring

func NewComponentsClient Uses

func NewComponentsClient(subscriptionID string) ComponentsClient

NewComponentsClient creates an instance of the ComponentsClient client.

func NewComponentsClientWithBaseURI Uses

func NewComponentsClientWithBaseURI(baseURI string, subscriptionID string) ComponentsClient

NewComponentsClientWithBaseURI creates an instance of the ComponentsClient client.

func (ComponentsClient) Get Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (cc ComponentsCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ComponentsCollectionIterator Uses

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

ComponentsCollectionIterator provides access to a complete listing of Component values.

func NewComponentsCollectionIterator Uses

func NewComponentsCollectionIterator(page ComponentsCollectionPage) ComponentsCollectionIterator

Creates a new instance of the ComponentsCollectionIterator type.

func (*ComponentsCollectionIterator) Next Uses

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 Uses

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 Uses

func (iter ComponentsCollectionIterator) NotDone() bool

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

func (ComponentsCollectionIterator) Response Uses

func (iter ComponentsCollectionIterator) Response() ComponentsCollection

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

func (ComponentsCollectionIterator) Value Uses

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 Uses

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

ComponentsCollectionPage contains a page of Component values.

func NewComponentsCollectionPage Uses

func NewComponentsCollectionPage(getNextPage func(context.Context, ComponentsCollection) (ComponentsCollection, error)) ComponentsCollectionPage

Creates a new instance of the ComponentsCollectionPage type.

func (*ComponentsCollectionPage) Next Uses

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 Uses

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 Uses

func (page ComponentsCollectionPage) NotDone() bool

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

func (ComponentsCollectionPage) Response Uses

func (page ComponentsCollectionPage) Response() ComponentsCollection

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

func (ComponentsCollectionPage) Values Uses

func (page ComponentsCollectionPage) Values() []Component

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

type ComponentsSummaryClient Uses

type ComponentsSummaryClient struct {
    BaseClient
}

ComponentsSummaryClient is the aPIs for workload monitoring

func NewComponentsSummaryClient Uses

func NewComponentsSummaryClient(subscriptionID string) ComponentsSummaryClient

NewComponentsSummaryClient creates an instance of the ComponentsSummaryClient client.

func NewComponentsSummaryClientWithBaseURI Uses

func NewComponentsSummaryClientWithBaseURI(baseURI string, subscriptionID string) ComponentsSummaryClient

NewComponentsSummaryClientWithBaseURI creates an instance of the ComponentsSummaryClient client.

func (ComponentsSummaryClient) List Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func PossibleHealthStateValues() []HealthState

PossibleHealthStateValues returns an array of possible values for the HealthState const type.

type HealthStateCategory Uses

type HealthStateCategory string

HealthStateCategory enumerates the values for health state category.

const (
    // CustomGroup ...
    CustomGroup HealthStateCategory = "CustomGroup"
    // Identity ...
    Identity HealthStateCategory = "Identity"
)

func PossibleHealthStateCategoryValues Uses

func PossibleHealthStateCategoryValues() []HealthStateCategory

PossibleHealthStateCategoryValues returns an array of possible values for the HealthStateCategory const type.

type HealthStateChange Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for Monitor.

func (*Monitor) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Monitor struct.

type MonitorCategory Uses

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 Uses

func PossibleMonitorCategoryValues() []MonitorCategory

PossibleMonitorCategoryValues returns an array of possible values for the MonitorCategory const type.

type MonitorCriteria Uses

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 Uses

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 Uses

func (mi MonitorInstance) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MonitorInstance.

func (*MonitorInstance) UnmarshalJSON Uses

func (mi *MonitorInstance) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MonitorInstance struct.

type MonitorInstanceProperties Uses

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 Uses

func (mip MonitorInstanceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MonitorInstanceProperties.

type MonitorInstancesClient Uses

type MonitorInstancesClient struct {
    BaseClient
}

MonitorInstancesClient is the aPIs for workload monitoring

func NewMonitorInstancesClient Uses

func NewMonitorInstancesClient(subscriptionID string) MonitorInstancesClient

NewMonitorInstancesClient creates an instance of the MonitorInstancesClient client.

func NewMonitorInstancesClientWithBaseURI Uses

func NewMonitorInstancesClientWithBaseURI(baseURI string, subscriptionID string) MonitorInstancesClient

NewMonitorInstancesClientWithBaseURI creates an instance of the MonitorInstancesClient client.

func (MonitorInstancesClient) Get Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (mic MonitorInstancesCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type MonitorInstancesCollectionIterator Uses

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

MonitorInstancesCollectionIterator provides access to a complete listing of MonitorInstance values.

func NewMonitorInstancesCollectionIterator Uses

func NewMonitorInstancesCollectionIterator(page MonitorInstancesCollectionPage) MonitorInstancesCollectionIterator

Creates a new instance of the MonitorInstancesCollectionIterator type.

func (*MonitorInstancesCollectionIterator) Next Uses

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 Uses

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 Uses

func (iter MonitorInstancesCollectionIterator) NotDone() bool

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

func (MonitorInstancesCollectionIterator) Response Uses

func (iter MonitorInstancesCollectionIterator) Response() MonitorInstancesCollection

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

func (MonitorInstancesCollectionIterator) Value Uses

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 Uses

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

MonitorInstancesCollectionPage contains a page of MonitorInstance values.

func NewMonitorInstancesCollectionPage Uses

func NewMonitorInstancesCollectionPage(getNextPage func(context.Context, MonitorInstancesCollection) (MonitorInstancesCollection, error)) MonitorInstancesCollectionPage

Creates a new instance of the MonitorInstancesCollectionPage type.

func (*MonitorInstancesCollectionPage) Next Uses

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 Uses

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 Uses

func (page MonitorInstancesCollectionPage) NotDone() bool

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

func (MonitorInstancesCollectionPage) Response Uses

func (page MonitorInstancesCollectionPage) Response() MonitorInstancesCollection

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

func (MonitorInstancesCollectionPage) Values Uses

func (page MonitorInstancesCollectionPage) Values() []MonitorInstance

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

type MonitorInstancesSummaryClient Uses

type MonitorInstancesSummaryClient struct {
    BaseClient
}

MonitorInstancesSummaryClient is the aPIs for workload monitoring

func NewMonitorInstancesSummaryClient Uses

func NewMonitorInstancesSummaryClient(subscriptionID string) MonitorInstancesSummaryClient

NewMonitorInstancesSummaryClient creates an instance of the MonitorInstancesSummaryClient client.

func NewMonitorInstancesSummaryClientWithBaseURI Uses

func NewMonitorInstancesSummaryClientWithBaseURI(baseURI string, subscriptionID string) MonitorInstancesSummaryClient

NewMonitorInstancesSummaryClientWithBaseURI creates an instance of the MonitorInstancesSummaryClient client.

func (MonitorInstancesSummaryClient) List Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

type MonitorState string

MonitorState enumerates the values for monitor state.

const (
    // MonitorStateDisabled ...
    MonitorStateDisabled MonitorState = "Disabled"
    // MonitorStateEnabled ...
    MonitorStateEnabled MonitorState = "Enabled"
)

func PossibleMonitorStateValues Uses

func PossibleMonitorStateValues() []MonitorState

PossibleMonitorStateValues returns an array of possible values for the MonitorState const type.

type MonitorType Uses

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 Uses

func PossibleMonitorTypeValues() []MonitorType

PossibleMonitorTypeValues returns an array of possible values for the MonitorType const type.

type MonitorsClient Uses

type MonitorsClient struct {
    BaseClient
}

MonitorsClient is the aPIs for workload monitoring

func NewMonitorsClient Uses

func NewMonitorsClient(subscriptionID string) MonitorsClient

NewMonitorsClient creates an instance of the MonitorsClient client.

func NewMonitorsClientWithBaseURI Uses

func NewMonitorsClientWithBaseURI(baseURI string, subscriptionID string) MonitorsClient

NewMonitorsClientWithBaseURI creates an instance of the MonitorsClient client.

func (MonitorsClient) Get Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (mc MonitorsCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type MonitorsCollectionIterator Uses

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

MonitorsCollectionIterator provides access to a complete listing of Monitor values.

func NewMonitorsCollectionIterator Uses

func NewMonitorsCollectionIterator(page MonitorsCollectionPage) MonitorsCollectionIterator

Creates a new instance of the MonitorsCollectionIterator type.

func (*MonitorsCollectionIterator) Next Uses

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 Uses

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 Uses

func (iter MonitorsCollectionIterator) NotDone() bool

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

func (MonitorsCollectionIterator) Response Uses

func (iter MonitorsCollectionIterator) Response() MonitorsCollection

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

func (MonitorsCollectionIterator) Value Uses

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 Uses

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

MonitorsCollectionPage contains a page of Monitor values.

func NewMonitorsCollectionPage Uses

func NewMonitorsCollectionPage(getNextPage func(context.Context, MonitorsCollection) (MonitorsCollection, error)) MonitorsCollectionPage

Creates a new instance of the MonitorsCollectionPage type.

func (*MonitorsCollectionPage) Next Uses

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 Uses

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 Uses

func (page MonitorsCollectionPage) NotDone() bool

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

func (MonitorsCollectionPage) Response Uses

func (page MonitorsCollectionPage) Response() MonitorsCollection

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

func (MonitorsCollectionPage) Values Uses

func (page MonitorsCollectionPage) Values() []Monitor

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

type NotificationSetting Uses

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 Uses

func (ns NotificationSetting) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NotificationSetting.

func (*NotificationSetting) UnmarshalJSON Uses

func (ns *NotificationSetting) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for NotificationSetting struct.

type NotificationSettingProperties Uses

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 Uses

type NotificationSettingsClient struct {
    BaseClient
}

NotificationSettingsClient is the aPIs for workload monitoring

func NewNotificationSettingsClient Uses

func NewNotificationSettingsClient(subscriptionID string) NotificationSettingsClient

NewNotificationSettingsClient creates an instance of the NotificationSettingsClient client.

func NewNotificationSettingsClientWithBaseURI Uses

func NewNotificationSettingsClientWithBaseURI(baseURI string, subscriptionID string) NotificationSettingsClient

NewNotificationSettingsClientWithBaseURI creates an instance of the NotificationSettingsClient client.

func (NotificationSettingsClient) Get Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func (nsc NotificationSettingsCollection) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type NotificationSettingsCollectionIterator Uses

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

NotificationSettingsCollectionIterator provides access to a complete listing of NotificationSetting values.

func NewNotificationSettingsCollectionIterator Uses

func NewNotificationSettingsCollectionIterator(page NotificationSettingsCollectionPage) NotificationSettingsCollectionIterator

Creates a new instance of the NotificationSettingsCollectionIterator type.

func (*NotificationSettingsCollectionIterator) Next Uses

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 Uses

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 Uses

func (iter NotificationSettingsCollectionIterator) NotDone() bool

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

func (NotificationSettingsCollectionIterator) Response Uses

func (iter NotificationSettingsCollectionIterator) Response() NotificationSettingsCollection

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

func (NotificationSettingsCollectionIterator) Value Uses

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 Uses

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

NotificationSettingsCollectionPage contains a page of NotificationSetting values.

func NewNotificationSettingsCollectionPage Uses

func NewNotificationSettingsCollectionPage(getNextPage func(context.Context, NotificationSettingsCollection) (NotificationSettingsCollection, error)) NotificationSettingsCollectionPage

Creates a new instance of the NotificationSettingsCollectionPage type.

func (*NotificationSettingsCollectionPage) Next Uses

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 Uses

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 Uses

func (page NotificationSettingsCollectionPage) NotDone() bool

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

func (NotificationSettingsCollectionPage) Response Uses

func (page NotificationSettingsCollectionPage) Response() NotificationSettingsCollection

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

func (NotificationSettingsCollectionPage) Values Uses

func (page NotificationSettingsCollectionPage) Values() []NotificationSetting

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

type Operation Uses

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 Uses

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 Uses

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator Uses

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator Uses

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next Uses

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 Uses

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 Uses

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response Uses

func (iter OperationListResultIterator) Response() OperationListResult

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

func (OperationListResultIterator) Value Uses

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 Uses

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage Uses

func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next Uses

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 Uses

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 Uses

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response Uses

func (page OperationListResultPage) Response() OperationListResult

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

func (OperationListResultPage) Values Uses

func (page OperationListResultPage) Values() []Operation

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

type OperationProperties Uses

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 Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the aPIs for workload monitoring

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context, 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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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

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

func (OperationsClient) ListSender Uses

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

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

type Operator Uses

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 Uses

func PossibleOperatorValues() []Operator

PossibleOperatorValues returns an array of possible values for the Operator const type.

type ProxyResource Uses

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 Uses

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 Uses

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 Uses

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type WorkloadType Uses

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 Uses

func PossibleWorkloadTypeValues() []WorkloadType

PossibleWorkloadTypeValues returns an array of possible values for the WorkloadType const type.

Directories

PathSynopsis
workloadmonitorapi

Package workloadmonitor imports 11 packages (graph) and is imported by 3 packages. Updated 2019-08-10. Refresh now. Tools for package owners.