Annotations class
表示批注的类。
方法
构造函数详细信息
Annotations(ApplicationInsightsManagementClientContext)
创建批注。
new Annotations(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
可选参数
返回
Promise<AnnotationsCreateResponse>
承诺<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
回调
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
回调
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
可选参数
返回
Promise<AnnotationsGetResponse>
承诺<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
回调
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
回调
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
可选参数
返回
Promise<AnnotationsListResponse>
承诺<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
可选参数
- callback
回调
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
查询批注的结束时间。
- callback
回调