Skip to content

InventoryFinding

Source code in docs_src/capo_acm/types/inventory_finding.py
class InventoryFinding(TypedDict, closed=True):
    finding_id: "capo_acm.types.finding_id.FindingId"
    """Identifies the finding. It stays the same for the same rule and the same evaluated subject, across evaluations and pages. Use it to recognize a finding that is returned again. It is opaque: do not parse it or build one."""
    certificate_identifier: (
        "capo_acm.types.content_hash_identifier.ContentHashIdentifier"
    )
    """The identifier of the certificate whose findings were requested."""
    rule_id: "capo_acm.types.finding_rule_id.FindingRuleId"
    """The rule that produced the finding."""
    severity: "capo_acm.types.finding_severity.FindingSeverity"
    """How severe the finding is."""
    scope: "capo_acm.types.finding_scope.FindingScope"
    """What the rule evaluated."""
    reason: NotRequired["capo_acm.types.finding_reason.FindingReason"]
    """Why the rule fired, for a rule with more than one cause. FindingReason lists which rules return which reasons. Absent for a rule with one cause."""
    expected: NotRequired["str"]
    """What the rule requires, up to 1,024 characters. Absent when the rule does not describe it."""
    actual: NotRequired["str"]
    """What the rule found, up to 1,024 characters. Absent when the rule does not describe it."""
    remediation: NotRequired["str"]
    """How to resolve the finding, up to 1,024 characters. Absent when the rule does not describe it."""
    evaluated_at: "datetime.datetime"
    """When the finding was opened or its content last changed, to the second. A change in severity counts as a change in content. Evaluating an unchanged finding again does not change this time."""

actual instance-attribute

actual: NotRequired[str]

What the rule found, up to 1,024 characters. Absent when the rule does not describe it.

certificate_identifier instance-attribute

certificate_identifier: ContentHashIdentifier

The identifier of the certificate whose findings were requested.

evaluated_at instance-attribute

evaluated_at: datetime

When the finding was opened or its content last changed, to the second. A change in severity counts as a change in content. Evaluating an unchanged finding again does not change this time.

expected instance-attribute

expected: NotRequired[str]

What the rule requires, up to 1,024 characters. Absent when the rule does not describe it.

finding_id instance-attribute

finding_id: FindingId

Identifies the finding. It stays the same for the same rule and the same evaluated subject, across evaluations and pages. Use it to recognize a finding that is returned again. It is opaque: do not parse it or build one.

reason instance-attribute

reason: NotRequired[FindingReason]

Why the rule fired, for a rule with more than one cause. FindingReason lists which rules return which reasons. Absent for a rule with one cause.

remediation instance-attribute

remediation: NotRequired[str]

How to resolve the finding, up to 1,024 characters. Absent when the rule does not describe it.

rule_id instance-attribute

rule_id: FindingRuleId

The rule that produced the finding.

scope instance-attribute

scope: FindingScope

What the rule evaluated.

severity instance-attribute

severity: FindingSeverity

How severe the finding is.