Components class

Class representing a Components.

Constructors

Components(ApplicationInsightsManagementClientContext)

Create a Components.

Methods

createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase)

Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.

createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)
createOrUpdate(string, string, ApplicationInsightsComponent, ServiceCallback<ApplicationInsightsComponent>)
deleteMethod(string, string, RequestOptionsBase)

Deletes an Application Insights component.

deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)
deleteMethod(string, string, ServiceCallback<void>)
get(string, string, RequestOptionsBase)

Returns an Application Insights component.

get(string, string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)
get(string, string, ServiceCallback<ApplicationInsightsComponent>)
getPurgeStatus(string, string, string, RequestOptionsBase)

Get status for an ongoing purge operation.

getPurgeStatus(string, string, string, RequestOptionsBase, ServiceCallback<ComponentPurgeStatusResponse>)
getPurgeStatus(string, string, string, ServiceCallback<ComponentPurgeStatusResponse>)
list(RequestOptionsBase)

Gets a list of all Application Insights components within a subscription.

list(RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
list(ServiceCallback<ApplicationInsightsComponentListResult>)
listByResourceGroup(string, RequestOptionsBase)

Gets a list of Application Insights components within a resource group.

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
listByResourceGroup(string, ServiceCallback<ApplicationInsightsComponentListResult>)
listByResourceGroupNext(string, RequestOptionsBase)

Gets a list of Application Insights components within a resource group.

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
listByResourceGroupNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)
listNext(string, RequestOptionsBase)

Gets a list of all Application Insights components within a subscription.

listNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
listNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)
purge(string, string, ComponentPurgeBody, RequestOptionsBase)

Purges data in an Application Insights component by a set of user-defined filters.

In order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.

purge(string, string, ComponentPurgeBody, RequestOptionsBase, ServiceCallback<ComponentPurgeResponse>)
purge(string, string, ComponentPurgeBody, ServiceCallback<ComponentPurgeResponse>)
updateTags(string, string, TagsResource, RequestOptionsBase)

Updates an existing component's tags. To update other fields use the CreateOrUpdate method.

updateTags(string, string, TagsResource, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)
updateTags(string, string, TagsResource, ServiceCallback<ApplicationInsightsComponent>)

Constructor Details

Components(ApplicationInsightsManagementClientContext)

Create a Components.

new Components(client: ApplicationInsightsManagementClientContext)

Parameters

client
ApplicationInsightsManagementClientContext

Reference to the service client.

Method Details

createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase)

Creates (or updates) an Application Insights component. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.

function createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, options?: RequestOptionsBase): Promise<ComponentsCreateOrUpdateResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

insightProperties
ApplicationInsightsComponent

Properties that need to be specified to create an Application Insights component.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ComponentsCreateOrUpdateResponse>

createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)

function createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponent>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

insightProperties
ApplicationInsightsComponent

Properties that need to be specified to create an Application Insights component.

options
RequestOptionsBase

The optional parameters

createOrUpdate(string, string, ApplicationInsightsComponent, ServiceCallback<ApplicationInsightsComponent>)

function createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, callback: ServiceCallback<ApplicationInsightsComponent>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

insightProperties
ApplicationInsightsComponent

Properties that need to be specified to create an Application Insights component.

deleteMethod(string, string, RequestOptionsBase)

Deletes an Application Insights component.

function deleteMethod(resourceGroupName: string, resourceName: string, options?: RequestOptionsBase): Promise<RestResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<RestResponse>

Promise<msRest.RestResponse>

deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<void>

The callback

deleteMethod(string, string, ServiceCallback<void>)

function deleteMethod(resourceGroupName: string, resourceName: string, callback: ServiceCallback<void>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

callback

ServiceCallback<void>

The callback

get(string, string, RequestOptionsBase)

Returns an Application Insights component.

function get(resourceGroupName: string, resourceName: string, options?: RequestOptionsBase): Promise<ComponentsGetResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ComponentsGetResponse>

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

function get(resourceGroupName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponent>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

options
RequestOptionsBase

The optional parameters

get(string, string, ServiceCallback<ApplicationInsightsComponent>)

function get(resourceGroupName: string, resourceName: string, callback: ServiceCallback<ApplicationInsightsComponent>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

getPurgeStatus(string, string, string, RequestOptionsBase)

Get status for an ongoing purge operation.

function getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options?: RequestOptionsBase): Promise<ComponentsGetPurgeStatusResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

purgeId

string

In a purge status request, this is the Id of the operation the status of which is returned.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ComponentsGetPurgeStatusResponse>

getPurgeStatus(string, string, string, RequestOptionsBase, ServiceCallback<ComponentPurgeStatusResponse>)

function getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options: RequestOptionsBase, callback: ServiceCallback<ComponentPurgeStatusResponse>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

purgeId

string

In a purge status request, this is the Id of the operation the status of which is returned.

options
RequestOptionsBase

The optional parameters

getPurgeStatus(string, string, string, ServiceCallback<ComponentPurgeStatusResponse>)

function getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, callback: ServiceCallback<ComponentPurgeStatusResponse>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

purgeId

string

In a purge status request, this is the Id of the operation the status of which is returned.

list(RequestOptionsBase)

Gets a list of all Application Insights components within a subscription.

function list(options?: RequestOptionsBase): Promise<ComponentsListResponse>

Parameters

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ComponentsListResponse>

list(RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

function list(options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Parameters

options
RequestOptionsBase

The optional parameters

list(ServiceCallback<ApplicationInsightsComponentListResult>)

function list(callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Parameters

listByResourceGroup(string, RequestOptionsBase)

Gets a list of Application Insights components within a resource group.

function listByResourceGroup(resourceGroupName: string, options?: RequestOptionsBase): Promise<ComponentsListByResourceGroupResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ComponentsListByResourceGroupResponse>

listByResourceGroup(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

function listByResourceGroup(resourceGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

options
RequestOptionsBase

The optional parameters

listByResourceGroup(string, ServiceCallback<ApplicationInsightsComponentListResult>)

function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

listByResourceGroupNext(string, RequestOptionsBase)

Gets a list of Application Insights components within a resource group.

function listByResourceGroupNext(nextPageLink: string, options?: RequestOptionsBase): Promise<ComponentsListByResourceGroupNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ComponentsListByResourceGroupNextResponse>

listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

function listByResourceGroupNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

listByResourceGroupNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)

function listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

listNext(string, RequestOptionsBase)

Gets a list of all Application Insights components within a subscription.

function listNext(nextPageLink: string, options?: RequestOptionsBase): Promise<ComponentsListNextResponse>

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ComponentsListNextResponse>

listNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)

function listNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

options
RequestOptionsBase

The optional parameters

listNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)

function listNext(nextPageLink: string, callback: ServiceCallback<ApplicationInsightsComponentListResult>)

Parameters

nextPageLink

string

The NextLink from the previous successful call to List operation.

purge(string, string, ComponentPurgeBody, RequestOptionsBase)

Purges data in an Application Insights component by a set of user-defined filters.

In order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.

function purge(resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, options?: RequestOptionsBase): Promise<ComponentsPurgeResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

body
ComponentPurgeBody

Describes the body of a request to purge data in a single table of an Application Insights component

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ComponentsPurgeResponse>

purge(string, string, ComponentPurgeBody, RequestOptionsBase, ServiceCallback<ComponentPurgeResponse>)

function purge(resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, options: RequestOptionsBase, callback: ServiceCallback<ComponentPurgeResponse>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

body
ComponentPurgeBody

Describes the body of a request to purge data in a single table of an Application Insights component

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<ComponentPurgeResponse>

The callback

purge(string, string, ComponentPurgeBody, ServiceCallback<ComponentPurgeResponse>)

function purge(resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, callback: ServiceCallback<ComponentPurgeResponse>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

body
ComponentPurgeBody

Describes the body of a request to purge data in a single table of an Application Insights component

callback

ServiceCallback<ComponentPurgeResponse>

The callback

updateTags(string, string, TagsResource, RequestOptionsBase)

Updates an existing component's tags. To update other fields use the CreateOrUpdate method.

function updateTags(resourceGroupName: string, resourceName: string, componentTags: TagsResource, options?: RequestOptionsBase): Promise<ComponentsUpdateTagsResponse>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

componentTags
TagsResource

Updated tag information to set into the component instance.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.ComponentsUpdateTagsResponse>

updateTags(string, string, TagsResource, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)

function updateTags(resourceGroupName: string, resourceName: string, componentTags: TagsResource, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponent>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

componentTags
TagsResource

Updated tag information to set into the component instance.

options
RequestOptionsBase

The optional parameters

updateTags(string, string, TagsResource, ServiceCallback<ApplicationInsightsComponent>)

function updateTags(resourceGroupName: string, resourceName: string, componentTags: TagsResource, callback: ServiceCallback<ApplicationInsightsComponent>)

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

resourceName

string

The name of the Application Insights component resource.

componentTags
TagsResource

Updated tag information to set into the component instance.