Class: Google::Apis::FileV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/file_v1/classes.rb,
generated/google/apis/file_v1/representations.rb,
generated/google/apis/file_v1/representations.rb

Overview

SloExclusion represents an excusion in SLI calculation applies to all SLOs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion

Returns a new instance of GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion



498
499
500
# File 'generated/google/apis/file_v1/classes.rb', line 498

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#exclusion_durationString

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 exclusionDuration

Returns:

  • (String)


476
477
478
# File 'generated/google/apis/file_v1/classes.rb', line 476

def exclusion_duration
  @exclusion_duration
end

#exclusion_start_timeString

Start time of the exclusion. No alignment (e.g. to a full minute) needed. Corresponds to the JSON property exclusionStartTime

Returns:

  • (String)


481
482
483
# File 'generated/google/apis/file_v1/classes.rb', line 481

def exclusion_start_time
  @exclusion_start_time
end

#reasonString

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

Returns:

  • (String)


489
490
491
# File 'generated/google/apis/file_v1/classes.rb', line 489

def reason
  @reason
end

#sli_nameString

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

Returns:

  • (String)


496
497
498
# File 'generated/google/apis/file_v1/classes.rb', line 496

def sli_name
  @sli_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



503
504
505
506
507
508
# File 'generated/google/apis/file_v1/classes.rb', line 503

def update!(**args)
  @exclusion_duration = args[:exclusion_duration] if args.key?(:exclusion_duration)
  @exclusion_start_time = args[:exclusion_start_time] if args.key?(:exclusion_start_time)
  @reason = args[:reason] if args.key?(:reason)
  @sli_name = args[:sli_name] if args.key?(:sli_name)
end