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.



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

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>)


604
605
606
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 604

def badges
  @badges
end

#first_failing_time ⇒ String

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

Returns:

  • (String)


609
610
611
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 609

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)


614
615
616
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 614

def last_failing_time
  @last_failing_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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