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

LogSearchRuleResource 类

定义

日志搜索规则资源。

[Microsoft.Rest.Serialization.JsonTransformation]
public class LogSearchRuleResource : Microsoft.Azure.Management.Monitor.Models.Resource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type LogSearchRuleResource = class
    inherit Resource
Public Class LogSearchRuleResource
Inherits Resource
继承
LogSearchRuleResource
属性

构造函数

LogSearchRuleResource()

初始化 LogSearchRuleResource 类的新实例。

LogSearchRuleResource(String, Source, Action, String, String, String, IDictionary<String,String>, String, String, String, Nullable<Boolean>, String, String, Nullable<Boolean>, String, Nullable<DateTime>, String, Schedule)

初始化 LogSearchRuleResource 类的新实例。

属性

Action

获取或设置执行规则时需要执行的操作。

AutoMitigate

获取或设置指示是否应自动解决警报的标志。 默认值为 false。

CreatedWithApiVersion

获取创建此警报规则时使用的 API 版本

Description

获取或设置日志搜索规则的说明。

DisplayName

获取或设置警报规则的显示名称

Enabled

获取或设置指示是否启用日志搜索规则的标志。 值应为 true 或 false。 可能的值包括:“true”、“false”

Etag

获取 etag 字段不 是必需的。 如果在响应正文中提供,则还必须根据正常的 etag 约定将其作为标头提供。 实体标记用于比较同一请求资源中的两个或多个实体。 HTTP/1.1 使用 etag (节 14.19) 、If-Match (第 14.24 节) 、If-None-Match (第 14.26 节) 和If-Range (第 14.27 节) 标头字段中的实体标记。

(继承自 Resource)
Id

获取 azure 资源 ID

(继承自 Resource)
IsLegacyLogAnalyticsRule

如果警报规则是旧 Log Analytic 规则,则获取 true

Kind

获取门户/工具/等用于呈现相同类型资源的不同 UX 体验的元数据;例如,ApiApps 是一种 Microsoft.Web/sites 类型。 如果支持,资源提供程序必须验证并保留此值。

(继承自 Resource)
LastUpdatedTime

获取上次以 IS08601 格式更新规则的时间。

Location

获取或设置资源位置

(继承自 Resource)
Name

获取 azure 资源名称

(继承自 Resource)
ProvisioningState

获取计划查询规则的预配状态。 可能的值包括:“Succeeded”、“Deploying”、“Canceled”、“Failed”

Schedule

获取或设置规则 (频率、时间窗口) 的计划。 操作类型所必需的 - AlertingAction

Source

获取或设置用于查询数据的数据源

Tags

获取或设置资源标记

(继承自 Resource)
Type

获取 azure 资源类型

(继承自 Resource)

方法

Validate()

验证 对象。

适用于