DiagnosticSettings interface

Interface representing a DiagnosticSettings.

Methods

createOrUpdate(string, string, DiagnosticSettingsResource, DiagnosticSettingsCreateOrUpdateOptionalParams)

Creates or updates diagnostic settings for the specified resource.

delete(string, string, DiagnosticSettingsDeleteOptionalParams)

Deletes existing diagnostic settings for the specified resource.

get(string, string, DiagnosticSettingsGetOptionalParams)

Gets the active diagnostic settings for the specified resource.

list(string, DiagnosticSettingsListOptionalParams)

Gets the active diagnostic settings list for the specified resource.

Method Details

createOrUpdate(string, string, DiagnosticSettingsResource, DiagnosticSettingsCreateOrUpdateOptionalParams)

Creates or updates diagnostic settings for the specified resource.

function createOrUpdate(resourceUri: string, name: string, parameters: DiagnosticSettingsResource, options?: DiagnosticSettingsCreateOrUpdateOptionalParams): Promise<DiagnosticSettingsResource>

Parameters

resourceUri

string

The identifier of the resource.

name

string

The name of the diagnostic setting.

parameters
DiagnosticSettingsResource

Parameters supplied to the operation.

options
DiagnosticSettingsCreateOrUpdateOptionalParams

The options parameters.

Returns

delete(string, string, DiagnosticSettingsDeleteOptionalParams)

Deletes existing diagnostic settings for the specified resource.

function delete(resourceUri: string, name: string, options?: DiagnosticSettingsDeleteOptionalParams): Promise<void>

Parameters

resourceUri

string

The identifier of the resource.

name

string

The name of the diagnostic setting.

options
DiagnosticSettingsDeleteOptionalParams

The options parameters.

Returns

Promise<void>

get(string, string, DiagnosticSettingsGetOptionalParams)

Gets the active diagnostic settings for the specified resource.

function get(resourceUri: string, name: string, options?: DiagnosticSettingsGetOptionalParams): Promise<DiagnosticSettingsResource>

Parameters

resourceUri

string

The identifier of the resource.

name

string

The name of the diagnostic setting.

options
DiagnosticSettingsGetOptionalParams

The options parameters.

Returns

list(string, DiagnosticSettingsListOptionalParams)

Gets the active diagnostic settings list for the specified resource.

function list(resourceUri: string, options?: DiagnosticSettingsListOptionalParams): Promise<DiagnosticSettingsResourceCollection>

Parameters

resourceUri

string

The identifier of the resource.

options
DiagnosticSettingsListOptionalParams

The options parameters.

Returns