kubernetes.client.models.events_v1_event_series 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.events_v1_event_series.EventsV1EventSeries(*, count: Annotated[int, Strict(strict=True)], last_observed_time: datetime)¶
Bases:
BaseModelEventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in “k8s.io/client-go/tools/events/event_broadcaster.go” shows how this struct is updated on heartbeats and can guide customized reporter implementations.
- 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.
- attribute_map: ClassVar[Dict[str, str]] = {'count': 'count', 'last_observed_time': 'lastObservedTime'}¶
- count: StrictInt¶
- classmethod from_dict(obj: Dict[str, Any] | None) Self | None¶
Create an instance of EventsV1EventSeries from a dict
- classmethod from_json(json_str: str) Self | None¶
Create an instance of EventsV1EventSeries from a JSON string
- last_observed_time: datetime¶
- 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]] = {'count': 'int', 'last_observed_time': 'datetime'}¶
- 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