Monitors interface

Interface representing a Monitors.

Methods

beginCreateOrUpdate(string, string, NewRelicMonitorResource, MonitorsCreateOrUpdateOptionalParams)

Create a NewRelicMonitorResource

beginCreateOrUpdateAndWait(string, string, NewRelicMonitorResource, MonitorsCreateOrUpdateOptionalParams)

Create a NewRelicMonitorResource

beginDelete(string, string, string, MonitorsDeleteOptionalParams)

Delete a NewRelicMonitorResource

beginDeleteAndWait(string, string, string, MonitorsDeleteOptionalParams)

Delete a NewRelicMonitorResource

get(string, string, MonitorsGetOptionalParams)

Get a NewRelicMonitorResource

getMetricRules(string, string, MetricsRequest, MonitorsGetMetricRulesOptionalParams)

Get metric rules

getMetricStatus(string, string, MetricsStatusRequest, MonitorsGetMetricStatusOptionalParams)

Get metric status

listAppServices(string, string, AppServicesGetRequest, MonitorsListAppServicesOptionalParams)

List the app service resources currently being monitored by the NewRelic resource.

listByResourceGroup(string, MonitorsListByResourceGroupOptionalParams)

List NewRelicMonitorResource resources by resource group

listBySubscription(MonitorsListBySubscriptionOptionalParams)

List NewRelicMonitorResource resources by subscription ID

listHosts(string, string, HostsGetRequest, MonitorsListHostsOptionalParams)

List the compute vm resources currently being monitored by the NewRelic resource.

listLinkedResources(string, string, MonitorsListLinkedResourcesOptionalParams)

List all Azure resources associated to the same NewRelic organization and account as the target resource.

listMonitoredResources(string, string, MonitorsListMonitoredResourcesOptionalParams)

List the resources currently being monitored by the NewRelic monitor resource.

switchBilling(string, string, SwitchBillingRequest, MonitorsSwitchBillingOptionalParams)

Switches the billing for NewRelic monitor resource.

update(string, string, NewRelicMonitorResourceUpdate, MonitorsUpdateOptionalParams)

Update a NewRelicMonitorResource

vmHostPayload(string, string, MonitorsVmHostPayloadOptionalParams)

Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM.

Method Details

beginCreateOrUpdate(string, string, NewRelicMonitorResource, MonitorsCreateOrUpdateOptionalParams)

Create a NewRelicMonitorResource

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

beginCreateOrUpdateAndWait(string, string, NewRelicMonitorResource, MonitorsCreateOrUpdateOptionalParams)

Create a NewRelicMonitorResource

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)

Delete a NewRelicMonitorResource

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

Parameters

resourceGroupName

string

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

userEmail

string

User Email.

monitorName

string

Name of the Monitors resource

options
MonitorsDeleteOptionalParams

The options parameters.

Returns

Promise<SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, string, MonitorsDeleteOptionalParams)

Delete a NewRelicMonitorResource

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

Parameters

resourceGroupName

string

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

userEmail

string

User Email.

monitorName

string

Name of the Monitors resource

options
MonitorsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, MonitorsGetOptionalParams)

Get a NewRelicMonitorResource

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)

Get metric rules

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)

Get metric status

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

listAppServices(string, string, AppServicesGetRequest, MonitorsListAppServicesOptionalParams)

List the app service resources currently being monitored by the NewRelic resource.

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)

List NewRelicMonitorResource resources by 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)

List NewRelicMonitorResource resources by subscription ID

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

Parameters

options
MonitorsListBySubscriptionOptionalParams

The options parameters.

Returns

listHosts(string, string, HostsGetRequest, MonitorsListHostsOptionalParams)

List the compute vm resources currently being monitored by the NewRelic resource.

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)

List all Azure resources associated to the same NewRelic organization and account as the target resource.

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)

List the resources currently being monitored by the NewRelic monitor resource.

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

switchBilling(string, string, SwitchBillingRequest, MonitorsSwitchBillingOptionalParams)

Switches the billing for NewRelic monitor resource.

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

update(string, string, NewRelicMonitorResourceUpdate, MonitorsUpdateOptionalParams)

Update a NewRelicMonitorResource

function update(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

vmHostPayload(string, string, MonitorsVmHostPayloadOptionalParams)

Returns the payload that needs to be passed in the request body for installing NewRelic agent on a VM.

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