All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.cloudmonitoring.model.Point Maven / Gradle / Ivy

There is a newer version: v2beta2-rev73-1.23.0
Show newest version
/*
 * Copyright 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/google/apis-client-generator/
 * (build: 2015-11-16 19:10:01 UTC)
 * on 2015-11-24 at 20:02:01 UTC 
 * Modify at your own risk.
 */

package com.google.api.services.cloudmonitoring.model;

/**
 * Point is a single point in a time series. It consists of a start time, an end time, and a value.
 *
 * 

This is the Java data model class that specifies how to parse/serialize into the JSON that is * transmitted over HTTP when working with the Cloud Monitoring API. For a detailed explanation see: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class Point extends com.google.api.client.json.GenericJson { /** * The value of this data point. Either "true" or "false". * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean boolValue; /** * The value of this data point as a distribution. A distribution value can contain a list of * buckets and/or an underflowBucket and an overflowBucket. The values of these points can be used * to create a histogram. * The value may be {@code null}. */ @com.google.api.client.util.Key private PointDistribution distributionValue; /** * The value of this data point as a double-precision floating-point number. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Double doubleValue; /** * The interval [start, end] is the time period to which the point's value applies. For gauge * metrics, whose values are instantaneous measurements, this interval should be empty (start * should equal end). For cumulative metrics (of which deltas and rates are special cases), the * interval should be non-empty. Both start and end are RFC 3339 strings. * The value may be {@code null}. */ @com.google.api.client.util.Key private com.google.api.client.util.DateTime end; /** * The value of this data point as a 64-bit integer. * The value may be {@code null}. */ @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long int64Value; /** * The interval [start, end] is the time period to which the point's value applies. For gauge * metrics, whose values are instantaneous measurements, this interval should be empty (start * should equal end). For cumulative metrics (of which deltas and rates are special cases), the * interval should be non-empty. Both start and end are RFC 3339 strings. * The value may be {@code null}. */ @com.google.api.client.util.Key private com.google.api.client.util.DateTime start; /** * The value of this data point in string format. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String stringValue; /** * The value of this data point. Either "true" or "false". * @return value or {@code null} for none */ public java.lang.Boolean getBoolValue() { return boolValue; } /** * The value of this data point. Either "true" or "false". * @param boolValue boolValue or {@code null} for none */ public Point setBoolValue(java.lang.Boolean boolValue) { this.boolValue = boolValue; return this; } /** * The value of this data point as a distribution. A distribution value can contain a list of * buckets and/or an underflowBucket and an overflowBucket. The values of these points can be used * to create a histogram. * @return value or {@code null} for none */ public PointDistribution getDistributionValue() { return distributionValue; } /** * The value of this data point as a distribution. A distribution value can contain a list of * buckets and/or an underflowBucket and an overflowBucket. The values of these points can be used * to create a histogram. * @param distributionValue distributionValue or {@code null} for none */ public Point setDistributionValue(PointDistribution distributionValue) { this.distributionValue = distributionValue; return this; } /** * The value of this data point as a double-precision floating-point number. * @return value or {@code null} for none */ public java.lang.Double getDoubleValue() { return doubleValue; } /** * The value of this data point as a double-precision floating-point number. * @param doubleValue doubleValue or {@code null} for none */ public Point setDoubleValue(java.lang.Double doubleValue) { this.doubleValue = doubleValue; return this; } /** * The interval [start, end] is the time period to which the point's value applies. For gauge * metrics, whose values are instantaneous measurements, this interval should be empty (start * should equal end). For cumulative metrics (of which deltas and rates are special cases), the * interval should be non-empty. Both start and end are RFC 3339 strings. * @return value or {@code null} for none */ public com.google.api.client.util.DateTime getEnd() { return end; } /** * The interval [start, end] is the time period to which the point's value applies. For gauge * metrics, whose values are instantaneous measurements, this interval should be empty (start * should equal end). For cumulative metrics (of which deltas and rates are special cases), the * interval should be non-empty. Both start and end are RFC 3339 strings. * @param end end or {@code null} for none */ public Point setEnd(com.google.api.client.util.DateTime end) { this.end = end; return this; } /** * The value of this data point as a 64-bit integer. * @return value or {@code null} for none */ public java.lang.Long getInt64Value() { return int64Value; } /** * The value of this data point as a 64-bit integer. * @param int64Value int64Value or {@code null} for none */ public Point setInt64Value(java.lang.Long int64Value) { this.int64Value = int64Value; return this; } /** * The interval [start, end] is the time period to which the point's value applies. For gauge * metrics, whose values are instantaneous measurements, this interval should be empty (start * should equal end). For cumulative metrics (of which deltas and rates are special cases), the * interval should be non-empty. Both start and end are RFC 3339 strings. * @return value or {@code null} for none */ public com.google.api.client.util.DateTime getStart() { return start; } /** * The interval [start, end] is the time period to which the point's value applies. For gauge * metrics, whose values are instantaneous measurements, this interval should be empty (start * should equal end). For cumulative metrics (of which deltas and rates are special cases), the * interval should be non-empty. Both start and end are RFC 3339 strings. * @param start start or {@code null} for none */ public Point setStart(com.google.api.client.util.DateTime start) { this.start = start; return this; } /** * The value of this data point in string format. * @return value or {@code null} for none */ public java.lang.String getStringValue() { return stringValue; } /** * The value of this data point in string format. * @param stringValue stringValue or {@code null} for none */ public Point setStringValue(java.lang.String stringValue) { this.stringValue = stringValue; return this; } @Override public Point set(String fieldName, Object value) { return (Point) super.set(fieldName, value); } @Override public Point clone() { return (Point) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy