MonitorWorkspaceResource.GetMonitorMetricsContainerAsync Method

Definition

Gets metrics container settings for a monitoring account.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.Workspaces.MonitorMetricsContainerResource>> GetMonitorMetricsContainerAsync(string metricsContainerName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMonitorMetricsContainerAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.Workspaces.MonitorMetricsContainerResource>>
override this.GetMonitorMetricsContainerAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Monitor.Workspaces.MonitorMetricsContainerResource>>
Public Overridable Function GetMonitorMetricsContainerAsync (metricsContainerName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MonitorMetricsContainerResource))

Parameters

metricsContainerName
String

The name of the MetricsContainer.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

metricsContainerName is null.

metricsContainerName is an empty string, and was expected to be non-empty.

Applies to