Class: Google::Apis::ChecksV1alpha::GoogleChecksReportV1alphaCheckStateMetadata

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

Overview

Additional information about the check state in relation to past reports.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChecksReportV1alphaCheckStateMetadata

Returns a new instance of GoogleChecksReportV1alphaCheckStateMetadata.



623
624
625
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 623

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

Instance Attribute Details

#badges ⇒ Array<String>

Indicators related to the check state. Corresponds to the JSON property badges

Returns:

  • (Array<String>)


611
612
613
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 611

def badges
  @badges
end

#first_failing_time ⇒ String

The time when the check first started failing. Corresponds to the JSON property firstFailingTime

Returns:

  • (String)


616
617
618
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 616

def first_failing_time
  @first_failing_time
end

#last_failing_time ⇒ String

The last time the check failed. Corresponds to the JSON property lastFailingTime

Returns:

  • (String)


621
622
623
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 621

def last_failing_time
  @last_failing_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



628
629
630
631
632
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 628

def update!(**args)
  @badges = args[:badges] if args.key?(:badges)
  @first_failing_time = args[:first_failing_time] if args.key?(:first_failing_time)
  @last_failing_time = args[:last_failing_time] if args.key?(:last_failing_time)
end