Class: Google::Apis::MonitoringV1::SparkChartView
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::SparkChartView
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/monitoring_v1/classes.rb,
generated/google/apis/monitoring_v1/representations.rb,
generated/google/apis/monitoring_v1/representations.rb
Overview
A sparkChart is a small chart suitable for inclusion in a table-cell or inline in text. This message contains the configuration for a sparkChart to show up on a Scorecard, showing recent trends of the scorecard's timeseries.
Instance Attribute Summary collapse
-
#min_alignment_period ⇒ String
The lower bound on data point frequency in the chart implemented by specifying the minimum alignment period to use in a time series query.
-
#spark_chart_type ⇒ String
The type of sparkchart to show in this chartView.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SparkChartView
constructor
A new instance of SparkChartView.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SparkChartView
Returns a new instance of SparkChartView.
805 806 807 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 805 def initialize(**args) update!(**args) end |
Instance Attribute Details
#min_alignment_period ⇒ String
The lower bound on data point frequency in the chart implemented by specifying
the minimum alignment period to use in a time series query. For example, if
the data is published once every 10 minutes it would not make sense to fetch
and align data at one minute intervals. This field is optional and exists only
as a hint.
Corresponds to the JSON property minAlignmentPeriod
798 799 800 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 798 def min_alignment_period @min_alignment_period end |
#spark_chart_type ⇒ String
The type of sparkchart to show in this chartView.
Corresponds to the JSON property sparkChartType
803 804 805 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 803 def spark_chart_type @spark_chart_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
810 811 812 813 |
# File 'generated/google/apis/monitoring_v1/classes.rb', line 810 def update!(**args) @min_alignment_period = args[:min_alignment_period] if args.key?(:min_alignment_period) @spark_chart_type = args[:spark_chart_type] if args.key?(:spark_chart_type) end |