final case class Event(eventTime: MicroTime, regarding: Option[ObjectReference] = None, series: Option[EventSeries] = None, reason: Option[String] = None, deprecatedCount: Option[Int] = None, related: Option[ObjectReference] = None, deprecatedFirstTimestamp: Option[Time] = None, note: Option[String] = None, reportingController: Option[String] = None, metadata: Option[ObjectMeta] = None, deprecatedSource: Option[EventSource] = None, type: Option[String] = None, deprecatedLastTimestamp: Option[Time] = None, reportingInstance: Option[String] = None, action: Option[String] = None) extends KObject with Product with Serializable
Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. 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.
- Source
- Event.scala
- Alphabetic
- By Inheritance
- Event
- KObject
- Product
- Equals
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Event(eventTime: MicroTime, regarding: Option[ObjectReference] = None, series: Option[EventSeries] = None, reason: Option[String] = None, deprecatedCount: Option[Int] = None, related: Option[ObjectReference] = None, deprecatedFirstTimestamp: Option[Time] = None, note: Option[String] = None, reportingController: Option[String] = None, metadata: Option[ObjectMeta] = None, deprecatedSource: Option[EventSource] = None, type: Option[String] = None, deprecatedLastTimestamp: Option[Time] = None, reportingInstance: Option[String] = None, action: Option[String] = None)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val _resourceKind: ResourceKind
- val action: Option[String]
-
final
lazy val
apiVersion: String
- Definition Classes
- KObject
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val deprecatedCount: Option[Int]
- val deprecatedFirstTimestamp: Option[Time]
- val deprecatedLastTimestamp: Option[Time]
- val deprecatedSource: Option[EventSource]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val eventTime: MicroTime
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
group: String
- Definition Classes
- KObject
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
lazy val
kind: String
- Definition Classes
- KObject
-
def
mapAction(f: (String) ⇒ String): Event
if action has a value, transforms to the result of function
-
def
mapDeprecatedCount(f: (Int) ⇒ Int): Event
if deprecatedCount has a value, transforms to the result of function
-
def
mapDeprecatedFirstTimestamp(f: (Time) ⇒ Time): Event
if deprecatedFirstTimestamp has a value, transforms to the result of function
-
def
mapDeprecatedLastTimestamp(f: (Time) ⇒ Time): Event
if deprecatedLastTimestamp has a value, transforms to the result of function
-
def
mapDeprecatedSource(f: (EventSource) ⇒ EventSource): Event
if deprecatedSource has a value, transforms to the result of function
-
def
mapEventTime(f: (MicroTime) ⇒ MicroTime): Event
transforms eventTime to result of function
-
def
mapMetadata(f: (ObjectMeta) ⇒ ObjectMeta): Event
if metadata has a value, transforms to the result of function
-
def
mapNote(f: (String) ⇒ String): Event
if note has a value, transforms to the result of function
-
def
mapReason(f: (String) ⇒ String): Event
if reason has a value, transforms to the result of function
-
def
mapRegarding(f: (ObjectReference) ⇒ ObjectReference): Event
if regarding has a value, transforms to the result of function
-
def
mapRelated(f: (ObjectReference) ⇒ ObjectReference): Event
if related has a value, transforms to the result of function
-
def
mapReportingController(f: (String) ⇒ String): Event
if reportingController has a value, transforms to the result of function
-
def
mapReportingInstance(f: (String) ⇒ String): Event
if reportingInstance has a value, transforms to the result of function
-
def
mapSeries(f: (EventSeries) ⇒ EventSeries): Event
if series has a value, transforms to the result of function
-
def
mapType(f: (String) ⇒ String): Event
if
type
has a value, transforms to the result of function - val metadata: Option[ObjectMeta]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val note: Option[String]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val reason: Option[String]
- val regarding: Option[ObjectReference]
- val related: Option[ObjectReference]
- val reportingController: Option[String]
- val reportingInstance: Option[String]
- val series: Option[EventSeries]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val type: Option[String]
-
final
lazy val
version: String
- Definition Classes
- KObject
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withAction(value: String): Event
Returns a new data with action set to new value
-
def
withDeprecatedCount(value: Int): Event
Returns a new data with deprecatedCount set to new value
-
def
withDeprecatedFirstTimestamp(value: Time): Event
Returns a new data with deprecatedFirstTimestamp set to new value
-
def
withDeprecatedLastTimestamp(value: Time): Event
Returns a new data with deprecatedLastTimestamp set to new value
-
def
withDeprecatedSource(value: EventSource): Event
Returns a new data with deprecatedSource set to new value
-
def
withEventTime(value: MicroTime): Event
Returns a new data with eventTime set to new value
-
def
withMetadata(value: ObjectMeta): Event
Returns a new data with metadata set to new value
-
def
withNote(value: String): Event
Returns a new data with note set to new value
-
def
withReason(value: String): Event
Returns a new data with reason set to new value
-
def
withRegarding(value: ObjectReference): Event
Returns a new data with regarding set to new value
-
def
withRelated(value: ObjectReference): Event
Returns a new data with related set to new value
-
def
withReportingController(value: String): Event
Returns a new data with reportingController set to new value
-
def
withReportingInstance(value: String): Event
Returns a new data with reportingInstance set to new value
-
def
withSeries(value: EventSeries): Event
Returns a new data with series set to new value
-
def
withType(value: String): Event
Returns a new data with
type
set to new value