Monitors interface

Interface representing a Monitors.

Methods

beginCreateOrUpdate(string, string, NewRelicMonitorResource, MonitorsCreateOrUpdateOptionalParams)

Creates a new or updates an existing New Relic monitor resource in your Azure subscription. This sets up the integration between Azure and your New Relic account, enabling observability and monitoring of your Azure resources through New Relic

beginCreateOrUpdateAndWait(string, string, NewRelicMonitorResource, MonitorsCreateOrUpdateOptionalParams)

Creates a new or updates an existing New Relic monitor resource in your Azure subscription. This sets up the integration between Azure and your New Relic account, enabling observability and monitoring of your Azure resources through New Relic

beginDelete(string, string, string, MonitorsDeleteOptionalParams)

Deletes an existing New Relic monitor resource from your Azure subscription, removing the integration and stopping the observability of your Azure resources through New Relic

beginDeleteAndWait(string, string, string, MonitorsDeleteOptionalParams)

Deletes an existing New Relic monitor resource from your Azure subscription, removing the integration and stopping the observability of your Azure resources through New Relic

beginLinkSaaS(string, string, SaaSData, MonitorsLinkSaaSOptionalParams)

Links a new SaaS to the newrelic organization of the underlying monitor.

beginLinkSaaSAndWait(string, string, SaaSData, MonitorsLinkSaaSOptionalParams)

Links a new SaaS to the newrelic organization of the underlying monitor.

beginResubscribe(string, string, MonitorsResubscribeOptionalParams)

A long-running resource action.

beginResubscribeAndWait(string, string, MonitorsResubscribeOptionalParams)

A long-running resource action.

beginUpdate(string, string, NewRelicMonitorResourceUpdate, MonitorsUpdateOptionalParams)

Updates an existing New Relic monitor resource from your Azure subscription

beginUpdateAndWait(string, string, NewRelicMonitorResourceUpdate, MonitorsUpdateOptionalParams)

Updates an existing New Relic monitor resource from your Azure subscription

get(string, string, MonitorsGetOptionalParams)

Retrieves the properties and configuration details of a specific New Relic monitor resource, providing insight into its setup and status

getMetricRules(string, string, MetricsRequest, MonitorsGetMetricRulesOptionalParams)

Retrieves the metric rules that are configured in the New Relic monitor resource

getMetricStatus(string, string, MetricsStatusRequest, MonitorsGetMetricStatusOptionalParams)

Retrieves the metric status that are configured in the New Relic monitor resource

latestLinkedSaaS(string, string, MonitorsLatestLinkedSaaSOptionalParams)

Returns the latest SaaS linked to the newrelic organization of the underlying monitor.

listAppServices(string, string, AppServicesGetRequest, MonitorsListAppServicesOptionalParams)

Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring

listByResourceGroup(string, MonitorsListByResourceGroupOptionalParams)

Retrieves a list of all New Relic monitor resources either a specific resource group

listBySubscription(MonitorsListBySubscriptionOptionalParams)

Lists all New Relic monitor resources either within a specific subscription

listHosts(string, string, HostsGetRequest, MonitorsListHostsOptionalParams)

Lists all VM resources currently being monitored by the New Relic monitor resource, helping you manage observability

listLinkedResources(string, string, MonitorsListLinkedResourcesOptionalParams)

Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration

listMonitoredResources(string, string, MonitorsListMonitoredResourcesOptionalParams)

Lists all Azure resources that are currently being monitored by the specified New Relic monitor resource, providing insight into the coverage of your observability setup

refreshIngestionKey(string, string, MonitorsRefreshIngestionKeyOptionalParams)

Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor.

switchBilling(string, string, SwitchBillingRequest, MonitorsSwitchBillingOptionalParams)

Switches the billing for the New Relic Monitor resource to be billed by Azure Marketplace

vmHostPayload(string, string, MonitorsVmHostPayloadOptionalParams)

Returns the payload that needs to be passed in the request body for installing the New Relic agent on a VM, providing the necessary configuration details

Method Details

beginCreateOrUpdate(string, string, NewRelicMonitorResource, MonitorsCreateOrUpdateOptionalParams)

Creates a new or updates an existing New Relic monitor resource in your Azure subscription. This sets up the integration between Azure and your New Relic account, enabling observability and monitoring of your Azure resources through New Relic

function beginCreateOrUpdate(resourceGroupName: string, monitorName: string, resource: NewRelicMonitorResource, options?: MonitorsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<NewRelicMonitorResource>, NewRelicMonitorResource>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

resource
NewRelicMonitorResource

Resource create parameters.

options
MonitorsCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<NewRelicMonitorResource>, NewRelicMonitorResource>>

beginCreateOrUpdateAndWait(string, string, NewRelicMonitorResource, MonitorsCreateOrUpdateOptionalParams)

Creates a new or updates an existing New Relic monitor resource in your Azure subscription. This sets up the integration between Azure and your New Relic account, enabling observability and monitoring of your Azure resources through New Relic

function beginCreateOrUpdateAndWait(resourceGroupName: string, monitorName: string, resource: NewRelicMonitorResource, options?: MonitorsCreateOrUpdateOptionalParams): Promise<NewRelicMonitorResource>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

resource
NewRelicMonitorResource

Resource create parameters.

options
MonitorsCreateOrUpdateOptionalParams

The options parameters.

Returns

beginDelete(string, string, string, MonitorsDeleteOptionalParams)

Deletes an existing New Relic monitor resource from your Azure subscription, removing the integration and stopping the observability of your Azure resources through New Relic

function beginDelete(resourceGroupName: string, monitorName: string, userEmail: string, options?: MonitorsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

userEmail

string

User Email.

options
MonitorsDeleteOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, string, MonitorsDeleteOptionalParams)

Deletes an existing New Relic monitor resource from your Azure subscription, removing the integration and stopping the observability of your Azure resources through New Relic

function beginDeleteAndWait(resourceGroupName: string, monitorName: string, userEmail: string, options?: MonitorsDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

userEmail

string

User Email.

options
MonitorsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

beginLinkSaaS(string, string, SaaSData, MonitorsLinkSaaSOptionalParams)

Links a new SaaS to the newrelic organization of the underlying monitor.

function beginLinkSaaS(resourceGroupName: string, monitorName: string, body: SaaSData, options?: MonitorsLinkSaaSOptionalParams): Promise<SimplePollerLike<OperationState<NewRelicMonitorResource>, NewRelicMonitorResource>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

body
SaaSData

Link SaaS body parameter

options
MonitorsLinkSaaSOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<NewRelicMonitorResource>, NewRelicMonitorResource>>

beginLinkSaaSAndWait(string, string, SaaSData, MonitorsLinkSaaSOptionalParams)

Links a new SaaS to the newrelic organization of the underlying monitor.

function beginLinkSaaSAndWait(resourceGroupName: string, monitorName: string, body: SaaSData, options?: MonitorsLinkSaaSOptionalParams): Promise<NewRelicMonitorResource>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

body
SaaSData

Link SaaS body parameter

options
MonitorsLinkSaaSOptionalParams

The options parameters.

Returns

beginResubscribe(string, string, MonitorsResubscribeOptionalParams)

A long-running resource action.

function beginResubscribe(resourceGroupName: string, monitorName: string, options?: MonitorsResubscribeOptionalParams): Promise<SimplePollerLike<OperationState<NewRelicMonitorResource>, NewRelicMonitorResource>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

options
MonitorsResubscribeOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<NewRelicMonitorResource>, NewRelicMonitorResource>>

beginResubscribeAndWait(string, string, MonitorsResubscribeOptionalParams)

A long-running resource action.

function beginResubscribeAndWait(resourceGroupName: string, monitorName: string, options?: MonitorsResubscribeOptionalParams): Promise<NewRelicMonitorResource>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

options
MonitorsResubscribeOptionalParams

The options parameters.

Returns

beginUpdate(string, string, NewRelicMonitorResourceUpdate, MonitorsUpdateOptionalParams)

Updates an existing New Relic monitor resource from your Azure subscription

function beginUpdate(resourceGroupName: string, monitorName: string, properties: NewRelicMonitorResourceUpdate, options?: MonitorsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<NewRelicMonitorResource>, NewRelicMonitorResource>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

properties
NewRelicMonitorResourceUpdate

The resource properties to be updated.

options
MonitorsUpdateOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<NewRelicMonitorResource>, NewRelicMonitorResource>>

beginUpdateAndWait(string, string, NewRelicMonitorResourceUpdate, MonitorsUpdateOptionalParams)

Updates an existing New Relic monitor resource from your Azure subscription

function beginUpdateAndWait(resourceGroupName: string, monitorName: string, properties: NewRelicMonitorResourceUpdate, options?: MonitorsUpdateOptionalParams): Promise<NewRelicMonitorResource>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

properties
NewRelicMonitorResourceUpdate

The resource properties to be updated.

options
MonitorsUpdateOptionalParams

The options parameters.

Returns

get(string, string, MonitorsGetOptionalParams)

Retrieves the properties and configuration details of a specific New Relic monitor resource, providing insight into its setup and status

function get(resourceGroupName: string, monitorName: string, options?: MonitorsGetOptionalParams): Promise<NewRelicMonitorResource>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

options
MonitorsGetOptionalParams

The options parameters.

Returns

getMetricRules(string, string, MetricsRequest, MonitorsGetMetricRulesOptionalParams)

Retrieves the metric rules that are configured in the New Relic monitor resource

function getMetricRules(resourceGroupName: string, monitorName: string, request: MetricsRequest, options?: MonitorsGetMetricRulesOptionalParams): Promise<MetricRules>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

request
MetricsRequest

The details of the get metrics status request.

options
MonitorsGetMetricRulesOptionalParams

The options parameters.

Returns

Promise<MetricRules>

getMetricStatus(string, string, MetricsStatusRequest, MonitorsGetMetricStatusOptionalParams)

Retrieves the metric status that are configured in the New Relic monitor resource

function getMetricStatus(resourceGroupName: string, monitorName: string, request: MetricsStatusRequest, options?: MonitorsGetMetricStatusOptionalParams): Promise<MetricsStatusResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

request
MetricsStatusRequest

The details of the get metrics status request.

options
MonitorsGetMetricStatusOptionalParams

The options parameters.

Returns

latestLinkedSaaS(string, string, MonitorsLatestLinkedSaaSOptionalParams)

Returns the latest SaaS linked to the newrelic organization of the underlying monitor.

function latestLinkedSaaS(resourceGroupName: string, monitorName: string, options?: MonitorsLatestLinkedSaaSOptionalParams): Promise<LatestLinkedSaaSResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

options
MonitorsLatestLinkedSaaSOptionalParams

The options parameters.

Returns

listAppServices(string, string, AppServicesGetRequest, MonitorsListAppServicesOptionalParams)

Lists the app service resources currently being monitored by the New Relic resource, helping you understand which app services are under monitoring

function listAppServices(resourceGroupName: string, monitorName: string, request: AppServicesGetRequest, options?: MonitorsListAppServicesOptionalParams): PagedAsyncIterableIterator<AppServiceInfo, AppServiceInfo[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

request
AppServicesGetRequest

The details of the app services get request.

options
MonitorsListAppServicesOptionalParams

The options parameters.

Returns

listByResourceGroup(string, MonitorsListByResourceGroupOptionalParams)

Retrieves a list of all New Relic monitor resources either a specific resource group

function listByResourceGroup(resourceGroupName: string, options?: MonitorsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<NewRelicMonitorResource, NewRelicMonitorResource[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

options
MonitorsListByResourceGroupOptionalParams

The options parameters.

Returns

listBySubscription(MonitorsListBySubscriptionOptionalParams)

Lists all New Relic monitor resources either within a specific subscription

function listBySubscription(options?: MonitorsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<NewRelicMonitorResource, NewRelicMonitorResource[], PageSettings>

Parameters

options
MonitorsListBySubscriptionOptionalParams

The options parameters.

Returns

listHosts(string, string, HostsGetRequest, MonitorsListHostsOptionalParams)

Lists all VM resources currently being monitored by the New Relic monitor resource, helping you manage observability

function listHosts(resourceGroupName: string, monitorName: string, request: HostsGetRequest, options?: MonitorsListHostsOptionalParams): PagedAsyncIterableIterator<VMInfo, VMInfo[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

request
HostsGetRequest

The details of the Hosts get request.

options
MonitorsListHostsOptionalParams

The options parameters.

Returns

listLinkedResources(string, string, MonitorsListLinkedResourcesOptionalParams)

Lists all Azure resources that are linked to the same New Relic organization as the specified monitor resource, helping you understand the scope of integration

function listLinkedResources(resourceGroupName: string, monitorName: string, options?: MonitorsListLinkedResourcesOptionalParams): PagedAsyncIterableIterator<LinkedResource, LinkedResource[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

options
MonitorsListLinkedResourcesOptionalParams

The options parameters.

Returns

listMonitoredResources(string, string, MonitorsListMonitoredResourcesOptionalParams)

Lists all Azure resources that are currently being monitored by the specified New Relic monitor resource, providing insight into the coverage of your observability setup

function listMonitoredResources(resourceGroupName: string, monitorName: string, options?: MonitorsListMonitoredResourcesOptionalParams): PagedAsyncIterableIterator<MonitoredResource, MonitoredResource[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

options
MonitorsListMonitoredResourcesOptionalParams

The options parameters.

Returns

refreshIngestionKey(string, string, MonitorsRefreshIngestionKeyOptionalParams)

Refreshes the ingestion key for all monitors linked to the same account associated to the underlying monitor.

function refreshIngestionKey(resourceGroupName: string, monitorName: string, options?: MonitorsRefreshIngestionKeyOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

options
MonitorsRefreshIngestionKeyOptionalParams

The options parameters.

Returns

Promise<void>

switchBilling(string, string, SwitchBillingRequest, MonitorsSwitchBillingOptionalParams)

Switches the billing for the New Relic Monitor resource to be billed by Azure Marketplace

function switchBilling(resourceGroupName: string, monitorName: string, request: SwitchBillingRequest, options?: MonitorsSwitchBillingOptionalParams): Promise<NewRelicMonitorResource>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

request
SwitchBillingRequest

The details of the switch billing request.

options
MonitorsSwitchBillingOptionalParams

The options parameters.

Returns

vmHostPayload(string, string, MonitorsVmHostPayloadOptionalParams)

Returns the payload that needs to be passed in the request body for installing the New Relic agent on a VM, providing the necessary configuration details

function vmHostPayload(resourceGroupName: string, monitorName: string, options?: MonitorsVmHostPayloadOptionalParams): Promise<VMExtensionPayload>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

monitorName

string

Name of the Monitors resource

options
MonitorsVmHostPayloadOptionalParams

The options parameters.

Returns