{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gtm-api/json-schema/gtm-api-get-linkedin-account-activity-log-metrics-request-schema.json",
  "title": "GetLinkedinAccountActivityLogMetricsRequest",
  "description": "Request body of `get_linkedin_account_activity_log_metrics`.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gtm-api-linkedin-account-activity-log-api-openapi.yml#/components/schemas/GetLinkedinAccountActivityLogMetricsRequest",
  "type": "object",
  "properties": {
    "filter": {
      "type": "object",
      "properties": {
        "linkedin_account_sid": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            },
            "in": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          "additionalProperties": false,
          "description": "REQUIRED: metrics rejects an unbounded scan with bounded_scan_required."
        },
        "status": {
          "type": "object",
          "properties": {
            "eq": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "description": "pending | success | failed | skipped. Only .eq is applied here."
        }
      }
    },
    "period": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "description": "ISO 8601 UTC window start (inclusive)."
        },
        "to": {
          "type": "string",
          "description": "ISO 8601 UTC window end (exclusive); must be after from."
        }
      },
      "required": [
        "from",
        "to"
      ],
      "description": "Required metrics window [from, to), max 90 days."
    },
    "group_by": {
      "type": "string",
      "enum": [
        "action_type",
        "status",
        "linkedin_account_sid"
      ],
      "description": "Optional single split axis."
    }
  },
  "required": [
    "period"
  ]
}