Class: Google::Apis::SpannerV1::DiagnosticMessage

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiagnosticMessage

Returns a new instance of DiagnosticMessage.



2324
2325
2326
# File 'lib/google/apis/spanner_v1/classes.rb', line 2324

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

Instance Attribute Details

#infoGoogle::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



2294
2295
2296
# File 'lib/google/apis/spanner_v1/classes.rb', line 2294

def info
  @info
end

#metricGoogle::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



2300
2301
2302
# File 'lib/google/apis/spanner_v1/classes.rb', line 2300

def metric
  @metric
end

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

Returns:

  • (Boolean)


2310
2311
2312
# File 'lib/google/apis/spanner_v1/classes.rb', line 2310

def metric_specific
  @metric_specific
end

#severityString

The severity of the diagnostic message. Corresponds to the JSON property severity

Returns:

  • (String)


2316
2317
2318
# File 'lib/google/apis/spanner_v1/classes.rb', line 2316

def severity
  @severity
end

#short_messageGoogle::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



2322
2323
2324
# File 'lib/google/apis/spanner_v1/classes.rb', line 2322

def short_message
  @short_message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2329
2330
2331
2332
2333
2334
2335
# File 'lib/google/apis/spanner_v1/classes.rb', line 2329

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