Reference documentation and code samples for the BigQuery Migration V2 API class Google::Cloud::Bigquery::Migration::V2::Point.
A single data point in a time series.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#interval
def interval() -> ::Google::Cloud::Bigquery::Migration::V2::TimeInterval
Returns
-
(::Google::Cloud::Bigquery::Migration::V2::TimeInterval) — The time interval to which the data point applies. For
GAUGE
metrics, the start time does not need to be supplied, but if it is supplied, it must equal the end time. ForDELTA
metrics, the start and end time should specify a non-zero interval, with subsequent points specifying contiguous and non-overlapping intervals. ForCUMULATIVE
metrics, the start and end time should specify a non-zero interval, with subsequent points specifying the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points.
#interval=
def interval=(value) -> ::Google::Cloud::Bigquery::Migration::V2::TimeInterval
Parameter
-
value (::Google::Cloud::Bigquery::Migration::V2::TimeInterval) — The time interval to which the data point applies. For
GAUGE
metrics, the start time does not need to be supplied, but if it is supplied, it must equal the end time. ForDELTA
metrics, the start and end time should specify a non-zero interval, with subsequent points specifying contiguous and non-overlapping intervals. ForCUMULATIVE
metrics, the start and end time should specify a non-zero interval, with subsequent points specifying the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points.
Returns
-
(::Google::Cloud::Bigquery::Migration::V2::TimeInterval) — The time interval to which the data point applies. For
GAUGE
metrics, the start time does not need to be supplied, but if it is supplied, it must equal the end time. ForDELTA
metrics, the start and end time should specify a non-zero interval, with subsequent points specifying contiguous and non-overlapping intervals. ForCUMULATIVE
metrics, the start and end time should specify a non-zero interval, with subsequent points specifying the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points.
#value
def value() -> ::Google::Cloud::Bigquery::Migration::V2::TypedValue
Returns
- (::Google::Cloud::Bigquery::Migration::V2::TypedValue) — The value of the data point.
#value=
def value=(value) -> ::Google::Cloud::Bigquery::Migration::V2::TypedValue
Parameter
- value (::Google::Cloud::Bigquery::Migration::V2::TypedValue) — The value of the data point.
Returns
- (::Google::Cloud::Bigquery::Migration::V2::TypedValue) — The value of the data point.