Struct k8s_openapi::v1_7::kubernetes::pkg::api::v1::Event [−][src]
pub struct Event { pub api_version: Option<String>, pub count: Option<i32>, pub first_timestamp: Option<Time>, pub involved_object: ObjectReference, pub kind: Option<String>, pub last_timestamp: Option<Time>, pub message: Option<String>, pub metadata: ObjectMeta, pub reason: Option<String>, pub source: Option<EventSource>, pub type_: Option<String>, }
Event is a report of an event somewhere in the cluster.
Fields
api_version: Option<String>
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources
count: Option<i32>
The number of times this event has occurred.
first_timestamp: Option<Time>
The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
involved_object: ObjectReference
The object that this event is about.
kind: Option<String>
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
last_timestamp: Option<Time>
The time at which the most recent occurrence of this event was recorded.
message: Option<String>
A human-readable description of the status of this operation.
metadata: ObjectMeta
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
reason: Option<String>
This should be a short, machine understandable string that gives the reason for the transition into the object's current status.
source: Option<EventSource>
The component reporting this event. Should be a short machine understandable string.
type_: Option<String>
Type of this event (Normal, Warning), new types could be added in the future
Methods
impl Event
[src]
impl Event
pub fn create_core_v1_namespaced_event(
namespace: &str,
body: &Event,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn create_core_v1_namespaced_event(
namespace: &str,
body: &Event,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
create an Event
Use CreateCoreV1NamespacedEventResponse
to parse the HTTP response.
impl Event
[src]
impl Event
pub fn delete_core_v1_collection_namespaced_event(
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn delete_core_v1_collection_namespaced_event(
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
delete collection of Event
Use DeleteCoreV1CollectionNamespacedEventResponse
to parse the HTTP response.
impl Event
[src]
impl Event
pub fn delete_core_v1_namespaced_event(
name: &str,
namespace: &str,
grace_period_seconds: Option<i64>,
orphan_dependents: Option<bool>,
pretty: Option<&str>,
propagation_policy: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn delete_core_v1_namespaced_event(
name: &str,
namespace: &str,
grace_period_seconds: Option<i64>,
orphan_dependents: Option<bool>,
pretty: Option<&str>,
propagation_policy: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
delete an Event
Use DeleteCoreV1NamespacedEventResponse
to parse the HTTP response.
impl Event
[src]
impl Event
pub fn list_core_v1_event_for_all_namespaces(
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn list_core_v1_event_for_all_namespaces(
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
list or watch objects of kind Event
Use ListCoreV1EventForAllNamespacesResponse
to parse the HTTP response.
impl Event
[src]
impl Event
pub fn list_core_v1_namespaced_event(
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn list_core_v1_namespaced_event(
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
list or watch objects of kind Event
Use ListCoreV1NamespacedEventResponse
to parse the HTTP response.
impl Event
[src]
impl Event
pub fn patch_core_v1_namespaced_event(
name: &str,
namespace: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn patch_core_v1_namespaced_event(
name: &str,
namespace: &str,
body: &Patch,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
partially update the specified Event
Use PatchCoreV1NamespacedEventResponse
to parse the HTTP response.
impl Event
[src]
impl Event
pub fn read_core_v1_namespaced_event(
name: &str,
namespace: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn read_core_v1_namespaced_event(
name: &str,
namespace: &str,
exact: Option<bool>,
export: Option<bool>,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
read the specified Event
Use ReadCoreV1NamespacedEventResponse
to parse the HTTP response.
impl Event
[src]
impl Event
pub fn replace_core_v1_namespaced_event(
name: &str,
namespace: &str,
body: &Event,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn replace_core_v1_namespaced_event(
name: &str,
namespace: &str,
body: &Event,
pretty: Option<&str>
) -> Result<Request<Vec<u8>>, RequestError>
replace the specified Event
Use ReplaceCoreV1NamespacedEventResponse
to parse the HTTP response.
impl Event
[src]
impl Event
pub fn watch_core_v1_event_list_for_all_namespaces(
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn watch_core_v1_event_list_for_all_namespaces(
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
watch individual changes to a list of Event
Use WatchCoreV1EventListForAllNamespacesResponse
to parse the HTTP response.
impl Event
[src]
impl Event
pub fn watch_core_v1_namespaced_event(
name: &str,
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn watch_core_v1_namespaced_event(
name: &str,
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
watch changes to an object of kind Event
Use WatchCoreV1NamespacedEventResponse
to parse the HTTP response.
impl Event
[src]
impl Event
pub fn watch_core_v1_namespaced_event_list(
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
[src]
pub fn watch_core_v1_namespaced_event_list(
namespace: &str,
field_selector: Option<&str>,
include_uninitialized: Option<bool>,
label_selector: Option<&str>,
pretty: Option<&str>,
resource_version: Option<&str>,
timeout_seconds: Option<i64>,
watch: Option<bool>
) -> Result<Request<Vec<u8>>, RequestError>
watch individual changes to a list of Event
Use WatchCoreV1NamespacedEventListResponse
to parse the HTTP response.
Trait Implementations
impl Clone for Event
[src]
impl Clone for Event
fn clone(&self) -> Event
[src]
fn clone(&self) -> Event
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Event
[src]
impl Debug for Event
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Event
[src]
impl Default for Event
impl PartialEq for Event
[src]
impl PartialEq for Event
fn eq(&self, other: &Event) -> bool
[src]
fn eq(&self, other: &Event) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Event) -> bool
[src]
fn ne(&self, other: &Event) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for Event
[src]
impl<'de> Deserialize<'de> for Event
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for Event
[src]
impl Serialize for Event