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

Annotations interface

表示批注的接口。

方法

create(string, string, Annotation, AnnotationsCreateOptionalParams)

创建 Application Insights 组件的批注。

delete(string, string, string, AnnotationsDeleteOptionalParams)

删除 Application Insights 组件的批注。

get(string, string, string, AnnotationsGetOptionalParams)

获取给定 ID 的批注。

list(string, string, string, string, AnnotationsListOptionalParams)

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

方法详细信息

create(string, string, Annotation, AnnotationsCreateOptionalParams)

创建 Application Insights 组件的批注。

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

参数

resourceGroupName

string

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

resourceName

string

Application Insights 组件资源的名称。

annotationProperties
Annotation

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

options
AnnotationsCreateOptionalParams

选项参数。

返回

delete(string, string, string, AnnotationsDeleteOptionalParams)

删除 Application Insights 组件的批注。

function delete(resourceGroupName: string, resourceName: string, annotationId: string, options?: AnnotationsDeleteOptionalParams): Promise<void>

参数

resourceGroupName

string

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

resourceName

string

Application Insights 组件资源的名称。

annotationId

string

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

options
AnnotationsDeleteOptionalParams

选项参数。

返回

Promise<void>

get(string, string, string, AnnotationsGetOptionalParams)

获取给定 ID 的批注。

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

参数

resourceGroupName

string

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

resourceName

string

Application Insights 组件资源的名称。

annotationId

string

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

options
AnnotationsGetOptionalParams

选项参数。

返回

list(string, string, string, string, AnnotationsListOptionalParams)

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

function list(resourceGroupName: string, resourceName: string, start: string, end: string, options?: AnnotationsListOptionalParams): PagedAsyncIterableIterator<Annotation, Annotation[], PageSettings>

参数

resourceGroupName

string

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

resourceName

string

Application Insights 组件资源的名称。

start

string

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

end

string

查询批注的结束时间。

options
AnnotationsListOptionalParams

选项参数。

返回