Skip to content

Reports

albert.resources.reports

Attributes:

Name Type Description
ReportItem

ReportItem

ReportItem = dict[str, Any] | list[dict[str, Any]] | None

ReportInfo

Bases: BaseResource

Show JSON schema:
{
  "$defs": {
    "AuditFields": {
      "description": "The audit fields for a resource",
      "properties": {
        "by": {
          "default": null,
          "title": "By",
          "type": "string"
        },
        "byName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Byname"
        },
        "at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "At"
        }
      },
      "title": "AuditFields",
      "type": "object"
    },
    "Status": {
      "description": "The status of a resource",
      "enum": [
        "active",
        "inactive"
      ],
      "title": "Status",
      "type": "string"
    }
  },
  "properties": {
    "status": {
      "anyOf": [
        {
          "$ref": "#/$defs/Status"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "Created": {
      "anyOf": [
        {
          "$ref": "#/$defs/AuditFields"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "Updated": {
      "anyOf": [
        {
          "$ref": "#/$defs/AuditFields"
        },
        {
          "type": "null"
        }
      ],
      "default": null
    },
    "reportTypeId": {
      "title": "Reporttypeid",
      "type": "string"
    },
    "reportType": {
      "title": "Reporttype",
      "type": "string"
    },
    "category": {
      "title": "Category",
      "type": "string"
    },
    "Items": {
      "items": {
        "anyOf": [
          {
            "additionalProperties": true,
            "type": "object"
          },
          {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array"
          },
          {
            "type": "null"
          }
        ]
      },
      "title": "Items",
      "type": "array"
    }
  },
  "required": [
    "reportTypeId",
    "reportType",
    "category",
    "Items"
  ],
  "title": "ReportInfo",
  "type": "object"
}

Fields:

report_type_id

report_type_id: str

report_type

report_type: str

category

category: str

items

items: list[ReportItem]