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.



1161
1162
1163
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1161

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

Instance Attribute Details

#badgesArray<String>

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

Returns:

  • (Array<String>)


1149
1150
1151
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1149

def badges
  @badges
end

#first_failing_timeString

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

Returns:

  • (String)


1154
1155
1156
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1154

def first_failing_time
  @first_failing_time
end

#last_failing_timeString

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

Returns:

  • (String)


1159
1160
1161
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1159

def last_failing_time
  @last_failing_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1166
1167
1168
1169
1170
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1166

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