LiveToken class

Class representing a LiveToken.

Constructors

LiveToken(ApplicationInsightsManagementClientContext)

Create a LiveToken.

Methods

get(string, RequestOptionsBase)

Gets an access token for live metrics stream data.

get(string, RequestOptionsBase, ServiceCallback<LiveTokenResponse>)
get(string, ServiceCallback<LiveTokenResponse>)

Constructor Details

LiveToken(ApplicationInsightsManagementClientContext)

Create a LiveToken.

new LiveToken(client: ApplicationInsightsManagementClientContext)

Parameters

client
ApplicationInsightsManagementClientContext

Reference to the service client.

Method Details

get(string, RequestOptionsBase)

Gets an access token for live metrics stream data.

function get(resourceUri: string, options?: RequestOptionsBase): Promise<LiveTokenGetResponse>

Parameters

resourceUri

string

The identifier of the resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.LiveTokenGetResponse>

get(string, RequestOptionsBase, ServiceCallback<LiveTokenResponse>)

function get(resourceUri: string, options: RequestOptionsBase, callback: ServiceCallback<LiveTokenResponse>)

Parameters

resourceUri

string

The identifier of the resource.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<LiveTokenResponse>

The callback

get(string, ServiceCallback<LiveTokenResponse>)

function get(resourceUri: string, callback: ServiceCallback<LiveTokenResponse>)

Parameters

resourceUri

string

The identifier of the resource.

callback

ServiceCallback<LiveTokenResponse>

The callback