toolsOzoneReportGetStatGroupDetails top-level constant

Map<String, dynamic> const toolsOzoneReportGetStatGroupDetails

tools.ozone.report.getStatGroupDetails

Implementation

const toolsOzoneReportGetStatGroupDetails = <String, dynamic>{
  "lexicon": 1,
  "id": "tools.ozone.report.getStatGroupDetails",
  "defs": {
    "main": {
      "type": "query",
      "description":
          "Get additional details for a stat group. Omit all group selectors for aggregate details.",
      "parameters": {
        "type": "params",
        "properties": {
          "queueId": {
            "type": "integer",
            "description":
                "Queue stat group. Use -1 for unqueued reports; otherwise use a positive queue ID. Requires queue access.",
            "minimum": -1,
          },
          "moderatorDid": {
            "type": "string",
            "format": "did",
            "description":
                "Moderator stat group, based on current report assignment. Requires administrator access.",
          },
          "reportTypes": {
            "type": "array",
            "description":
                "Report-type stat group. Counts only the specified reasons.",
            "items": {"type": "string"},
            "minLength": 1,
            "maxLength": 100,
          },
          "startDate": {
            "type": "string",
            "format": "datetime",
            "description":
                "First UTC calendar day to include, inclusive. Defaults to today. The range must not exceed 120 calendar days.",
          },
          "endDate": {
            "type": "string",
            "format": "datetime",
            "description":
                "Last UTC calendar day to include, inclusive. Defaults to today.",
          },
        },
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "computedAt",
            "startDate",
            "endDate",
            "reportTypeBreakdown",
          ],
          "properties": {
            "computedAt": {
              "type": "string",
              "format": "datetime",
              "description": "When the live query started.",
            },
            "startDate": {
              "type": "string",
              "format": "datetime",
              "description": "First included UTC calendar day, at midnight.",
            },
            "endDate": {
              "type": "string",
              "format": "datetime",
              "description": "Last included UTC calendar day, at midnight.",
            },
            "reportTypeBreakdown": {
              "type": "ref",
              "ref": "#reportTypeBreakdown",
            },
          },
        },
      },
      "errors": [
        {
          "name": "QueueNotFound",
          "description": "Queue does not exist or is not accessible.",
        },
      ],
    },
    "reportTypeStats": {
      "type": "object",
      "required": ["reportType", "inboundCount"],
      "properties": {
        "reportType": {
          "type": "string",
          "description": "Fully qualified report reason.",
        },
        "inboundCount": {
          "type": "integer",
          "description":
              "Unmuted reports received during the requested UTC calendar days.",
          "minimum": 0,
        },
      },
    },
    "reportTypeBreakdown": {
      "type": "object",
      "description":
          "Unmuted inbound reports by actual reason, across all statuses, within the selected stat group and UTC date range.",
      "required": ["totalCount", "stats"],
      "properties": {
        "totalCount": {
          "type": "integer",
          "description": "Total unmuted inbound reports in this breakdown.",
          "minimum": 0,
        },
        "stats": {
          "type": "array",
          "items": {"type": "ref", "ref": "#reportTypeStats"},
        },
      },
    },
  },
};