kubernetes.client.models.core_v1_event module¶
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: release-1.36 Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
- class kubernetes.client.models.core_v1_event.CoreV1Event(*, action: Annotated[str, Strict(strict=True)] | None = None, api_version: Annotated[str, Strict(strict=True)] | None = None, count: Annotated[int, Strict(strict=True)] | None = None, event_time: datetime | None = None, first_timestamp: datetime | None = None, involved_object: V1ObjectReference, kind: Annotated[str, Strict(strict=True)] | None = None, last_timestamp: datetime | None = None, message: Annotated[str, Strict(strict=True)] | None = None, metadata: V1ObjectMeta, reason: Annotated[str, Strict(strict=True)] | None = None, related: V1ObjectReference | None = None, reporting_component: Annotated[str, Strict(strict=True)] | None = None, reporting_instance: Annotated[str, Strict(strict=True)] | None = None, series: CoreV1EventSeries | None = None, source: V1EventSource | None = None, type: Annotated[str, Strict(strict=True)] | None = None)¶
Bases:
BaseModelEvent is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.
- Attributes:
- openapi_types (dict): The key is attribute name
and the value is attribute type.
- attribute_map (dict): The key is attribute name
and the value is json key in definition.
- action: StrictStr | None¶
- api_version: StrictStr | None¶
- attribute_map: ClassVar[Dict[str, str]] = {'action': 'action', 'api_version': 'apiVersion', 'count': 'count', 'event_time': 'eventTime', 'first_timestamp': 'firstTimestamp', 'involved_object': 'involvedObject', 'kind': 'kind', 'last_timestamp': 'lastTimestamp', 'message': 'message', 'metadata': 'metadata', 'reason': 'reason', 'related': 'related', 'reporting_component': 'reportingComponent', 'reporting_instance': 'reportingInstance', 'series': 'series', 'source': 'source', 'type': 'type'}¶
- count: StrictInt | None¶
- event_time: datetime | None¶
- first_timestamp: datetime | None¶
- classmethod from_dict(obj: Dict[str, Any] | None) Self | None¶
Create an instance of CoreV1Event from a dict
- classmethod from_json(json_str: str) Self | None¶
Create an instance of CoreV1Event from a JSON string
- involved_object: V1ObjectReference¶
- kind: StrictStr | None¶
- last_timestamp: datetime | None¶
- message: StrictStr | None¶
- metadata: V1ObjectMeta¶
- model_config = {'extra': 'forbid', 'protected_namespaces': (), 'validate_assignment': True, 'validate_by_alias': True, 'validate_by_name': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- openapi_types: ClassVar[Dict[str, str]] = {'action': 'str', 'api_version': 'str', 'count': 'int', 'event_time': 'datetime', 'first_timestamp': 'datetime', 'involved_object': 'V1ObjectReference', 'kind': 'str', 'last_timestamp': 'datetime', 'message': 'str', 'metadata': 'V1ObjectMeta', 'reason': 'str', 'related': 'V1ObjectReference', 'reporting_component': 'str', 'reporting_instance': 'str', 'series': 'CoreV1EventSeries', 'source': 'V1EventSource', 'type': 'str'}¶
- reason: StrictStr | None¶
- reporting_component: StrictStr | None¶
- reporting_instance: StrictStr | None¶
- series: CoreV1EventSeries | None¶
- source: V1EventSource | None¶
- to_dict(serialize: bool = False) Dict[str, Any]¶
Return all declared model fields using public or wire names.
- to_json() str¶
Returns the JSON representation of the model using alias
- to_str() str¶
Returns the string representation of the model
- type: StrictStr | None¶