Elastic · Schema

eql._types.EqlSearchResponseBase

SearchAnalyticsObservabilitySecurityVisualizationCloudMonitoring

Properties

Name Type Description
id object Identifier for the search.
is_partial boolean If true, the response does not contain complete search results.
is_running boolean If true, the search request is still executing.
took object Milliseconds it took Elasticsearch to execute the request.
timed_out boolean If true, the request timed out before completion.
hits object Contains matching events and sequences. Also contains related metadata.
shard_failures array Contains information about shard failures (if any), in case allow_partial_search_results=true
View JSON Schema on GitHub

JSON Schema

elastic-eql-types-eql-search-response-base-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elastic/json-schema/elastic-eql-types-eql-search-response-base-schema.json",
  "title": "eql._types.EqlSearchResponseBase",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elastic-eql-api-openapi.yml#/components/schemas/eql._types.EqlSearchResponseBase",
  "type": "object",
  "properties": {
    "id": {
      "description": "Identifier for the search.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.Id"
        }
      ]
    },
    "is_partial": {
      "description": "If true, the response does not contain complete search results.",
      "type": "boolean"
    },
    "is_running": {
      "description": "If true, the search request is still executing.",
      "type": "boolean"
    },
    "took": {
      "description": "Milliseconds it took Elasticsearch to execute the request.",
      "allOf": [
        {
          "$ref": "#/$defs/_types.DurationValueUnitMillis"
        }
      ]
    },
    "timed_out": {
      "description": "If true, the request timed out before completion.",
      "type": "boolean"
    },
    "hits": {
      "description": "Contains matching events and sequences. Also contains related metadata.",
      "allOf": [
        {
          "$ref": "#/$defs/eql._types.EqlHits"
        }
      ]
    },
    "shard_failures": {
      "description": "Contains information about shard failures (if any), in case allow_partial_search_results=true",
      "type": "array",
      "items": {
        "$ref": "#/$defs/_types.ShardFailure"
      }
    }
  },
  "required": [
    "hits"
  ],
  "$defs": {
    "_global.search._types.TotalHits": {
      "type": "object",
      "properties": {
        "relation": {
          "description": "\n\nSupported values include:\n  - `eq`: Accurate\n  - `gte`: Lower bound, including returned events or sequences\n\n",
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.TotalHitsRelation"
            }
          ]
        },
        "value": {
          "type": "number"
        }
      },
      "required": [
        "relation",
        "value"
      ]
    },
    "_global.search._types.TotalHitsRelation": {
      "type": "string",
      "enum": [
        "eq",
        "gte"
      ]
    },
    "_types.DurationValueUnitMillis": {
      "allOf": [
        {
          "$ref": "#/$defs/_types.UnitMillis"
        }
      ]
    },
    "_types.ErrorCause": {
      "description": "Cause and details about a request failure. This class defines the properties common to all error types.\nAdditional details are also provided, that depend on the error type.",
      "type": "object",
      "properties": {
        "type": {
          "description": "The type of error",
          "type": "string"
        },
        "reason": {
          "description": "A human-readable explanation of the error, in English.",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": [
                "string",
                "null"
              ]
            }
          ]
        },
        "stack_trace": {
          "description": "The server stack trace. Present only if the `error_trace=true` parameter was sent with the request.",
          "type": "string"
        },
        "caused_by": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ErrorCause"
            }
          ]
        },
        "root_cause": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.ErrorCause"
          }
        },
        "suppressed": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/_types.ErrorCause"
          }
        }
      },
      "required": [
        "type"
      ]
    },
    "_types.Id": {
      "type": "string"
    },
    "_types.IndexName": {
      "type": "string"
    },
    "_types.ShardFailure": {
      "type": "object",
      "properties": {
        "index": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.IndexName"
            }
          ]
        },
        "node": {
          "type": "string"
        },
        "reason": {
          "allOf": [
            {
              "$ref": "#/$defs/_types.ErrorCause"
            }
          ]
        },
        "shard": {
          "type": "number"
        },
        "status": {
          "type": "string"
        },
        "primary": {
          "type": "boolean"
        }
      },
      "required": [
        "reason"
      ]
    },
    "_types.UnitMillis": {
      "description": "Time unit for milliseconds",
      "type": "number"
    },
    "eql._types.EqlHits": {
      "type": "object",
      "properties": {
        "total": {
          "description": "Metadata about the number of matching events or sequences.",
          "allOf": [
            {
              "$ref": "#/$defs/_global.search._types.TotalHits"
            }
          ]
        },
        "events": {
          "description": "Contains events matching the query. Each object represents a matching event.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/eql._types.HitsEvent"
          }
        },
        "sequences": {
          "description": "Contains event sequences matching the query. Each object represents a matching sequence. This parameter is only returned for EQL queries containing a sequence.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/eql._types.HitsSequence"
          }
        }
      }
    },
    "eql._types.HitsEvent": {
      "type": "object",
      "properties": {
        "_index": {
          "description": "Name of the index containing the event.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.IndexName"
            }
          ]
        },
        "_id": {
          "description": "Unique identifier for the event. This ID is only unique within the index.",
          "allOf": [
            {
              "$ref": "#/$defs/_types.Id"
            }
          ]
        },
        "_source": {
          "description": "Original JSON body passed for the event at index time.",
          "type": "object"
        },
        "missing": {
          "description": "Set to `true` for events in a timespan-constrained sequence that do not meet a given condition.",
          "type": "boolean"
        },
        "fields": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "required": [
        "_index",
        "_id",
        "_source"
      ]
    },
    "eql._types.HitsSequence": {
      "type": "object",
      "properties": {
        "events": {
          "description": "Contains events matching the query. Each object represents a matching event.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/eql._types.HitsEvent"
          }
        },
        "join_keys": {
          "description": "Shared field values used to constrain matches in the sequence. These are defined using the by keyword in the EQL query syntax.",
          "type": "array",
          "items": {
            "type": "object"
          }
        }
      },
      "required": [
        "events"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/elastic-eql-types-eql-search-response-base"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.