Class: Google::Apis::SpannerV1::DiagnosticMessage
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::DiagnosticMessage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb
Overview
A message representing the key visualizer diagnostic messages.
Instance Attribute Summary collapse
-
#info ⇒ Google::Apis::SpannerV1::LocalizedString
A message representing a user-facing string whose value may need to be translated before being displayed.
-
#metric ⇒ Google::Apis::SpannerV1::LocalizedString
A message representing a user-facing string whose value may need to be translated before being displayed.
-
#metric_specific ⇒ Boolean
(also: #metric_specific?)
Whether this message is specific only for the current metric.
-
#severity ⇒ String
The severity of the diagnostic message.
-
#short_message ⇒ Google::Apis::SpannerV1::LocalizedString
A message representing a user-facing string whose value may need to be translated before being displayed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiagnosticMessage
constructor
A new instance of DiagnosticMessage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiagnosticMessage
Returns a new instance of DiagnosticMessage.
1391 1392 1393 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1391 def initialize(**args) update!(**args) end |
Instance Attribute Details
#info ⇒ Google::Apis::SpannerV1::LocalizedString
A message representing a user-facing string whose value may need to be
translated before being displayed.
Corresponds to the JSON property info
1361 1362 1363 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1361 def info @info end |
#metric ⇒ Google::Apis::SpannerV1::LocalizedString
A message representing a user-facing string whose value may need to be
translated before being displayed.
Corresponds to the JSON property metric
1367 1368 1369 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1367 def metric @metric end |
#metric_specific ⇒ Boolean Also known as: metric_specific?
Whether this message is specific only for the current metric. By default
Diagnostics are shown for all metrics, regardless which metric is the
currently selected metric in the UI. However occasionally a metric will
generate so many messages that the resulting visual clutter becomes
overwhelming. In this case setting this to true, will show the diagnostic
messages for that metric only if it is the currently selected metric.
Corresponds to the JSON property metricSpecific
1377 1378 1379 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1377 def metric_specific @metric_specific end |
#severity ⇒ String
The severity of the diagnostic message.
Corresponds to the JSON property severity
1383 1384 1385 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1383 def severity @severity end |
#short_message ⇒ Google::Apis::SpannerV1::LocalizedString
A message representing a user-facing string whose value may need to be
translated before being displayed.
Corresponds to the JSON property shortMessage
1389 1390 1391 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1389 def @short_message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1396 1397 1398 1399 1400 1401 1402 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1396 def update!(**args) @info = args[:info] if args.key?(:info) @metric = args[:metric] if args.key?(:metric) @metric_specific = args[:metric_specific] if args.key?(:metric_specific) @severity = args[:severity] if args.key?(:severity) @short_message = args[:short_message] if args.key?(:short_message) end |