- integrations
- Python
- ocx_sdk
SweptTagReport
SweptTagReportclassdataclass#
Re-exported from
ocx_sdk._resultsView sourceclass SweptTagReport(tag: str, status: str, report: _SweepRow | None = None, kind: str | None = None, message: str | None = None)One tag’s outcome within a SweepReport (C-017).
sweep.rs:65-89. report, kind, and message are all
absent-when-none (D7) —
#[serde(skip_serializing_if = "Option::is_none")] upstream, not
null.
report is present on a failed row too, when a
--signature-format both tag lands one leg and loses the other: hiding
the leg that landed would leave an operator re-signing what is already
published.
Attributes
| Name | Type | Description |
|---|---|---|
tag | str | The tag this row describes. |
status | str | "completed", "skipped", or "failed", carried as raw
str (D8). |
report | _SweepRow | None | The tag’s own report, when one was produced — a
SignatureReport under a swept sign, an AttestationReport
under a swept attest. Which one it is follows from which
command called from_dict, not from anything in the row
itself, which is why parsing it takes a row parser rather than
guessing. |
kind | str | None | The machine-branchable failure slug, when this tag failed. |
message | str | None | Sanitized prose describing the failure, free to be
reworded — the same rule RefusedEntry.reason follows. |
kindattributeclass attributeinstance attribute#
kind: str | None = Nonemessageattributeclass attributeinstance attribute#
message: str | None = Nonereportattributeclass attributeinstance attribute#
report: _SweepRow | None = Nonestatusattributeinstance attribute#
status: strtagattributeinstance attribute#
tag: strfrom_dictmethodclassmethod#
def from_dict(data: Mapping[str, Any], row: Callable[[Mapping[str, Any]], _SweepRow]) -> SweptTagReportBuild from one decoded entry of SweepReport.tags.
Parameters
| Name | Type | Description |
|---|---|---|
data | Mapping[str, Any] | The decoded row. |
row | Callable[[Mapping[str, Any]], _SweepRow] | Parses this row’s report object —
SignatureReport.from_dict for a swept sign,
AttestationReport.from_dict for a swept attest. The one
place this module’s “no new parsing infrastructure” rule is
deliberately relaxed (C-017): one struct serves both
commands rather than duplicating it. |