workloadmonitor

package
v0.0.0-...-91fa101 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package workloadmonitor implements the Azure ARM Workloadmonitor service API version 2020-01-13-preview.

Workload Monitor API

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 BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI string
}

BaseClient is the base client for Workloadmonitor.

func New

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type ErrorDetails

type ErrorDetails struct {
	// Code - Error code identifying the specific error.
	Code *string `json:"code,omitempty"`
	// Message - A human-readable error message.
	Message *string `json:"message,omitempty"`
}

ErrorDetails ...

type ErrorResponse

type ErrorResponse struct {
	// Error - Error info.
	Error *ErrorResponseError `json:"error,omitempty"`
}

ErrorResponse ...

type ErrorResponseError

type ErrorResponseError 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 - Error details.
	Details *[]ErrorDetails `json:"details,omitempty"`
}

ErrorResponseError error info.

type HealthMonitor

type HealthMonitor struct {
	autorest.Response `json:"-"`
	// HealthMonitorProperties - Properties of the monitor's health status.
	*HealthMonitorProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The resource type.
	Type *string `json:"type,omitempty"`
}

HealthMonitor ...

func (HealthMonitor) MarshalJSON

func (hm HealthMonitor) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HealthMonitor.

func (*HealthMonitor) UnmarshalJSON

func (hm *HealthMonitor) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for HealthMonitor struct.

type HealthMonitorList

type HealthMonitorList struct {
	autorest.Response `json:"-"`
	// Value - Array of health monitors of the virtual machine.
	Value *[]HealthMonitor `json:"value,omitempty"`
	// NextLink - Link to next page if the list is too long.
	NextLink *string `json:"nextLink,omitempty"`
}

HealthMonitorList ...

func (HealthMonitorList) IsEmpty

func (hml HealthMonitorList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type HealthMonitorListIterator

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

HealthMonitorListIterator provides access to a complete listing of HealthMonitor values.

func NewHealthMonitorListIterator

func NewHealthMonitorListIterator(page HealthMonitorListPage) HealthMonitorListIterator

Creates a new instance of the HealthMonitorListIterator type.

func (*HealthMonitorListIterator) Next

func (iter *HealthMonitorListIterator) 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 (*HealthMonitorListIterator) NextWithContext

func (iter *HealthMonitorListIterator) 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 (HealthMonitorListIterator) NotDone

func (iter HealthMonitorListIterator) NotDone() bool

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

func (HealthMonitorListIterator) Response

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

func (HealthMonitorListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type HealthMonitorListPage

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

HealthMonitorListPage contains a page of HealthMonitor values.

func NewHealthMonitorListPage

func NewHealthMonitorListPage(cur HealthMonitorList, getNextPage func(context.Context, HealthMonitorList) (HealthMonitorList, error)) HealthMonitorListPage

Creates a new instance of the HealthMonitorListPage type.

func (*HealthMonitorListPage) Next

func (page *HealthMonitorListPage) 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 (*HealthMonitorListPage) NextWithContext

func (page *HealthMonitorListPage) 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 (HealthMonitorListPage) NotDone

func (page HealthMonitorListPage) NotDone() bool

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

func (HealthMonitorListPage) Response

func (page HealthMonitorListPage) Response() HealthMonitorList

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

func (HealthMonitorListPage) Values

func (page HealthMonitorListPage) Values() []HealthMonitor

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

type HealthMonitorProperties

type HealthMonitorProperties struct {
	// MonitorName - Human-readable name of the monitor.
	MonitorName *string `json:"monitorName,omitempty"`
	// MonitorType - Type of the monitor.
	MonitorType *string `json:"monitorType,omitempty"`
	// MonitoredObject - Dynamic monitored object of the monitor.
	MonitoredObject *string `json:"monitoredObject,omitempty"`
	// ParentMonitorName - Name of the parent monitor.
	ParentMonitorName *string `json:"parentMonitorName,omitempty"`
	// PreviousMonitorState - Previous health state of the monitor. Possible values include: 'Healthy', 'Critical', 'Warning', 'Unknown', 'Disabled', 'None'
	PreviousMonitorState HealthState `json:"previousMonitorState,omitempty"`
	// CurrentMonitorState - Current health state of the monitor. Possible values include: 'Healthy', 'Critical', 'Warning', 'Unknown', 'Disabled', 'None'
	CurrentMonitorState HealthState `json:"currentMonitorState,omitempty"`
	// EvaluationTimestamp - Timestamp of the monitor's last health evaluation.
	EvaluationTimestamp *string `json:"evaluationTimestamp,omitempty"`
	// CurrentStateFirstObservedTimestamp - Timestamp of the monitor's last health state change.
	CurrentStateFirstObservedTimestamp *string `json:"currentStateFirstObservedTimestamp,omitempty"`
	// LastReportedTimestamp - Timestamp of the monitor's last reported health state.
	LastReportedTimestamp *string `json:"lastReportedTimestamp,omitempty"`
	// Evidence - Evidence validating the monitor's current health state.
	Evidence interface{} `json:"evidence,omitempty"`
	// MonitorConfiguration - The configuration settings at the time of the monitor's health evaluation.
	MonitorConfiguration interface{} `json:"monitorConfiguration,omitempty"`
}

HealthMonitorProperties properties of the monitor.

type HealthMonitorStateChange

type HealthMonitorStateChange struct {
	autorest.Response `json:"-"`
	// HealthMonitorStateChangeProperties - Properties of the monitor's state change.
	*HealthMonitorStateChangeProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; The resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The resource type.
	Type *string `json:"type,omitempty"`
}

HealthMonitorStateChange ...

func (HealthMonitorStateChange) MarshalJSON

func (hmsc HealthMonitorStateChange) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HealthMonitorStateChange.

func (*HealthMonitorStateChange) UnmarshalJSON

func (hmsc *HealthMonitorStateChange) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for HealthMonitorStateChange struct.

type HealthMonitorStateChangeList

type HealthMonitorStateChangeList struct {
	autorest.Response `json:"-"`
	// Value - Array of health state changes within the specified time window.
	Value *[]HealthMonitorStateChange `json:"value,omitempty"`
	// NextLink - Link to next page if the list is too long.
	NextLink *string `json:"nextLink,omitempty"`
}

HealthMonitorStateChangeList ...

func (HealthMonitorStateChangeList) IsEmpty

func (hmscl HealthMonitorStateChangeList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type HealthMonitorStateChangeListIterator

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

HealthMonitorStateChangeListIterator provides access to a complete listing of HealthMonitorStateChange values.

func NewHealthMonitorStateChangeListIterator

func NewHealthMonitorStateChangeListIterator(page HealthMonitorStateChangeListPage) HealthMonitorStateChangeListIterator

Creates a new instance of the HealthMonitorStateChangeListIterator type.

func (*HealthMonitorStateChangeListIterator) 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 (*HealthMonitorStateChangeListIterator) NextWithContext

func (iter *HealthMonitorStateChangeListIterator) 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 (HealthMonitorStateChangeListIterator) NotDone

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

func (HealthMonitorStateChangeListIterator) Response

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

func (HealthMonitorStateChangeListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type HealthMonitorStateChangeListPage

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

HealthMonitorStateChangeListPage contains a page of HealthMonitorStateChange values.

func NewHealthMonitorStateChangeListPage

Creates a new instance of the HealthMonitorStateChangeListPage type.

func (*HealthMonitorStateChangeListPage) 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 (*HealthMonitorStateChangeListPage) NextWithContext

func (page *HealthMonitorStateChangeListPage) 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 (HealthMonitorStateChangeListPage) NotDone

func (page HealthMonitorStateChangeListPage) NotDone() bool

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

func (HealthMonitorStateChangeListPage) Response

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

func (HealthMonitorStateChangeListPage) Values

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

type HealthMonitorStateChangeProperties

type HealthMonitorStateChangeProperties struct {
	// MonitorName - Human-readable name of the monitor.
	MonitorName *string `json:"monitorName,omitempty"`
	// MonitorType - Type of the monitor.
	MonitorType *string `json:"monitorType,omitempty"`
	// MonitoredObject - Dynamic monitored object of the monitor.
	MonitoredObject *string `json:"monitoredObject,omitempty"`
	// EvaluationTimestamp - Timestamp of the monitor's last health evaluation.
	EvaluationTimestamp *string `json:"evaluationTimestamp,omitempty"`
	// CurrentStateFirstObservedTimestamp - Timestamp of the monitor's last health state change.
	CurrentStateFirstObservedTimestamp *string `json:"currentStateFirstObservedTimestamp,omitempty"`
	// PreviousMonitorState - Previous health state of the monitor. Possible values include: 'Healthy', 'Critical', 'Warning', 'Unknown', 'Disabled', 'None'
	PreviousMonitorState HealthState `json:"previousMonitorState,omitempty"`
	// CurrentMonitorState - Current health state of the monitor. Possible values include: 'Healthy', 'Critical', 'Warning', 'Unknown', 'Disabled', 'None'
	CurrentMonitorState HealthState `json:"currentMonitorState,omitempty"`
	// Evidence - Evidence validating the monitor's current health state.
	Evidence interface{} `json:"evidence,omitempty"`
	// MonitorConfiguration - The configuration settings at the time of the monitor's health evaluation.
	MonitorConfiguration interface{} `json:"monitorConfiguration,omitempty"`
}

HealthMonitorStateChangeProperties properties of the monitor.

type HealthMonitorsClient

type HealthMonitorsClient struct {
	BaseClient
}

HealthMonitorsClient is the workload Monitor API

func NewHealthMonitorsClient

func NewHealthMonitorsClient() HealthMonitorsClient

NewHealthMonitorsClient creates an instance of the HealthMonitorsClient client.

func NewHealthMonitorsClientWithBaseURI

func NewHealthMonitorsClientWithBaseURI(baseURI string) HealthMonitorsClient

NewHealthMonitorsClientWithBaseURI creates an instance of the HealthMonitorsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (HealthMonitorsClient) Get

func (client HealthMonitorsClient) Get(ctx context.Context, subscriptionID string, resourceGroupName string, providerName string, resourceCollectionName string, resourceName string, monitorID string, expand string) (result HealthMonitor, err error)

Get sends the get request. Parameters: subscriptionID - the subscription Id of the virtual machine. resourceGroupName - the resource group of the virtual machine. providerName - the provider name (ex: Microsoft.Compute for virtual machines). resourceCollectionName - the resource collection name (ex: virtualMachines for virtual machines). resourceName - the name of the virtual machine. monitorID - the monitor Id of the virtual machine. expand - optionally expand the monitor’s evidence and/or configuration. Example: $expand=evidence,configuration.

func (HealthMonitorsClient) GetPreparer

func (client HealthMonitorsClient) GetPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, providerName string, resourceCollectionName string, resourceName string, monitorID string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (HealthMonitorsClient) GetResponder

func (client HealthMonitorsClient) GetResponder(resp *http.Response) (result HealthMonitor, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (HealthMonitorsClient) GetSender

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

func (client HealthMonitorsClient) GetStateChange(ctx context.Context, subscriptionID string, resourceGroupName string, providerName string, resourceCollectionName string, resourceName string, monitorID string, timestampUnix string, expand string) (result HealthMonitorStateChange, err error)

GetStateChange sends the get state change request. Parameters: subscriptionID - the subscription Id of the virtual machine. resourceGroupName - the resource group of the virtual machine. providerName - the provider name (ex: Microsoft.Compute for virtual machines). resourceCollectionName - the resource collection name (ex: virtualMachines for virtual machines). resourceName - the name of the virtual machine. monitorID - the monitor Id of the virtual machine. timestampUnix - the timestamp of the state change (unix format). expand - optionally expand the monitor’s evidence and/or configuration. Example: $expand=evidence,configuration.

func (HealthMonitorsClient) GetStateChangePreparer

func (client HealthMonitorsClient) GetStateChangePreparer(ctx context.Context, subscriptionID string, resourceGroupName string, providerName string, resourceCollectionName string, resourceName string, monitorID string, timestampUnix string, expand string) (*http.Request, error)

GetStateChangePreparer prepares the GetStateChange request.

func (HealthMonitorsClient) GetStateChangeResponder

func (client HealthMonitorsClient) GetStateChangeResponder(resp *http.Response) (result HealthMonitorStateChange, err error)

GetStateChangeResponder handles the response to the GetStateChange request. The method always closes the http.Response Body.

func (HealthMonitorsClient) GetStateChangeSender

func (client HealthMonitorsClient) GetStateChangeSender(req *http.Request) (*http.Response, error)

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

func (HealthMonitorsClient) List

func (client HealthMonitorsClient) List(ctx context.Context, subscriptionID string, resourceGroupName string, providerName string, resourceCollectionName string, resourceName string, filter string, expand string) (result HealthMonitorListPage, err error)

List sends the list request. Parameters: subscriptionID - the subscription Id of the virtual machine. resourceGroupName - the resource group of the virtual machine. providerName - the provider name (ex: Microsoft.Compute for virtual machines). resourceCollectionName - the resource collection name (ex: virtualMachines for virtual machines). resourceName - the name of the virtual machine. filter - optionally filter by monitor name. Example: $filter=monitorName eq 'logical-disks|C:|disk-free-space-mb.' expand - optionally expand the monitor’s evidence and/or configuration. Example: $expand=evidence,configuration.

func (HealthMonitorsClient) ListComplete

func (client HealthMonitorsClient) ListComplete(ctx context.Context, subscriptionID string, resourceGroupName string, providerName string, resourceCollectionName string, resourceName string, filter string, expand string) (result HealthMonitorListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (HealthMonitorsClient) ListPreparer

func (client HealthMonitorsClient) ListPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, providerName string, resourceCollectionName string, resourceName string, filter string, expand string) (*http.Request, error)

ListPreparer prepares the List request.

func (HealthMonitorsClient) ListResponder

func (client HealthMonitorsClient) ListResponder(resp *http.Response) (result HealthMonitorList, err error)

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

func (HealthMonitorsClient) ListSender

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

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

func (HealthMonitorsClient) ListStateChanges

func (client HealthMonitorsClient) ListStateChanges(ctx context.Context, subscriptionID string, resourceGroupName string, providerName string, resourceCollectionName string, resourceName string, monitorID string, filter string, expand string, startTimestampUtc *date.Time, endTimestampUtc *date.Time) (result HealthMonitorStateChangeListPage, err error)

ListStateChanges sends the list state changes request. Parameters: subscriptionID - the subscription Id of the virtual machine. resourceGroupName - the resource group of the virtual machine. providerName - the provider name (ex: Microsoft.Compute for virtual machines). resourceCollectionName - the resource collection name (ex: virtualMachines for virtual machines). resourceName - the name of the virtual machine. monitorID - the monitor Id of the virtual machine. filter - optionally filter by heartbeat condition. Example: $filter=isHeartbeat eq false. expand - optionally expand the monitor’s evidence and/or configuration. Example: $expand=evidence,configuration. startTimestampUtc - the start of the time window. endTimestampUtc - the end of the time window.

func (HealthMonitorsClient) ListStateChangesComplete

func (client HealthMonitorsClient) ListStateChangesComplete(ctx context.Context, subscriptionID string, resourceGroupName string, providerName string, resourceCollectionName string, resourceName string, monitorID string, filter string, expand string, startTimestampUtc *date.Time, endTimestampUtc *date.Time) (result HealthMonitorStateChangeListIterator, err error)

ListStateChangesComplete enumerates all values, automatically crossing page boundaries as required.

func (HealthMonitorsClient) ListStateChangesPreparer

func (client HealthMonitorsClient) ListStateChangesPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, providerName string, resourceCollectionName string, resourceName string, monitorID string, filter string, expand string, startTimestampUtc *date.Time, endTimestampUtc *date.Time) (*http.Request, error)

ListStateChangesPreparer prepares the ListStateChanges request.

func (HealthMonitorsClient) ListStateChangesResponder

func (client HealthMonitorsClient) ListStateChangesResponder(resp *http.Response) (result HealthMonitorStateChangeList, err error)

ListStateChangesResponder handles the response to the ListStateChanges request. The method always closes the http.Response Body.

func (HealthMonitorsClient) ListStateChangesSender

func (client HealthMonitorsClient) ListStateChangesSender(req *http.Request) (*http.Response, error)

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

type HealthState

type HealthState string

HealthState enumerates the values for health state.

const (
	// Critical ...
	Critical HealthState = "Critical"
	// Disabled ...
	Disabled HealthState = "Disabled"
	// Healthy ...
	Healthy HealthState = "Healthy"
	// None ...
	None HealthState = "None"
	// 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 Operation

type Operation struct {
	// Name - The name of the operation being performed on this particular object.
	Name *string `json:"name,omitempty"`
	// Display - The localized display information for this particular operation or action.
	Display *OperationDisplay `json:"display,omitempty"`
	// Origin - The intended executor of the operation.
	Origin *string `json:"origin,omitempty"`
}

Operation ...

type OperationDisplay

type OperationDisplay struct {
	// Provider - Operation resource provider name.
	Provider *string `json:"provider,omitempty"`
	// Resource - Resource on which the operation is performed.
	Resource *string `json:"resource,omitempty"`
	// Operation - Human-readable, friendly name for the operation.
	Operation *string `json:"operation,omitempty"`
	// Description - Operation description.
	Description *string `json:"description,omitempty"`
}

OperationDisplay the localized display information for this particular operation or action.

type OperationList

type OperationList struct {
	autorest.Response `json:"-"`
	// Value - Array of available REST API operations.
	Value *[]Operation `json:"value,omitempty"`
	// NextLink - Link to next page if the list is too long.
	NextLink *string `json:"nextLink,omitempty"`
}

OperationList ...

func (OperationList) IsEmpty

func (ol OperationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListIterator

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

OperationListIterator provides access to a complete listing of Operation values.

func NewOperationListIterator

func NewOperationListIterator(page OperationListPage) OperationListIterator

Creates a new instance of the OperationListIterator type.

func (*OperationListIterator) Next

func (iter *OperationListIterator) 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 (*OperationListIterator) NextWithContext

func (iter *OperationListIterator) 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 (OperationListIterator) NotDone

func (iter OperationListIterator) NotDone() bool

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

func (OperationListIterator) Response

func (iter OperationListIterator) Response() OperationList

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

func (OperationListIterator) Value

func (iter OperationListIterator) Value() Operation

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListPage

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

OperationListPage contains a page of Operation values.

func NewOperationListPage

func NewOperationListPage(cur OperationList, getNextPage func(context.Context, OperationList) (OperationList, error)) OperationListPage

Creates a new instance of the OperationListPage type.

func (*OperationListPage) Next

func (page *OperationListPage) 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 (*OperationListPage) NextWithContext

func (page *OperationListPage) 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 (OperationListPage) NotDone

func (page OperationListPage) NotDone() bool

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

func (OperationListPage) Response

func (page OperationListPage) Response() OperationList

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

func (OperationListPage) Values

func (page OperationListPage) Values() []Operation

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

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the workload Monitor API

func NewOperationsClient

func NewOperationsClient() OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListPage, err error)

List sends the list request.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationList, 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 Resource

type Resource struct {
	// ID - READ-ONLY; The resource Id.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The resource name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The resource type.
	Type *string `json:"type,omitempty"`
}

Resource the resource model definition for the ARM proxy resource, 'microsoft.workloadmonitor/monitors'.

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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