Share via


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.

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

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

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
public static Azure.Response<Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource> GetNewRelicMonitorResource (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string monitorName, System.Threading.CancellationToken cancellationToken = default);
static member GetNewRelicMonitorResource : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource>
<Extension()>
Public Function GetNewRelicMonitorResource (resourceGroupResource As ResourceGroupResource, monitorName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of NewRelicMonitorResource)

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