View Source Bonny.Event (bonny v1.4.0)
Represents a kubernetes event. Documentation: https://kubernetes.io/docs/reference/kubernetes-api/cluster-resources/event-v1/
Summary
Types
Kubernetes events currently support these types.
See https://kubernetes.io/docs/reference/kubernetes-api/cluster-resources/event-v1/ for field explanations.
Types
@type event_type() :: :Normal | :Warning
Kubernetes events currently support these types.
@type t() :: %Bonny.Event{ action: binary(), event_type: event_type(), message: binary(), now: DateTime.t(), reason: binary(), regarding: map(), related: map(), reporting_controller: binary(), reporting_instance: binary() }
See https://kubernetes.io/docs/reference/kubernetes-api/cluster-resources/event-v1/ for field explanations.
Functions
Creates an event.
Options: :reporting_controller
, :reporting_instance
Link to this function
new!(regarding, related \\ nil, event_type, reason, action, message, opts \\ [])
View Source@spec new!( Bonny.Resource.t(), Bonny.Resource.t() | nil, event_type(), binary(), binary(), binary(), Keyword.t() ) :: t()