Class: Google::Apis::ManagedidentitiesV1::GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion

Returns a new instance of GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion.



1033
1034
1035
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1033

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

Instance Attribute Details

#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 duration

Returns:

  • (String)


1013
1014
1015
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1013

def duration
  @duration
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)


1020
1021
1022
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1020

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. Corresponds to the JSON property sliName

Returns:

  • (String)


1026
1027
1028
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1026

def sli_name
  @sli_name
end

#start_timeString

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

Returns:

  • (String)


1031
1032
1033
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1031

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1038
1039
1040
1041
1042
1043
# File 'lib/google/apis/managedidentities_v1/classes.rb', line 1038

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