Class: Google::Apis::ManagedidentitiesV1alpha1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
- Inherits:
-
Object
- Object
- Google::Apis::ManagedidentitiesV1alpha1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/managedidentities_v1alpha1/classes.rb,
generated/google/apis/managedidentities_v1alpha1/representations.rb,
generated/google/apis/managedidentities_v1alpha1/representations.rb
Overview
SloExclusion represents an exclusion in SLI calculation applies to all SLOs.
Instance Attribute Summary collapse
-
#duration ⇒ String
Exclusion duration.
-
#reason ⇒ String
Human-readable reason for the exclusion.
-
#sli_name ⇒ String
Name of an SLI that this exclusion applies to.
-
#start_time ⇒ String
Start time of the exclusion.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
constructor
A new instance of GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion
Returns a new instance of GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion.
936 937 938 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 936 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration ⇒ String
Exclusion duration. No restrictions on the possible values. When an ongoing
operation is taking longer than initially expected, an existing entry in the
exclusion list can be updated by extending the duration. This is supported by
the subsystem exporting eligibility data as long as such extension is
committed at least 10 minutes before the original exclusion expiration -
otherwise it is possible that there will be "gaps" in the exclusion
application in the exported timeseries.
Corresponds to the JSON property duration
915 916 917 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 915 def duration @duration end |
#reason ⇒ String
Human-readable reason for the exclusion. This should be a static string (e.g. "
Disruptive update in progress") and should not contain dynamically generated
data (e.g. instance name). Can be left empty.
Corresponds to the JSON property reason
922 923 924 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 922 def reason @reason end |
#sli_name ⇒ String
Name of an SLI that this exclusion applies to. Can be left empty, signaling
that the instance should be excluded from all SLIs defined in the service SLO
configuration.
Corresponds to the JSON property sliName
929 930 931 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 929 def sli_name @sli_name end |
#start_time ⇒ String
Start time of the exclusion. No alignment (e.g. to a full minute) needed.
Corresponds to the JSON property startTime
934 935 936 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 934 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
941 942 943 944 945 946 |
# File 'generated/google/apis/managedidentities_v1alpha1/classes.rb', line 941 def update!(**args) @duration = args[:duration] if args.key?(:duration) @reason = args[:reason] if args.key?(:reason) @sli_name = args[:sli_name] if args.key?(:sli_name) @start_time = args[:start_time] if args.key?(:start_time) end |