class Google::Apis::SpannerV1::DiagnosticMessage

A message representing the key visualizer diagnostic messages.

Attributes

info[RW]

A message representing a user-facing string whose value may need to be translated before being displayed. Corresponds to the JSON property `info` @return [Google::Apis::SpannerV1::LocalizedString]

metric[RW]

A message representing a user-facing string whose value may need to be translated before being displayed. Corresponds to the JSON property `metric` @return [Google::Apis::SpannerV1::LocalizedString]

metric_specific[RW]

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` @return [Boolean]

metric_specific?[RW]

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` @return [Boolean]

severity[RW]

The severity of the diagnostic message. Corresponds to the JSON property `severity` @return [String]

short_message[RW]

A message representing a user-facing string whose value may need to be translated before being displayed. Corresponds to the JSON property `shortMessage` @return [Google::Apis::SpannerV1::LocalizedString]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 1152
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/spanner_v1/classes.rb, line 1157
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