{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-administrative-api-audit-user-events-schema.json",
  "title": "Administrative_API_AuditUserEvents",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-user-events-api-openapi.yml#/components/schemas/Administrative_API_AuditUserEvents",
  "type": "object",
  "properties": {
    "auditEvents": {
      "x-paginated-items": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/Administrative_API_UserEvent"
      }
    },
    "startDate": {
      "$ref": "#/$defs/Administrative_API_StartDate"
    },
    "endDate": {
      "$ref": "#/$defs/Administrative_API_EndDate"
    },
    "_links": {
      "$ref": "#/$defs/Administrative_API_PaginationLinks"
    }
  },
  "$defs": {
    "Administrative_API_AccountGroupId": {
      "type": "string",
      "description": "A unique identifier associated with your account group. You can retrieve your `AccountGroupId` from the `/account-groups` endpoint."
    },
    "Administrative_API_EndDate": {
      "type": "string",
      "format": "date-time",
      "description": "(Optional) When passing `window` or `endDate` parameter,  the client will also receive the `endDate` field indicating the UTC end date of the data's time range being retrieved  (ISO date-time format).",
      "readOnly": true
    },
    "Administrative_API_Link": {
      "type": "object",
      "description": "A hyperlink from the containing resource to a URI.",
      "required": [
        "href"
      ],
      "properties": {
        "href": {
          "type": "string",
          "description": "Its value is either a URI [RFC3986] or a URI template [RFC6570]."
        },
        "templated": {
          "type": "boolean",
          "description": "Should be true when the link object's \"href\" property is a URI template."
        },
        "type": {
          "type": "string",
          "description": "Used as a hint to indicate the media type expected when dereferencing the target resource."
        },
        "deprecation": {
          "type": "string",
          "description": "Its presence indicates that the link is to be deprecated at a future date. Its value is a URL that should provide further information about the deprecation."
        },
        "name": {
          "type": "string",
          "description": "Its value may be used as a secondary key for selecting link objects that share the same relation type."
        },
        "profile": {
          "type": "string",
          "description": "A URI that hints about the profile of the target resource."
        },
        "title": {
          "type": "string",
          "description": "Intended for labelling the link with a human-readable identifier"
        },
        "hreflang": {
          "type": "string",
          "description": "Indicates the language of the target resource"
        }
      }
    },
    "Administrative_API_PaginationLinks": {
      "type": "object",
      "description": "A links object containing pagination related link(s).",
      "properties": {
        "previous": {
          "$ref": "#/$defs/Administrative_API_Link"
        },
        "next": {
          "$ref": "#/$defs/Administrative_API_Link"
        },
        "self": {
          "$ref": "#/$defs/Administrative_API_Link"
        }
      }
    },
    "Administrative_API_Resource": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "Type of resource affected. Can be “testName”, “reportTitle”, “userDisplayName”, “alertRuleName”, etc."
        },
        "name": {
          "type": "string",
          "description": "Name of the affected resource."
        }
      }
    },
    "Administrative_API_StartDate": {
      "type": "string",
      "format": "date-time",
      "description": "(Optional) When passing `window` or `startDate` parameter,  the client will also receive the `startDate` field indicating the UTC start date of the data's time range being retrieved  (ISO date-time format).",
      "readOnly": true
    },
    "Administrative_API_UserEvent": {
      "type": "object",
      "properties": {
        "aid": {
          "$ref": "#/$defs/Administrative_API_AccountGroupId"
        },
        "accountGroupName": {
          "type": "string",
          "description": "Account group name"
        },
        "date": {
          "type": "string",
          "description": "UTC event date (ISO date-time format).",
          "format": "date-time"
        },
        "event": {
          "type": "string",
          "description": "Event type."
        },
        "ipAddress": {
          "type": "string",
          "description": "Source IP address of the user."
        },
        "uid": {
          "type": "string",
          "description": "Unique id representing the user."
        },
        "user": {
          "type": "string",
          "description": "The name and email address of the user."
        },
        "resources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Administrative_API_Resource"
          }
        }
      }
    }
  }
}