MonitoringConfig interface

Interface representing a MonitoringConfig.

Methods

beginCreateOrUpdate(string, string, string, MonitoringMetricConfiguration, MonitoringConfigCreateOrUpdateOptionalParams)

Creates a new metric configuration or updates an existing one for a role.

beginCreateOrUpdateAndWait(string, string, string, MonitoringMetricConfiguration, MonitoringConfigCreateOrUpdateOptionalParams)

Creates a new metric configuration or updates an existing one for a role.

beginDelete(string, string, string, MonitoringConfigDeleteOptionalParams)

deletes a new metric configuration for a role.

beginDeleteAndWait(string, string, string, MonitoringConfigDeleteOptionalParams)

deletes a new metric configuration for a role.

get(string, string, string, MonitoringConfigGetOptionalParams)

Gets a metric configuration of a role.

list(string, string, string, MonitoringConfigListOptionalParams)

Lists metric configurations in a role.

Method Details

beginCreateOrUpdate(string, string, string, MonitoringMetricConfiguration, MonitoringConfigCreateOrUpdateOptionalParams)

Creates a new metric configuration or updates an existing one for a role.

function beginCreateOrUpdate(deviceName: string, roleName: string, resourceGroupName: string, monitoringMetricConfiguration: MonitoringMetricConfiguration, options?: MonitoringConfigCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<MonitoringMetricConfiguration>, MonitoringMetricConfiguration>>

Parameters

deviceName

string

The device name.

roleName

string

The role name.

resourceGroupName

string

The resource group name.

monitoringMetricConfiguration
MonitoringMetricConfiguration

The metric configuration.

options
MonitoringConfigCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<PollerLike<@azure/core-lro.PollOperationState<MonitoringMetricConfiguration>, MonitoringMetricConfiguration>>

beginCreateOrUpdateAndWait(string, string, string, MonitoringMetricConfiguration, MonitoringConfigCreateOrUpdateOptionalParams)

Creates a new metric configuration or updates an existing one for a role.

function beginCreateOrUpdateAndWait(deviceName: string, roleName: string, resourceGroupName: string, monitoringMetricConfiguration: MonitoringMetricConfiguration, options?: MonitoringConfigCreateOrUpdateOptionalParams): Promise<MonitoringMetricConfiguration>

Parameters

deviceName

string

The device name.

roleName

string

The role name.

resourceGroupName

string

The resource group name.

monitoringMetricConfiguration
MonitoringMetricConfiguration

The metric configuration.

options
MonitoringConfigCreateOrUpdateOptionalParams

The options parameters.

Returns

beginDelete(string, string, string, MonitoringConfigDeleteOptionalParams)

deletes a new metric configuration for a role.

function beginDelete(deviceName: string, roleName: string, resourceGroupName: string, options?: MonitoringConfigDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>

Parameters

deviceName

string

The device name.

roleName

string

The role name.

resourceGroupName

string

The resource group name.

options
MonitoringConfigDeleteOptionalParams

The options parameters.

Returns

Promise<PollerLike<@azure/core-lro.PollOperationState<void>, void>>

beginDeleteAndWait(string, string, string, MonitoringConfigDeleteOptionalParams)

deletes a new metric configuration for a role.

function beginDeleteAndWait(deviceName: string, roleName: string, resourceGroupName: string, options?: MonitoringConfigDeleteOptionalParams): Promise<void>

Parameters

deviceName

string

The device name.

roleName

string

The role name.

resourceGroupName

string

The resource group name.

options
MonitoringConfigDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, string, MonitoringConfigGetOptionalParams)

Gets a metric configuration of a role.

function get(deviceName: string, roleName: string, resourceGroupName: string, options?: MonitoringConfigGetOptionalParams): Promise<MonitoringMetricConfiguration>

Parameters

deviceName

string

The device name.

roleName

string

The role name.

resourceGroupName

string

The resource group name.

options
MonitoringConfigGetOptionalParams

The options parameters.

Returns

list(string, string, string, MonitoringConfigListOptionalParams)

Lists metric configurations in a role.

function list(deviceName: string, roleName: string, resourceGroupName: string, options?: MonitoringConfigListOptionalParams): PagedAsyncIterableIterator<MonitoringMetricConfiguration, MonitoringMetricConfiguration[], PageSettings>

Parameters

deviceName

string

The device name.

roleName

string

The role name.

resourceGroupName

string

The resource group name.

options
MonitoringConfigListOptionalParams

The options parameters.

Returns