你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Annotations class

表示批注的类。

构造函数

Annotations(ApplicationInsightsManagementClientContext)

创建批注。

方法

create(string, string, Annotation, RequestOptionsBase)

创建 Application Insights 组件的批注。

create(string, string, Annotation, RequestOptionsBase, ServiceCallback<Annotation[]>)
create(string, string, Annotation, ServiceCallback<Annotation[]>)
deleteMethod(string, string, string, RequestOptionsBase)

删除 Application Insights 组件的批注。

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

获取给定 ID 的批注。

get(string, string, string, RequestOptionsBase, ServiceCallback<Annotation[]>)
get(string, string, string, ServiceCallback<Annotation[]>)
list(string, string, string, string, RequestOptionsBase)

获取给定时间范围的组件的批注列表

list(string, string, string, string, RequestOptionsBase, ServiceCallback<AnnotationsListResult>)
list(string, string, string, string, ServiceCallback<AnnotationsListResult>)

构造函数详细信息

Annotations(ApplicationInsightsManagementClientContext)

创建批注。

new Annotations(client: ApplicationInsightsManagementClientContext)

参数

client
ApplicationInsightsManagementClientContext

对服务客户端的引用。

方法详细信息

create(string, string, Annotation, RequestOptionsBase)

创建 Application Insights 组件的批注。

function create(resourceGroupName: string, resourceName: string, annotationProperties: Annotation, options?: RequestOptionsBase): Promise<AnnotationsCreateResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

annotationProperties
Annotation

需要指定的属性来创建 Application Insights 组件的注释。

options
RequestOptionsBase

可选参数

返回

承诺<Models.AnnotationsCreateResponse>

create(string, string, Annotation, RequestOptionsBase, ServiceCallback<Annotation[]>)

function create(resourceGroupName: string, resourceName: string, annotationProperties: Annotation, options: RequestOptionsBase, callback: ServiceCallback<Annotation[]>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

annotationProperties
Annotation

需要指定的属性来创建 Application Insights 组件的注释。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<Annotation[]>

回调

create(string, string, Annotation, ServiceCallback<Annotation[]>)

function create(resourceGroupName: string, resourceName: string, annotationProperties: Annotation, callback: ServiceCallback<Annotation[]>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

annotationProperties
Annotation

需要指定的属性来创建 Application Insights 组件的注释。

callback

ServiceCallback<Annotation[]>

回调

deleteMethod(string, string, string, RequestOptionsBase)

删除 Application Insights 组件的批注。

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

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

annotationId

string

唯一批注 ID。 这在 Application Insights 组件中是唯一的。

options
RequestOptionsBase

可选参数

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

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

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

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

annotationId

string

唯一批注 ID。 这在 Application Insights 组件中是唯一的。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<void>

回调

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

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

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

annotationId

string

唯一批注 ID。 这在 Application Insights 组件中是唯一的。

callback

ServiceCallback<void>

回调

get(string, string, string, RequestOptionsBase)

获取给定 ID 的批注。

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

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

annotationId

string

唯一批注 ID。 这在 Application Insights 组件中是唯一的。

options
RequestOptionsBase

可选参数

返回

承诺<Models.AnnotationsGetResponse>

get(string, string, string, RequestOptionsBase, ServiceCallback<Annotation[]>)

function get(resourceGroupName: string, resourceName: string, annotationId: string, options: RequestOptionsBase, callback: ServiceCallback<Annotation[]>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

annotationId

string

唯一批注 ID。 这在 Application Insights 组件中是唯一的。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<Annotation[]>

回调

get(string, string, string, ServiceCallback<Annotation[]>)

function get(resourceGroupName: string, resourceName: string, annotationId: string, callback: ServiceCallback<Annotation[]>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

annotationId

string

唯一批注 ID。 这在 Application Insights 组件中是唯一的。

callback

ServiceCallback<Annotation[]>

回调

list(string, string, string, string, RequestOptionsBase)

获取给定时间范围的组件的批注列表

function list(resourceGroupName: string, resourceName: string, start: string, end: string, options?: RequestOptionsBase): Promise<AnnotationsListResponse>

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

start

string

从中查询批注的开始时间不能早于当前日期的 90 天。

end

string

查询批注的结束时间。

options
RequestOptionsBase

可选参数

返回

承诺<Models.AnnotationsListResponse>

list(string, string, string, string, RequestOptionsBase, ServiceCallback<AnnotationsListResult>)

function list(resourceGroupName: string, resourceName: string, start: string, end: string, options: RequestOptionsBase, callback: ServiceCallback<AnnotationsListResult>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

start

string

从中查询批注的开始时间不能早于当前日期的 90 天。

end

string

查询批注的结束时间。

options
RequestOptionsBase

可选参数

list(string, string, string, string, ServiceCallback<AnnotationsListResult>)

function list(resourceGroupName: string, resourceName: string, start: string, end: string, callback: ServiceCallback<AnnotationsListResult>)

参数

resourceGroupName

string

资源组的名称。 名称不区分大小写。

resourceName

string

Application Insights 组件资源的名称。

start

string

从中查询批注的开始时间不能早于当前日期的 90 天。

end

string

查询批注的结束时间。