# io.k8s.apimachinery.pkg.apis.meta.v1.WatchEvent

From **Kubernetes**.

Event represents a single event to a watched resource.

- Type: `object`

## Properties

### `object`

- Required: true
Object is:
 * If Type is Added or Modified: the new state of the object.
 * If Type is Deleted: the state of the object immediately before deletion.
 * If Type is Error: *Status is recommended; other types may make sense
   depending on context.

### `type`

- Required: true
- Type: `string`

## JSON Schema

```json
{"description":"Event represents a single event to a watched resource.","properties":{"object":{"allOf":[{"$ref":"#/components/schemas/io.k8s.apimachinery.pkg.runtime.RawExtension"}],"description":"Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n   depending on context."},"type":{"default":"","type":"string"}},"required":["type","object"],"type":"object","x-kubernetes-group-version-kind":[{"group":"","kind":"WatchEvent","version":"v1"},{"group":"batch","kind":"WatchEvent","version":"v1"}]}
```
