Class Event


  • public final class Event
    extends java.lang.Object
    • Method Detail

      • action

        public java.util.Optional<java.lang.String> action()
        Returns:
        What action was taken/failed regarding to the Regarding object.
      • apiVersion

        public java.util.Optional<java.lang.String> apiVersion()
        Returns:
        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/sig-architecture/api-conventions.md#resources
      • count

        public java.util.Optional<java.lang.Integer> count()
        Returns:
        The number of times this event has occurred.
      • eventTime

        public java.util.Optional<java.lang.String> eventTime()
        Returns:
        Time when this Event was first observed.
      • firstTimestamp

        public java.util.Optional<java.lang.String> firstTimestamp()
        Returns:
        The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
      • involvedObject

        public ObjectReference involvedObject()
        Returns:
        The object that this event is about.
      • kind

        public java.util.Optional<java.lang.String> kind()
        Returns:
        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/sig-architecture/api-conventions.md#types-kinds
      • lastTimestamp

        public java.util.Optional<java.lang.String> lastTimestamp()
        Returns:
        The time at which the most recent occurrence of this event was recorded.
      • message

        public java.util.Optional<java.lang.String> message()
        Returns:
        A human-readable description of the status of this operation.
      • metadata

        public ObjectMeta metadata()
        Returns:
        Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      • reason

        public java.util.Optional<java.lang.String> reason()
        Returns:
        This should be a short, machine understandable string that gives the reason for the transition into the object's current status.
      • related

        public java.util.Optional<ObjectReference> related()
        Returns:
        Optional secondary object for more complex actions.
      • reportingComponent

        public java.util.Optional<java.lang.String> reportingComponent()
        Returns:
        Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
      • reportingInstance

        public java.util.Optional<java.lang.String> reportingInstance()
        Returns:
        ID of the controller instance, e.g. `kubelet-xyzf`.
      • series

        public java.util.Optional<EventSeries> series()
        Returns:
        Data about the Event series this event represents or nil if it's a singleton Event.
      • source

        public java.util.Optional<EventSource> source()
        Returns:
        The component reporting this event. Should be a short machine understandable string.
      • type

        public java.util.Optional<java.lang.String> type()
        Returns:
        Type of this event (Normal, Warning), new types could be added in the future