Represents a task report (openrelik_worker_common.reporting.Report), inheriting behavior
from MarkdownDocument.
Summary
Functions
Adds a section to the report.
Initializes a Report struct.
Generates a dictionary (string-keyed map) representation of the report.
Generates a JSON representation of the report.
Generates a Markdown representation of the report.
Types
@type t() :: %OpenrelikWorkerCommon.Reporting.Report{ fmt: OpenrelikWorkerCommon.Reporting.MarkdownFormatter.t(), priority: OpenrelikWorkerCommon.Reporting.Priority.t(), sections: [OpenrelikWorkerCommon.Reporting.MarkdownDocumentSection.t()], summary: String.t(), title: String.t() | nil }
Functions
@spec add_section(t()) :: {t(), OpenrelikWorkerCommon.Reporting.MarkdownDocumentSection.t()}
Adds a section to the report.
Supports:
Report.add_section(report)->{updated_report, section}Report.add_section(report, %MarkdownDocumentSection{})->updated_reportReport.add_section(report, fn section -> ... end)->updated_report
@spec add_section( t(), OpenrelikWorkerCommon.Reporting.MarkdownDocumentSection.t() | (OpenrelikWorkerCommon.Reporting.MarkdownDocumentSection.t() -> OpenrelikWorkerCommon.Reporting.MarkdownDocumentSection.t()) ) :: t()
Initializes a Report struct.
Generates a dictionary (string-keyed map) representation of the report.
Generates a JSON representation of the report.
Generates a Markdown representation of the report.