# Cloud Monitoring Dashboards V1 API - Class Google::Cloud::Monitoring::Dashboard::V1::PieChart::PieChartDataSet (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.16.0 0.15.0 0.14.2 0.13.0 0.12.1 0.11.0 0.10.0 0.9.1 0.8.0 0.7.0 0.6.6 Reference documentation and code samples for the Cloud Monitoring Dashboards V1 API class Google::Cloud::Monitoring::Dashboard::V1::PieChart::PieChartDataSet.

Groups a time series query definition.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #min_alignment_period

    def min_alignment_period() -> ::Google::Protobuf::Duration

**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Protobuf-Duration)) --- 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.

### #min_alignment_period=

    def min_alignment_period=(value) -> ::Google::Protobuf::Duration

**Parameter**

- **value** ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Protobuf-Duration)) --- 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.
**Returns**

- ([::Google::Protobuf::Duration](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Protobuf-Duration)) --- 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.

### #slice_name_template

    def slice_name_template() -> ::String

**Returns**

- (::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.

### #slice_name_template=

    def slice_name_template=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #time_series_query

    def time_series_query() -> ::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesQuery

**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesQuery](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-TimeSeriesQuery)) --- Required. The query for the PieChart. See, `google.monitoring.dashboard.v1.TimeSeriesQuery`.

### #time_series_query=

    def time_series_query=(value) -> ::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesQuery

**Parameter**

- **value** ([::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesQuery](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-TimeSeriesQuery)) --- Required. The query for the PieChart. See, `google.monitoring.dashboard.v1.TimeSeriesQuery`.
**Returns**

- ([::Google::Cloud::Monitoring::Dashboard::V1::TimeSeriesQuery](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-monitoring-dashboard-v1/latest/Google-Cloud-Monitoring-Dashboard-V1-TimeSeriesQuery)) --- Required. The query for the PieChart. See, `google.monitoring.dashboard.v1.TimeSeriesQuery`.