AppInsightsService class

Warning

This API is now deprecated.

See https://aka.ms/bot-file-basics for more information.

Defines an App Insights service connection.

Extends

Constructors

AppInsightsService(IAppInsightsService)

Creates a new AppInsightService instance.

Properties

apiKeys

(Optional) named api keys for programmatic access to AppInsights.

applicationId

(Optional) application ID used for programmatic access to AppInsights.

instrumentationKey

Instrumentation key for logging data to appInsights.

Inherited Properties

id

Unique Id for the service.

name

Friendly name for the service.

resourceGroup

Resource group for azure.

serviceName

Name of the service.

subscriptionId

Subscription ID for azure.

tenantId

Tenant ID for azure.

type

Methods

decrypt(string, (value: string, secret: string) => string)

Decrypt properties on this service.

encrypt(string, (value: string, secret: string) => string)

Encrypt properties on this service.

Inherited Methods

toJSON()

Creates a JSON based version of the model for saving to disk.

Constructor Details

AppInsightsService(IAppInsightsService)

Creates a new AppInsightService instance.

new AppInsightsService(source?: IAppInsightsService)

Parameters

source
IAppInsightsService

(Optional) JSON based service definition.

Property Details

apiKeys

(Optional) named api keys for programmatic access to AppInsights.

apiKeys: [key: string]: string

Property Value

[key: string]: string

applicationId

(Optional) application ID used for programmatic access to AppInsights.

applicationId: string

Property Value

string

instrumentationKey

Instrumentation key for logging data to appInsights.

instrumentationKey: string

Property Value

string

Inherited Property Details

id

Unique Id for the service.

id: string

Property Value

string

Inherited From ConnectedService.id

name

Friendly name for the service.

name: string

Property Value

string

Inherited From ConnectedService.name

resourceGroup

Resource group for azure.

resourceGroup: string

Property Value

string

Inherited From AzureService.resourceGroup

serviceName

Name of the service.

serviceName: string

Property Value

string

Inherited From AzureService.serviceName

subscriptionId

Subscription ID for azure.

subscriptionId: string

Property Value

string

Inherited From AzureService.subscriptionId

tenantId

Tenant ID for azure.

tenantId: string

Property Value

string

Inherited From AzureService.tenantId

type

type?: ServiceTypes

Property Value

Inherited From ConnectedService.type

Method Details

decrypt(string, (value: string, secret: string) => string)

Decrypt properties on this service.

function decrypt(secret: string, decryptString: (value: string, secret: string) => string)

Parameters

secret

string

Secret to use to decrypt.

decryptString

(value: string, secret: string) => string

Function called to decrypt an individual value.

encrypt(string, (value: string, secret: string) => string)

Encrypt properties on this service.

function encrypt(secret: string, encryptString: (value: string, secret: string) => string)

Parameters

secret

string

Secret to use to encrypt.

encryptString

(value: string, secret: string) => string

Function called to encrypt an individual value.

Inherited Method Details

toJSON()

Creates a JSON based version of the model for saving to disk.

function toJSON(): IConnectedService

Returns

An IConnectedService JSON.

Inherited From ConnectedService.toJSON