azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor Index | Files | Directories

package workloadmonitor

import "github.com/Azure/azure-sdk-for-go/services/preview/workloadmonitor/mgmt/2020-01-13-preview/workloadmonitor"

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

Workload Monitor API

Index

Package Files

client.go enums.go healthmonitors.go models.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 BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI string
}

BaseClient is the base client for Workloadmonitor.

func New Uses

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

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 Uses

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 Uses

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

ErrorResponse ...

type ErrorResponseError Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for HealthMonitor.

func (*HealthMonitor) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for HealthMonitor struct.

type HealthMonitorList Uses

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 Uses

func (hml HealthMonitorList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type HealthMonitorListIterator Uses

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

HealthMonitorListIterator provides access to a complete listing of HealthMonitor values.

func NewHealthMonitorListIterator Uses

func NewHealthMonitorListIterator(page HealthMonitorListPage) HealthMonitorListIterator

Creates a new instance of the HealthMonitorListIterator type.

func (*HealthMonitorListIterator) Next Uses

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 Uses

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 Uses

func (iter HealthMonitorListIterator) NotDone() bool

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

func (HealthMonitorListIterator) Response Uses

func (iter HealthMonitorListIterator) Response() HealthMonitorList

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

func (HealthMonitorListIterator) Value Uses

func (iter HealthMonitorListIterator) Value() HealthMonitor

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

type HealthMonitorListPage Uses

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

HealthMonitorListPage contains a page of HealthMonitor values.

func NewHealthMonitorListPage Uses

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

Creates a new instance of the HealthMonitorListPage type.

func (*HealthMonitorListPage) Next Uses

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 Uses

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 Uses

func (page HealthMonitorListPage) NotDone() bool

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

func (HealthMonitorListPage) Response Uses

func (page HealthMonitorListPage) Response() HealthMonitorList

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

func (HealthMonitorListPage) Values Uses

func (page HealthMonitorListPage) Values() []HealthMonitor

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

type HealthMonitorProperties Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for HealthMonitorStateChange.

func (*HealthMonitorStateChange) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for HealthMonitorStateChange struct.

type HealthMonitorStateChangeList Uses

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 Uses

func (hmscl HealthMonitorStateChangeList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type HealthMonitorStateChangeListIterator Uses

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

HealthMonitorStateChangeListIterator provides access to a complete listing of HealthMonitorStateChange values.

func NewHealthMonitorStateChangeListIterator Uses

func NewHealthMonitorStateChangeListIterator(page HealthMonitorStateChangeListPage) HealthMonitorStateChangeListIterator

Creates a new instance of the HealthMonitorStateChangeListIterator type.

func (*HealthMonitorStateChangeListIterator) Next Uses

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

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 Uses

func (iter HealthMonitorStateChangeListIterator) NotDone() bool

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

func (HealthMonitorStateChangeListIterator) Response Uses

func (iter HealthMonitorStateChangeListIterator) Response() HealthMonitorStateChangeList

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

func (HealthMonitorStateChangeListIterator) Value Uses

func (iter HealthMonitorStateChangeListIterator) Value() HealthMonitorStateChange

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

type HealthMonitorStateChangeListPage Uses

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

HealthMonitorStateChangeListPage contains a page of HealthMonitorStateChange values.

func NewHealthMonitorStateChangeListPage Uses

func NewHealthMonitorStateChangeListPage(cur HealthMonitorStateChangeList, getNextPage func(context.Context, HealthMonitorStateChangeList) (HealthMonitorStateChangeList, error)) HealthMonitorStateChangeListPage

Creates a new instance of the HealthMonitorStateChangeListPage type.

func (*HealthMonitorStateChangeListPage) Next Uses

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

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 Uses

func (page HealthMonitorStateChangeListPage) NotDone() bool

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

func (HealthMonitorStateChangeListPage) Response Uses

func (page HealthMonitorStateChangeListPage) Response() HealthMonitorStateChangeList

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

func (HealthMonitorStateChangeListPage) Values Uses

func (page HealthMonitorStateChangeListPage) Values() []HealthMonitorStateChange

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

type HealthMonitorStateChangeProperties Uses

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 Uses

type HealthMonitorsClient struct {
    BaseClient
}

HealthMonitorsClient is the workload Monitor API

func NewHealthMonitorsClient Uses

func NewHealthMonitorsClient() HealthMonitorsClient

NewHealthMonitorsClient creates an instance of the HealthMonitorsClient client.

func NewHealthMonitorsClientWithBaseURI Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

func PossibleHealthStateValues() []HealthState

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

type Operation Uses

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 Uses

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 Uses

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 Uses

func (ol OperationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListIterator Uses

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

OperationListIterator provides access to a complete listing of Operation values.

func NewOperationListIterator Uses

func NewOperationListIterator(page OperationListPage) OperationListIterator

Creates a new instance of the OperationListIterator type.

func (*OperationListIterator) Next Uses

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 Uses

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 Uses

func (iter OperationListIterator) NotDone() bool

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

func (OperationListIterator) Response Uses

func (iter OperationListIterator) Response() OperationList

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

func (OperationListIterator) Value Uses

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 Uses

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

OperationListPage contains a page of Operation values.

func NewOperationListPage Uses

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

Creates a new instance of the OperationListPage type.

func (*OperationListPage) Next Uses

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 Uses

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 Uses

func (page OperationListPage) NotDone() bool

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

func (OperationListPage) Response Uses

func (page OperationListPage) Response() OperationList

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

func (OperationListPage) Values Uses

func (page OperationListPage) Values() []Operation

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

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the workload Monitor API

func NewOperationsClient Uses

func NewOperationsClient() OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

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 Uses

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

List sends the list request.

func (OperationsClient) ListComplete Uses

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

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

func (OperationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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 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 Resource Uses

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

Directories

PathSynopsis
workloadmonitorapi

Package workloadmonitor imports 9 packages (graph) and is imported by 1 packages. Updated 2021-01-17. Refresh now. Tools for package owners.