Sdílet prostřednictvím


DatadogExtensions.GetDatadogMonitorResource Method

Definition

Overloads

GetDatadogMonitorResource(ArmClient, ResourceIdentifier)

Gets an object representing a DatadogMonitorResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a DatadogMonitorResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDatadogMonitorResource(ResourceIdentifier) instead.

GetDatadogMonitorResource(ResourceGroupResource, String, CancellationToken)

Get the properties of a specific monitor resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}
  • Operation Id: Monitors_Get

GetDatadogMonitorResource(ArmClient, ResourceIdentifier)

Source:
DatadogExtensions.cs

Gets an object representing a DatadogMonitorResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a DatadogMonitorResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetDatadogMonitorResource(ResourceIdentifier) instead.

public static Azure.ResourceManager.Datadog.DatadogMonitorResource GetDatadogMonitorResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetDatadogMonitorResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.Datadog.DatadogMonitorResource
<Extension()>
Public Function GetDatadogMonitorResource (client As ArmClient, id As ResourceIdentifier) As DatadogMonitorResource

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a DatadogMonitorResource object.

Exceptions

client is null.

Applies to

GetDatadogMonitorResource(ResourceGroupResource, String, CancellationToken)

Source:
DatadogExtensions.cs

Get the properties of a specific monitor resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Datadog/monitors/{monitorName}
  • Operation Id: Monitors_Get
public static Azure.Response<Azure.ResourceManager.Datadog.DatadogMonitorResource> GetDatadogMonitorResource (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string monitorName, System.Threading.CancellationToken cancellationToken = default);
static member GetDatadogMonitorResource : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Datadog.DatadogMonitorResource>
<Extension()>
Public Function GetDatadogMonitorResource (resourceGroupResource As ResourceGroupResource, monitorName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DatadogMonitorResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

monitorName
String

Monitor resource name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or monitorName is null.

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

Applies to