Components class
表示 Components 的类。
方法
构造函数详细信息
Components(ApplicationInsightsManagementClientContext)
创建组件。
new Components(client: ApplicationInsightsManagementClientContext)
参数
对服务客户端的引用。
方法详细信息
createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase)
创建 Application Insights 组件(或更新)。 注意:不能在 Put作中为 InstrumentationKey 和 AppId 指定其他值。
function createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, options?: RequestOptionsBase): Promise<ComponentsCreateOrUpdateResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- insightProperties
- ApplicationInsightsComponent
需要指定才能创建 Application Insights 组件的属性。
- options
- RequestOptionsBase
可选参数
返回
Promise<ComponentsCreateOrUpdateResponse>
承诺<Models.ComponentsCreateOrUpdateResponse>
createOrUpdate(string, string, ApplicationInsightsComponent, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)
function createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponent>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- insightProperties
- ApplicationInsightsComponent
需要指定才能创建 Application Insights 组件的属性。
- options
- RequestOptionsBase
可选参数
- callback
回调
createOrUpdate(string, string, ApplicationInsightsComponent, ServiceCallback<ApplicationInsightsComponent>)
function createOrUpdate(resourceGroupName: string, resourceName: string, insightProperties: ApplicationInsightsComponent, callback: ServiceCallback<ApplicationInsightsComponent>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- insightProperties
- ApplicationInsightsComponent
需要指定才能创建 Application Insights 组件的属性。
- callback
回调
deleteMethod(string, string, RequestOptionsBase)
删除 Application Insights 组件。
function deleteMethod(resourceGroupName: string, resourceName: string, options?: RequestOptionsBase): Promise<RestResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<RestResponse>
承诺<msRest.RestResponse>
deleteMethod(string, string, RequestOptionsBase, ServiceCallback<void>)
function deleteMethod(resourceGroupName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<void>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- options
- RequestOptionsBase
可选参数
- callback
-
ServiceCallback<void>
回调
deleteMethod(string, string, ServiceCallback<void>)
function deleteMethod(resourceGroupName: string, resourceName: string, callback: ServiceCallback<void>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- callback
-
ServiceCallback<void>
回调
get(string, string, RequestOptionsBase)
返回 Application Insights 组件。
function get(resourceGroupName: string, resourceName: string, options?: RequestOptionsBase): Promise<ComponentsGetResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- options
- RequestOptionsBase
可选参数
返回
Promise<ComponentsGetResponse>
承诺<Models.ComponentsGetResponse>
get(string, string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)
function get(resourceGroupName: string, resourceName: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponent>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- options
- RequestOptionsBase
可选参数
- callback
回调
get(string, string, ServiceCallback<ApplicationInsightsComponent>)
function get(resourceGroupName: string, resourceName: string, callback: ServiceCallback<ApplicationInsightsComponent>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- callback
回调
getPurgeStatus(string, string, string, RequestOptionsBase)
获取正在进行的清除作的状态。
function getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options?: RequestOptionsBase): Promise<ComponentsGetPurgeStatusResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- purgeId
-
string
在清除状态请求中,这是返回其状态的作的 ID。
- options
- RequestOptionsBase
可选参数
返回
Promise<ComponentsGetPurgeStatusResponse>
Promise<Models.ComponentsGetPurgeStatusResponse>
getPurgeStatus(string, string, string, RequestOptionsBase, ServiceCallback<ComponentPurgeStatusResponse>)
function getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, options: RequestOptionsBase, callback: ServiceCallback<ComponentPurgeStatusResponse>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- purgeId
-
string
在清除状态请求中,这是返回其状态的作的 ID。
- options
- RequestOptionsBase
可选参数
- callback
回调
getPurgeStatus(string, string, string, ServiceCallback<ComponentPurgeStatusResponse>)
function getPurgeStatus(resourceGroupName: string, resourceName: string, purgeId: string, callback: ServiceCallback<ComponentPurgeStatusResponse>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- purgeId
-
string
在清除状态请求中,这是返回其状态的作的 ID。
- callback
回调
list(RequestOptionsBase)
获取订阅中所有 Application Insights 组件的列表。
function list(options?: RequestOptionsBase): Promise<ComponentsListResponse>
参数
- options
- RequestOptionsBase
可选参数
返回
Promise<ComponentsListResponse>
承诺<Models.ComponentsListResponse>
list(RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
function list(options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)
参数
- options
- RequestOptionsBase
可选参数
回调
list(ServiceCallback<ApplicationInsightsComponentListResult>)
function list(callback: ServiceCallback<ApplicationInsightsComponentListResult>)
参数
回调
listByResourceGroup(string, RequestOptionsBase)
获取资源组中的 Application Insights 组件的列表。
function listByResourceGroup(resourceGroupName: string, options?: RequestOptionsBase): Promise<ComponentsListByResourceGroupResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- options
- RequestOptionsBase
可选参数
返回
承诺<Models.ComponentsListByResourceGroupResponse>
listByResourceGroup(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
function listByResourceGroup(resourceGroupName: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- options
- RequestOptionsBase
可选参数
回调
listByResourceGroup(string, ServiceCallback<ApplicationInsightsComponentListResult>)
function listByResourceGroup(resourceGroupName: string, callback: ServiceCallback<ApplicationInsightsComponentListResult>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
回调
listByResourceGroupNext(string, RequestOptionsBase)
获取资源组中的 Application Insights 组件的列表。
function listByResourceGroupNext(nextPageLink: string, options?: RequestOptionsBase): Promise<ComponentsListByResourceGroupNextResponse>
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- options
- RequestOptionsBase
可选参数
返回
承诺<Models.ComponentsListByResourceGroupNext响应>
listByResourceGroupNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
function listByResourceGroupNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- options
- RequestOptionsBase
可选参数
回调
listByResourceGroupNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)
function listByResourceGroupNext(nextPageLink: string, callback: ServiceCallback<ApplicationInsightsComponentListResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
回调
listNext(string, RequestOptionsBase)
获取订阅中所有 Application Insights 组件的列表。
function listNext(nextPageLink: string, options?: RequestOptionsBase): Promise<ComponentsListNextResponse>
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- options
- RequestOptionsBase
可选参数
返回
Promise<ComponentsListNextResponse>
Promise<Models.ComponentsListNext响应>
listNext(string, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponentListResult>)
function listNext(nextPageLink: string, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponentListResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
- options
- RequestOptionsBase
可选参数
回调
listNext(string, ServiceCallback<ApplicationInsightsComponentListResult>)
function listNext(nextPageLink: string, callback: ServiceCallback<ApplicationInsightsComponentListResult>)
参数
- nextPageLink
-
string
上一次成功调用 List作的 NextLink。
回调
purge(string, string, ComponentPurgeBody, RequestOptionsBase)
通过一组用户定义的筛选器清除 Application Insights 组件中的数据。
为了管理系统资源,清除请求被限制为每小时 50 个请求。 应通过发送一个命令(其谓词包括需要清除的所有用户标识)来批处理清除请求的执行。 使用 in 运算符指定多个标识。 应在使用清除请求之前运行查询,以验证结果是否预期。
function purge(resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, options?: RequestOptionsBase): Promise<ComponentsPurgeResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- body
- ComponentPurgeBody
描述在 Application Insights 组件的单个表中清除数据的请求正文
- options
- RequestOptionsBase
可选参数
返回
Promise<ComponentsPurgeResponse>
Promise<Models.ComponentsPurgeResponse>
purge(string, string, ComponentPurgeBody, RequestOptionsBase, ServiceCallback<ComponentPurgeResponse>)
function purge(resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, options: RequestOptionsBase, callback: ServiceCallback<ComponentPurgeResponse>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- body
- ComponentPurgeBody
描述在 Application Insights 组件的单个表中清除数据的请求正文
- options
- RequestOptionsBase
可选参数
- callback
回调
purge(string, string, ComponentPurgeBody, ServiceCallback<ComponentPurgeResponse>)
function purge(resourceGroupName: string, resourceName: string, body: ComponentPurgeBody, callback: ServiceCallback<ComponentPurgeResponse>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- body
- ComponentPurgeBody
描述在 Application Insights 组件的单个表中清除数据的请求正文
- callback
回调
updateTags(string, string, TagsResource, RequestOptionsBase)
更新现有组件的标记。 若要更新其他字段,请使用 CreateOrUpdate 方法。
function updateTags(resourceGroupName: string, resourceName: string, componentTags: TagsResource, options?: RequestOptionsBase): Promise<ComponentsUpdateTagsResponse>
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- componentTags
- TagsResource
更新了要设置为组件实例的标记信息。
- options
- RequestOptionsBase
可选参数
返回
Promise<ComponentsUpdateTagsResponse>
承诺<Models.ComponentsUpdateTagsResponse>
updateTags(string, string, TagsResource, RequestOptionsBase, ServiceCallback<ApplicationInsightsComponent>)
function updateTags(resourceGroupName: string, resourceName: string, componentTags: TagsResource, options: RequestOptionsBase, callback: ServiceCallback<ApplicationInsightsComponent>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- componentTags
- TagsResource
更新了要设置为组件实例的标记信息。
- options
- RequestOptionsBase
可选参数
- callback
回调
updateTags(string, string, TagsResource, ServiceCallback<ApplicationInsightsComponent>)
function updateTags(resourceGroupName: string, resourceName: string, componentTags: TagsResource, callback: ServiceCallback<ApplicationInsightsComponent>)
参数
- resourceGroupName
-
string
资源组的名称。 名称不区分大小写。
- resourceName
-
string
Application Insights 组件资源的名称。
- componentTags
- TagsResource
更新了要设置为组件实例的标记信息。
- callback
回调