workloadmonitor

package
v47.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 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 DefaultError

type DefaultError struct {
	// Error - Details about the error
	Error *DefaultErrorError `json:"error,omitempty"`
}

DefaultError error body contract.

type DefaultErrorError

type DefaultErrorError 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 - Details of the error.
	Details *[]ErrorDetails `json:"details,omitempty"`
}

DefaultErrorError details about the error

type ErrorDetails

type ErrorDetails struct {
	// Code - Property level error code.
	Code *string `json:"code,omitempty"`
	// Message - Human-readable representation of property-level error.
	Message *string `json:"message,omitempty"`
}

ErrorDetails error details of the error body contract.

type HealthState

type HealthState string

HealthState enumerates the values for health state.

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

type Monitor struct {
	autorest.Response  `json:"-"`
	*MonitorProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Arm ID of this monitor.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Url-encoded monitor name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Type of ARM resource.
	Type *string `json:"type,omitempty"`
}

Monitor information about a monitor.

func (Monitor) MarshalJSON

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

MarshalJSON is the custom marshaler for Monitor.

func (*Monitor) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for Monitor struct.

type MonitorList

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

MonitorList basic information about the current status of a monitor.

func (MonitorList) IsEmpty

func (ml MonitorList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type MonitorListIterator

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

MonitorListIterator provides access to a complete listing of Monitor values.

func NewMonitorListIterator

func NewMonitorListIterator(page MonitorListPage) MonitorListIterator

Creates a new instance of the MonitorListIterator type.

func (*MonitorListIterator) Next

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

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

func (iter MonitorListIterator) NotDone() bool

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

func (MonitorListIterator) Response

func (iter MonitorListIterator) Response() MonitorList

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

func (MonitorListIterator) Value

func (iter MonitorListIterator) Value() Monitor

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

type MonitorListPage

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

MonitorListPage contains a page of Monitor values.

func NewMonitorListPage

func NewMonitorListPage(getNextPage func(context.Context, MonitorList) (MonitorList, error)) MonitorListPage

Creates a new instance of the MonitorListPage type.

func (*MonitorListPage) Next

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

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

func (page MonitorListPage) NotDone() bool

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

func (MonitorListPage) Response

func (page MonitorListPage) Response() MonitorList

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

func (MonitorListPage) Values

func (page MonitorListPage) Values() []Monitor

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

type MonitorProperties

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

MonitorProperties properties of the monitor.

type MonitorStateChange

type MonitorStateChange struct {
	autorest.Response             `json:"-"`
	*MonitorStateChangeProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Arm ID of this monitor.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Url-encoded monitor name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Type of ARM resource.
	Type *string `json:"type,omitempty"`
}

MonitorStateChange information about a state transition of a monitor.

func (MonitorStateChange) MarshalJSON

func (msc MonitorStateChange) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for MonitorStateChange.

func (*MonitorStateChange) UnmarshalJSON

func (msc *MonitorStateChange) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for MonitorStateChange struct.

type MonitorStateChangeList

type MonitorStateChangeList struct {
	autorest.Response `json:"-"`
	// Value - Array of state change transitions.
	Value *[]MonitorStateChange `json:"value,omitempty"`
	// NextLink - Link to next page if list is too long.
	NextLink *string `json:"nextLink,omitempty"`
}

MonitorStateChangeList the monitor history of a monitor

func (MonitorStateChangeList) IsEmpty

func (mscl MonitorStateChangeList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type MonitorStateChangeListIterator

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

MonitorStateChangeListIterator provides access to a complete listing of MonitorStateChange values.

func NewMonitorStateChangeListIterator

func NewMonitorStateChangeListIterator(page MonitorStateChangeListPage) MonitorStateChangeListIterator

Creates a new instance of the MonitorStateChangeListIterator type.

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

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

func (iter MonitorStateChangeListIterator) NotDone() bool

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

func (MonitorStateChangeListIterator) Response

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

func (MonitorStateChangeListIterator) Value

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

type MonitorStateChangeListPage

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

MonitorStateChangeListPage contains a page of MonitorStateChange values.

func NewMonitorStateChangeListPage

func NewMonitorStateChangeListPage(getNextPage func(context.Context, MonitorStateChangeList) (MonitorStateChangeList, error)) MonitorStateChangeListPage

Creates a new instance of the MonitorStateChangeListPage type.

func (*MonitorStateChangeListPage) Next

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

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

func (page MonitorStateChangeListPage) NotDone() bool

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

func (MonitorStateChangeListPage) Response

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

func (MonitorStateChangeListPage) Values

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

type MonitorStateChangeProperties

type MonitorStateChangeProperties struct {
	// MonitorName - Human-readable name of this monitor.
	MonitorName *string `json:"monitorName,omitempty"`
	// MonitorType - Type of this monitor.
	MonitorType *string `json:"monitorType,omitempty"`
	// MonitoredObject - Dynamic monitored object of this monitor.
	MonitoredObject *string `json:"monitoredObject,omitempty"`
	// EvaluationTimestamp - Timestamp of that this event ocurred.
	EvaluationTimestamp *string `json:"evaluationTimestamp,omitempty"`
	// CurrentStateFirstObservedTimestamp - Timestamp of that this health state first ocurred.
	CurrentStateFirstObservedTimestamp *string `json:"currentStateFirstObservedTimestamp,omitempty"`
	// PreviousMonitorState - Previous health state. Possible values include: 'Healthy', 'Critical', 'Warning', 'Unknown'
	PreviousMonitorState HealthState `json:"previousMonitorState,omitempty"`
	// CurrentMonitorState - New health state. Possible values include: 'Healthy', 'Critical', 'Warning', 'Unknown'
	CurrentMonitorState HealthState `json:"currentMonitorState,omitempty"`
	// Evidence - Evidence of this monitor's last state change.
	Evidence interface{} `json:"evidence,omitempty"`
	// MonitorConfiguration - Configuration settings at the time of this monitor's last state change.
	MonitorConfiguration interface{} `json:"monitorConfiguration,omitempty"`
}

MonitorStateChangeProperties properties of the monitor.

type MonitorsClient

type MonitorsClient struct {
	BaseClient
}

MonitorsClient is the workload Monitor API

func NewMonitorsClient

func NewMonitorsClient() MonitorsClient

NewMonitorsClient creates an instance of the MonitorsClient client.

func NewMonitorsClientWithBaseURI

func NewMonitorsClientWithBaseURI(baseURI string) MonitorsClient

NewMonitorsClientWithBaseURI creates an instance of the MonitorsClient 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 (MonitorsClient) Get

func (client MonitorsClient) Get(ctx context.Context, subscriptionID string, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, monitorID string, expand string) (result Monitor, err error)

Get sends the get request. Parameters: subscriptionID - the subscriptionId of the resource resourceGroupName - the resourceGroupName of the resource resourceNamespace - the resourceNamespace of the resource resourceType - the resourceType of the resource resourceName - the resourceType of the resource monitorID - the monitorId of the resource (url encoded) expand - ex: $expand=evidence,configuration

func (MonitorsClient) GetPreparer

func (client MonitorsClient) GetPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, monitorID string, expand string) (*http.Request, error)

GetPreparer prepares the Get request.

func (MonitorsClient) GetResponder

func (client MonitorsClient) GetResponder(resp *http.Response) (result Monitor, err error)

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

func (MonitorsClient) GetSender

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

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

func (MonitorsClient) GetStateChange

func (client MonitorsClient) GetStateChange(ctx context.Context, subscriptionID string, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, monitorID string, timestampUnix string, expand string) (result MonitorStateChange, err error)

GetStateChange sends the get state change request. Parameters: subscriptionID - the subscriptionId of the resource resourceGroupName - the resourceGroupName of the resource resourceNamespace - the resourceNamespace of the resource resourceType - the resourceType of the resource resourceName - the resourceType of the resource monitorID - the monitorId of the resource (url encoded) timestampUnix - the timestamp of the state change (Unix format) expand - ex: $expand=evidence,configuration

func (MonitorsClient) GetStateChangePreparer

func (client MonitorsClient) GetStateChangePreparer(ctx context.Context, subscriptionID string, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, monitorID string, timestampUnix string, expand string) (*http.Request, error)

GetStateChangePreparer prepares the GetStateChange request.

func (MonitorsClient) GetStateChangeResponder

func (client MonitorsClient) GetStateChangeResponder(resp *http.Response) (result MonitorStateChange, err error)

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

func (MonitorsClient) GetStateChangeSender

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

func (client MonitorsClient) List(ctx context.Context, subscriptionID string, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, filter string, expand string) (result MonitorListPage, err error)

List sends the list request. Parameters: subscriptionID - the subscriptionId of the resource resourceGroupName - the resourceGroupName of the resource resourceNamespace - the resourceNamespace of the resource resourceType - the resourceType of the resource resourceName - the resourceType of the resource filter - list example: $filter=monitorName eq 'logical-disks|C:|disk-free-space-mb'; history example: $filter=isHeartbeat eq false expand - ex: $expand=evidence,configuration

func (MonitorsClient) ListComplete

func (client MonitorsClient) ListComplete(ctx context.Context, subscriptionID string, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, filter string, expand string) (result MonitorListIterator, err error)

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

func (MonitorsClient) ListPreparer

func (client MonitorsClient) ListPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, filter string, expand string) (*http.Request, error)

ListPreparer prepares the List request.

func (MonitorsClient) ListResponder

func (client MonitorsClient) ListResponder(resp *http.Response) (result MonitorList, err error)

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

func (MonitorsClient) ListSender

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

func (client MonitorsClient) ListStateChanges(ctx context.Context, subscriptionID string, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, monitorID string, filter string, expand string, startTimestampUtc *date.Time, endTimestampUtc *date.Time) (result MonitorStateChangeListPage, err error)

ListStateChanges sends the list state changes request. Parameters: subscriptionID - the subscriptionId of the resource resourceGroupName - the resourceGroupName of the resource resourceNamespace - the resourceNamespace of the resource resourceType - the resourceType of the resource resourceName - the resourceType of the resource monitorID - the monitorId of the resource (url encoded) filter - list example: $filter=monitorName eq 'logical-disks|C:|disk-free-space-mb'; history example: $filter=isHeartbeat eq false expand - ex: $expand=evidence,configuration startTimestampUtc - the start Timestamp for the desired history endTimestampUtc - the end Timestamp for the desired history

func (MonitorsClient) ListStateChangesComplete

func (client MonitorsClient) ListStateChangesComplete(ctx context.Context, subscriptionID string, resourceGroupName string, resourceNamespace string, resourceType string, resourceName string, monitorID string, filter string, expand string, startTimestampUtc *date.Time, endTimestampUtc *date.Time) (result MonitorStateChangeListIterator, err error)

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

func (MonitorsClient) ListStateChangesPreparer

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

ListStateChangesPreparer prepares the ListStateChanges request.

func (MonitorsClient) ListStateChangesResponder

func (client MonitorsClient) ListStateChangesResponder(resp *http.Response) (result MonitorStateChangeList, err error)

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

func (MonitorsClient) ListStateChangesSender

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

type Operation struct {
	// Name - Name of the operation.
	Name *string `json:"name,omitempty"`
	// Display - The properties of the resource operation.
	Display *OperationDisplay `json:"display,omitempty"`
	// Origin - The origin of the operation.
	Origin *string `json:"origin,omitempty"`
}

Operation operation supported by the resource provider.

type OperationDisplay

type OperationDisplay struct {
	// Provider - Provider name of this operation.
	Provider *string `json:"provider,omitempty"`
	// Resource - Resource name of this operation.
	Resource *string `json:"resource,omitempty"`
	// Operation - Operation name of the operation.
	Operation *string `json:"operation,omitempty"`
	// Description - Description of the operation.
	Description *string `json:"description,omitempty"`
}

OperationDisplay the properties of the resource operation.

type OperationList

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

OperationList list of possible operations.

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(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; Arm ID of this monitor.
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; Url-encoded monitor name.
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; Type of ARM resource.
	Type *string `json:"type,omitempty"`
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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