{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thousandeyes/json-schema/thousandeyes-dashboards-api-api-context-filters-response-schema.json",
  "title": "Dashboards_API_ApiContextFiltersResponse",
  "description": "All global dashboard filters saved.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thousandeyes-dashboards-filters-api-openapi.yml#/components/schemas/Dashboards_API_ApiContextFiltersResponse",
  "type": "object",
  "properties": {
    "dashboardFilters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Dashboards_API_ApiContextFilterResponse"
      }
    }
  },
  "$defs": {
    "Dashboards_API_ApiContextFilterResponse": {
      "description": "Response containing dashboard filter settings and context details.",
      "type": "object",
      "properties": {
        "context": {
          "$ref": "#/$defs/Dashboards_API_ApiContextFilters"
        },
        "aid": {
          "type": "string",
          "description": "Account group ID of the filter."
        },
        "id": {
          "type": "string",
          "description": "Unique ID of the dashboard filter."
        },
        "name": {
          "$ref": "#/$defs/Dashboards_API_ApiDashboardFilterName"
        },
        "description": {
          "$ref": "#/$defs/Dashboards_API_ApiDashboardFilterDescription"
        },
        "createdBy": {
          "$ref": "#/$defs/Dashboards_API_ApiDashboardFilterUserDetails"
        },
        "modifiedDate": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp when the filter was last modified."
        },
        "createdDate": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp when the filter was created."
        },
        "modifiedBy": {
          "$ref": "#/$defs/Dashboards_API_ApiDashboardFilterUserDetails"
        },
        "_links": {
          "$ref": "#/$defs/Dashboards_API_SelfLinks"
        }
      },
      "required": [
        "id",
        "aid",
        "name",
        "context"
      ]
    },
    "Dashboards_API_ApiContextFilters": {
      "type": "array",
      "description": "List of filters to be applied to a dashboard.",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/Dashboards_API_ApiDataSourceFilters"
      }
    },
    "Dashboards_API_ApiDashboardFilterDescription": {
      "type": "string",
      "description": "An optional description of the filter."
    },
    "Dashboards_API_ApiDashboardFilterName": {
      "type": "string",
      "description": "The name of the dashboard filter, this must be unique."
    },
    "Dashboards_API_ApiDashboardFilterUserDetails": {
      "type": "object",
      "description": "Details of user who created or modified the filter.",
      "properties": {
        "uid": {
          "type": "string",
          "description": "Unique ID of the user."
        },
        "name": {
          "type": "string",
          "description": "Name of the user."
        }
      }
    },
    "Dashboards_API_ApiDataSourceFilter": {
      "type": "object",
      "description": "List of different filter properties for a single datasource.",
      "properties": {
        "filterId": {
          "type": "string",
          "description": "Data source property to filter by."
        },
        "values": {
          "type": "array",
          "uniqueItems": true,
          "description": "Values to filter by based on the specified `filterId`.",
          "items": {
            "type": "string"
          }
        },
        "metricIds": {
          "type": "array",
          "uniqueItems": true,
          "description": "Dashboard metric associated with the filter property.",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "filterId",
        "values",
        "metricIds"
      ]
    },
    "Dashboards_API_ApiDataSourceFilters": {
      "type": "object",
      "description": "List of different datasource filters.",
      "properties": {
        "dataSourceId": {
          "type": "string",
          "description": "Types of data source."
        },
        "filters": {
          "type": "array",
          "description": "List of different filter properties.",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/Dashboards_API_ApiDataSourceFilter"
          }
        }
      },
      "required": [
        "dataSourceId",
        "filters"
      ]
    },
    "Dashboards_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"
        }
      }
    },
    "Dashboards_API_SelfLinks": {
      "type": "object",
      "description": "A links object containing the self link.",
      "readOnly": true,
      "properties": {
        "self": {
          "$ref": "#/$defs/Dashboards_API_Link"
        }
      }
    }
  }
}