Class: Google::Apis::ContainerV1beta1::DisruptionEvent
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::DisruptionEvent
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/container_v1beta1/classes.rb,
lib/google/apis/container_v1beta1/representations.rb,
lib/google/apis/container_v1beta1/representations.rb
Overview
DisruptionEvent is a notification sent to customers about the disruption event of a resource.
Instance Attribute Summary collapse
-
#disruption_type ⇒ String
The type of the disruption event.
-
#pdb_blocked_node ⇒ String
The node whose drain is blocked by PDB.
-
#pdb_blocked_pod ⇒ Array<Google::Apis::ContainerV1beta1::PdbBlockedPod>
The pods whose evictions are blocked by PDB.
-
#pdb_violation_timeout ⇒ String
The timeout in seconds for which the node drain is blocked by PDB.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DisruptionEvent
constructor
A new instance of DisruptionEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DisruptionEvent
Returns a new instance of DisruptionEvent.
3444 3445 3446 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3444 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disruption_type ⇒ String
The type of the disruption event.
Corresponds to the JSON property disruptionType
3423 3424 3425 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3423 def disruption_type @disruption_type end |
#pdb_blocked_node ⇒ String
The node whose drain is blocked by PDB. This field is set for both
POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.
Corresponds to the JSON property pdbBlockedNode
3429 3430 3431 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3429 def pdb_blocked_node @pdb_blocked_node end |
#pdb_blocked_pod ⇒ Array<Google::Apis::ContainerV1beta1::PdbBlockedPod>
The pods whose evictions are blocked by PDB. This field is set for both
POD_PDB_VIOLATION and POD_NOT_ENOUGH_PDB event.
Corresponds to the JSON property pdbBlockedPod
3435 3436 3437 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3435 def pdb_blocked_pod @pdb_blocked_pod end |
#pdb_violation_timeout ⇒ String
The timeout in seconds for which the node drain is blocked by PDB. After this
timeout, pods are forcefully evicted. This field is only populated when
event_type is POD_PDB_VIOLATION.
Corresponds to the JSON property pdbViolationTimeout
3442 3443 3444 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3442 def pdb_violation_timeout @pdb_violation_timeout end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3449 3450 3451 3452 3453 3454 |
# File 'lib/google/apis/container_v1beta1/classes.rb', line 3449 def update!(**args) @disruption_type = args[:disruption_type] if args.key?(:disruption_type) @pdb_blocked_node = args[:pdb_blocked_node] if args.key?(:pdb_blocked_node) @pdb_blocked_pod = args[:pdb_blocked_pod] if args.key?(:pdb_blocked_pod) @pdb_violation_timeout = args[:pdb_violation_timeout] if args.key?(:pdb_violation_timeout) end |