MonitoringConfig interface
Interface representing a MonitoringConfig.
Methods
begin |
Creates a new metric configuration or updates an existing one for a role. |
begin |
Creates a new metric configuration or updates an existing one for a role. |
begin |
deletes a new metric configuration for a role. |
begin |
deletes a new metric configuration for a role. |
get(string, string, string, Monitoring |
Gets a metric configuration of a role. |
list(string, string, string, Monitoring |
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.
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.
The options parameters.
Returns
Promise<MonitoringMetricConfiguration>
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.
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.
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.
The options parameters.
Returns
Promise<MonitoringMetricConfiguration>
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.
The options parameters.