Class: Google::Apis::MonitoringV1::PieChartDataSet
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV1::PieChartDataSet
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v1/classes.rb,
lib/google/apis/monitoring_v1/representations.rb,
lib/google/apis/monitoring_v1/representations.rb
Overview
Groups a time series query definition.
Instance Attribute Summary collapse
-
#dimensions ⇒ Array<Google::Apis::MonitoringV1::Dimension>
A dimension is a structured label, class, or category for a set of measurements in your data.
-
#measures ⇒ Array<Google::Apis::MonitoringV1::Measure>
A measure is a measured value of a property in your data.
-
#min_alignment_period ⇒ String
Optional.
-
#slice_name_template ⇒ String
Optional.
-
#time_series_query ⇒ Google::Apis::MonitoringV1::TimeSeriesQuery
TimeSeriesQuery collects the set of supported methods for querying time series data from the Stackdriver metrics API.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PieChartDataSet
constructor
A new instance of PieChartDataSet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PieChartDataSet
Returns a new instance of PieChartDataSet.
1572 1573 1574 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1572 def initialize(**args) update!(**args) end |
Instance Attribute Details
#dimensions ⇒ Array<Google::Apis::MonitoringV1::Dimension>
A dimension is a structured label, class, or category for a set of
measurements in your data.
Corresponds to the JSON property dimensions
1541 1542 1543 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1541 def dimensions @dimensions end |
#measures ⇒ Array<Google::Apis::MonitoringV1::Measure>
A measure is a measured value of a property in your data. For example,
rainfall in inches, number of units sold, revenue gained, etc.
Corresponds to the JSON property measures
1547 1548 1549 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1547 def measures @measures end |
#min_alignment_period ⇒ String
Optional. The lower bound on data point frequency for this data set,
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, the
min_alignment_period should be at least 10 minutes. It would not make sense to
fetch and align data at one minute intervals.
Corresponds to the JSON property minAlignmentPeriod
1556 1557 1558 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1556 def min_alignment_period @min_alignment_period end |
#slice_name_template ⇒ String
Optional. A template for the name of the slice. This name will be displayed in
the legend and the tooltip of the pie chart. It replaces the auto-generated
names for the slices. For example, if the template is set to $resource.labels.
zone
, the zone's value will be used for the name instead of the default name.
Corresponds to the JSON property sliceNameTemplate
1564 1565 1566 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1564 def slice_name_template @slice_name_template end |
#time_series_query ⇒ Google::Apis::MonitoringV1::TimeSeriesQuery
TimeSeriesQuery collects the set of supported methods for querying time series
data from the Stackdriver metrics API.
Corresponds to the JSON property timeSeriesQuery
1570 1571 1572 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1570 def time_series_query @time_series_query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1577 1578 1579 1580 1581 1582 1583 |
# File 'lib/google/apis/monitoring_v1/classes.rb', line 1577 def update!(**args) @dimensions = args[:dimensions] if args.key?(:dimensions) @measures = args[:measures] if args.key?(:measures) @min_alignment_period = args[:min_alignment_period] if args.key?(:min_alignment_period) @slice_name_template = args[:slice_name_template] if args.key?(:slice_name_template) @time_series_query = args[:time_series_query] if args.key?(:time_series_query) end |