NewRelicObservabilityExtensions.GetNewRelicMonitorResources Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetNewRelicMonitorResources(ResourceGroupResource) |
Gets a collection of NewRelicMonitorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetNewRelicMonitorResources() instead. |
GetNewRelicMonitorResources(SubscriptionResource, CancellationToken) |
List NewRelicMonitorResource resources by subscription ID
|
GetNewRelicMonitorResources(ResourceGroupResource)
Gets a collection of NewRelicMonitorResources in the ResourceGroupResource. MockingTo mock this method, please mock GetNewRelicMonitorResources() instead.
public static Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceCollection GetNewRelicMonitorResources (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetNewRelicMonitorResources : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResourceCollection
<Extension()>
Public Function GetNewRelicMonitorResources (resourceGroupResource As ResourceGroupResource) As NewRelicMonitorResourceCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of NewRelicMonitorResources and their operations over a NewRelicMonitorResource.
Exceptions
resourceGroupResource
is null.
Applies to
GetNewRelicMonitorResources(SubscriptionResource, CancellationToken)
List NewRelicMonitorResource resources by subscription ID
- Request Path: /subscriptions/{subscriptionId}/providers/NewRelic.Observability/monitors
- Operation Id: Monitors_ListBySubscription
- Default Api Version: 2024-03-01
- Resource: NewRelicMonitorResource
public static Azure.Pageable<Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource> GetNewRelicMonitorResources (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetNewRelicMonitorResources : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.NewRelicObservability.NewRelicMonitorResource>
<Extension()>
Public Function GetNewRelicMonitorResources (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of NewRelicMonitorResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of NewRelicMonitorResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
Azure SDK for .NET