Etcd · Schema

WatchCreateRequest

Request to create a new watch on a key range

Cloud NativeConsensusDistributed SystemsGraduatedKey-Value StoreKubernetes

Properties

Name Type Description
key string The key to watch in base64-encoded format
range_end string The range end for watching multiple keys in base64-encoded format
start_revision string Revision to start watching from. 0 means the current revision.
progress_notify boolean When true, sends periodic progress reports even when no events occur
filters array Event types to filter out from the watch stream
prev_kv boolean When true, includes the previous key-value pair in DELETE events
watch_id string User-assigned ID to identify this watch stream
fragment boolean When true, splits large watch responses into smaller fragments
View JSON Schema on GitHub

JSON Schema

etcd-watchcreaterequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/WatchCreateRequest",
  "title": "WatchCreateRequest",
  "type": "object",
  "description": "Request to create a new watch on a key range",
  "properties": {
    "key": {
      "type": "string",
      "description": "The key to watch in base64-encoded format"
    },
    "range_end": {
      "type": "string",
      "description": "The range end for watching multiple keys in base64-encoded format"
    },
    "start_revision": {
      "type": "string",
      "description": "Revision to start watching from. 0 means the current revision."
    },
    "progress_notify": {
      "type": "boolean",
      "description": "When true, sends periodic progress reports even when no events occur"
    },
    "filters": {
      "type": "array",
      "description": "Event types to filter out from the watch stream",
      "items": {
        "type": "string",
        "enum": [
          "NOPUT",
          "NODELETE"
        ]
      }
    },
    "prev_kv": {
      "type": "boolean",
      "description": "When true, includes the previous key-value pair in DELETE events"
    },
    "watch_id": {
      "type": "string",
      "description": "User-assigned ID to identify this watch stream"
    },
    "fragment": {
      "type": "boolean",
      "description": "When true, splits large watch responses into smaller fragments"
    }
  }
}