Etcd · Schema

WatchEvent

An event describing a change to a key in the etcd cluster

Cloud NativeConsensusDistributed SystemsGraduatedKey-Value StoreKubernetes

Properties

Name Type Description
type string Type of the event - PUT for creates/updates, DELETE for deletions
kv object
prev_kv object
View JSON Schema on GitHub

JSON Schema

etcd-watchevent-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/WatchEvent",
  "title": "WatchEvent",
  "type": "object",
  "description": "An event describing a change to a key in the etcd cluster",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "PUT",
        "DELETE"
      ],
      "description": "Type of the event - PUT for creates/updates, DELETE for deletions"
    },
    "kv": {
      "$ref": "#/components/schemas/KeyValue"
    },
    "prev_kv": {
      "$ref": "#/components/schemas/KeyValue"
    }
  }
}