NewRelicObservabilityExtensions.GetNewRelicMonitorResource Method

Definition

Overloads

GetNewRelicMonitorResource(ArmClient, ResourceIdentifier)

Gets an object representing a NewRelicMonitorResource 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 NewRelicMonitorResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetNewRelicMonitorResource(ResourceIdentifier) instead.

GetNewRelicMonitorResource(ResourceGroupResource, String, CancellationToken)

Get a NewRelicMonitorResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}
  • Operation Id: Monitors_Get
  • Default Api Version: 2024-03-01
  • Resource: NewRelicMonitorResource

GetNewRelicMonitorResource(ArmClient, ResourceIdentifier)

Source:
NewRelicObservabilityExtensions.cs

Gets an object representing a NewRelicMonitorResource 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 NewRelicMonitorResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetNewRelicMonitorResource(ResourceIdentifier) instead.

C#
public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource GetNewRelicMonitorResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a NewRelicMonitorResource object.

Exceptions

client is null.

Applies to

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest

GetNewRelicMonitorResource(ResourceGroupResource, String, CancellationToken)

Source:
NewRelicObservabilityExtensions.cs

Get a NewRelicMonitorResource

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/NewRelic.Observability/monitors/{monitorName}
  • Operation Id: Monitors_Get
  • Default Api Version: 2024-03-01
  • Resource: NewRelicMonitorResource
C#
public static Azure.Response<Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource> GetNewRelicMonitorResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string monitorName, System.Threading.CancellationToken cancellationToken = default);

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

monitorName
String

Name of the Monitors resource.

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

Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest