Alert interface

属性

additionalProperties

此警报的其他属性。

alertId

警报的标识符。 它在 Azure DevOps 组织中是唯一的。

alertType

警报的类型。 例如机密、代码等。

confidence

警报的置信度。

dismissal

包含有关关闭警报的信息( 如果警报已被消除)。

firstSeenDate

此值由服务计算并返回。 此值表示服务首次在分析实例中报告此问题。

fixedDate

此值由服务计算并返回。 如果问题已修复,则此值表示服务在分析实例中修复此问题的时间。

gitRef

对 git 对象的引用,例如分支 ref。

introducedDate

此值由服务计算并返回。 此值表示首次引入漏洞。

lastSeenDate

此值由服务计算并返回。 此值表示服务上次在分析实例中报告此问题的时间。

logicalLocations

警报的逻辑位置。 此值由服务计算并返回。 它是基于所有分析配置的结果的值。 逻辑位置的示例是组件。

physicalLocations

此值由服务计算并返回。 它是基于所有分析配置的结果的值。 物理位置的示例是文件位置。

relations

警报和其他项目之间的关系。

repositoryUrl

检测到警报的存储库 URL。

severity

警报的严重性。

state

此值由服务计算并返回。 它是基于所有分析配置的结果的值。

title

标题将仅呈现为文本,不支持 Markdown 格式。 最大字符限制为 256。

tools

检测到此问题的工具。

truncatedSecret

与警报相关的机密的截断/模糊版本(如果适用)。

validationFingerprints

用于机密实时检查的 ValidationFingerprints。 仅在 Get API 中按需返回,将 Expand 参数设置为 ValidationFingerprint(列表 API 中未返回)

validityDetails

警报的有效性详细信息。 目前,这仅适用于机密警报。 对于机密警报,通过查看与警报关联的验证指纹的实时结果来计算有效性状态和时间。

属性详细信息

additionalProperties

此警报的其他属性。

additionalProperties: {[key: string]: any}

属性值

{[key: string]: any}

alertId

警报的标识符。 它在 Azure DevOps 组织中是唯一的。

alertId: number

属性值

number

alertType

警报的类型。 例如机密、代码等。

alertType: AlertType

属性值

confidence

警报的置信度。

confidence: Confidence

属性值

dismissal

包含有关关闭警报的信息( 如果警报已被消除)。

dismissal: Dismissal

属性值

firstSeenDate

此值由服务计算并返回。 此值表示服务首次在分析实例中报告此问题。

firstSeenDate: Date

属性值

Date

fixedDate

此值由服务计算并返回。 如果问题已修复,则此值表示服务在分析实例中修复此问题的时间。

fixedDate: Date

属性值

Date

gitRef

对 git 对象的引用,例如分支 ref。

gitRef: string

属性值

string

introducedDate

此值由服务计算并返回。 此值表示首次引入漏洞。

introducedDate: Date

属性值

Date

lastSeenDate

此值由服务计算并返回。 此值表示服务上次在分析实例中报告此问题的时间。

lastSeenDate: Date

属性值

Date

logicalLocations

警报的逻辑位置。 此值由服务计算并返回。 它是基于所有分析配置的结果的值。 逻辑位置的示例是组件。

logicalLocations: LogicalLocation[]

属性值

physicalLocations

此值由服务计算并返回。 它是基于所有分析配置的结果的值。 物理位置的示例是文件位置。

physicalLocations: PhysicalLocation[]

属性值

relations

警报和其他项目之间的关系。

relations: RelationMetadata[]

属性值

repositoryUrl

检测到警报的存储库 URL。

repositoryUrl: string

属性值

string

severity

警报的严重性。

severity: Severity

属性值

state

此值由服务计算并返回。 它是基于所有分析配置的结果的值。

state: State

属性值

title

标题将仅呈现为文本,不支持 Markdown 格式。 最大字符限制为 256。

title: string

属性值

string

tools

检测到此问题的工具。

tools: Tool[]

属性值

Tool[]

truncatedSecret

与警报相关的机密的截断/模糊版本(如果适用)。

truncatedSecret: string

属性值

string

validationFingerprints

用于机密实时检查的 ValidationFingerprints。 仅在 Get API 中按需返回,将 Expand 参数设置为 ValidationFingerprint(列表 API 中未返回)

validationFingerprints: ValidationFingerprint[]

属性值

validityDetails

警报的有效性详细信息。 目前,这仅适用于机密警报。 对于机密警报,通过查看与警报关联的验证指纹的实时结果来计算有效性状态和时间。

validityDetails: AlertValidityInfo

属性值