📂 File Browser

AgentAI/vendor/google/apiclient-services/src/Monitoring
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 Aggregation.php
▶ Open 📄 View Source
🐘 Alert.php
▶ Open 📄 View Source
🐘 AlertPolicy.php
▶ Open 📄 View Source
🐘 AlertStrategy.php
▶ Open 📄 View Source
🐘 AppEngine.php
▶ Open 📄 View Source
🐘 AvailabilityCriteria.php
▶ Open 📄 View Source
🐘 BasicAuthentication.php
▶ Open 📄 View Source
🐘 BasicService.php
▶ Open 📄 View Source
🐘 BasicSli.php
▶ Open 📄 View Source
🐘 BooleanTest.php
▶ Open 📄 View Source
🐘 BucketOptions.php
▶ Open 📄 View Source
🐘 CloudEndpoints.php
▶ Open 📄 View Source
🐘 CloudFunctionV2Target.php
▶ Open 📄 View Source
🐘 CloudRun.php
▶ Open 📄 View Source
🐘 ClusterIstio.php
▶ Open 📄 View Source
🐘 CollectdPayload.php
▶ Open 📄 View Source
🐘 CollectdPayloadError.php
▶ Open 📄 View Source
🐘 CollectdValue.php
▶ Open 📄 View Source
🐘 CollectdValueError.php
▶ Open 📄 View Source
🐘 Condition.php
▶ Open 📄 View Source
🐘 ContentMatcher.php
▶ Open 📄 View Source
🐘 CreateCollectdTimeSeriesRequest.php
▶ Open 📄 View Source
🐘 CreateCollectdTimeSeriesResponse.php
▶ Open 📄 View Source
🐘 CreateTimeSeriesRequest.php
▶ Open 📄 View Source
🐘 CreateTimeSeriesSummary.php
▶ Open 📄 View Source
🐘 Criteria.php
▶ Open 📄 View Source
🐘 Custom.php
▶ Open 📄 View Source
🐘 Daily.php
▶ Open 📄 View Source
🐘 Distribution.php
▶ Open 📄 View Source
🐘 DistributionCut.php
▶ Open 📄 View Source
🐘 Documentation.php
▶ Open 📄 View Source
🐘 DroppedLabels.php
▶ Open 📄 View Source
🐘 Error.php
▶ Open 📄 View Source
🐘 Exemplar.php
▶ Open 📄 View Source
🐘 Explicit.php
▶ Open 📄 View Source
🐘 Exponential.php
▶ Open 📄 View Source
🐘 Field.php
▶ Open 📄 View Source
🐘 ForecastOptions.php
▶ Open 📄 View Source
🐘 GetNotificationChannelVerificationCodeRequest.php
▶ Open 📄 View Source
🐘 GetNotificationChannelVerificationCodeResponse.php
▶ Open 📄 View Source
🐘 GkeNamespace.php
▶ Open 📄 View Source
🐘 GkeService.php
▶ Open 📄 View Source
🐘 GkeWorkload.php
▶ Open 📄 View Source
🐘 GoogleMonitoringV3Range.php
▶ Open 📄 View Source
🐘 Group.php
▶ Open 📄 View Source
🐘 Hourly.php
▶ Open 📄 View Source
🐘 HttpCheck.php
▶ Open 📄 View Source
🐘 InternalChecker.php
▶ Open 📄 View Source
🐘 IstioCanonicalService.php
▶ Open 📄 View Source
🐘 JsonPathMatcher.php
▶ Open 📄 View Source
🐘 LabelDescriptor.php
▶ Open 📄 View Source
🐘 LabelValue.php
▶ Open 📄 View Source
🐘 LatencyCriteria.php
▶ Open 📄 View Source
🐘 Linear.php
▶ Open 📄 View Source
🐘 Link.php
▶ Open 📄 View Source
🐘 ListAlertPoliciesResponse.php
▶ Open 📄 View Source
🐘 ListAlertsResponse.php
▶ Open 📄 View Source
🐘 ListGroupMembersResponse.php
▶ Open 📄 View Source
🐘 ListGroupsResponse.php
▶ Open 📄 View Source
🐘 ListMetricDescriptorsResponse.php
▶ Open 📄 View Source
🐘 ListMonitoredResourceDescriptorsResponse.php
▶ Open 📄 View Source
🐘 ListNotificationChannelDescriptorsResponse.php
▶ Open 📄 View Source
🐘 ListNotificationChannelsResponse.php
▶ Open 📄 View Source
🐘 ListServiceLevelObjectivesResponse.php
▶ Open 📄 View Source
🐘 ListServicesResponse.php
▶ Open 📄 View Source
🐘 ListSnoozesResponse.php
▶ Open 📄 View Source
🐘 ListTimeSeriesResponse.php
▶ Open 📄 View Source
🐘 ListUptimeCheckConfigsResponse.php
▶ Open 📄 View Source
🐘 ListUptimeCheckIpsResponse.php
▶ Open 📄 View Source
🐘 LogMatch.php
▶ Open 📄 View Source
🐘 LogMetadata.php
▶ Open 📄 View Source
🐘 MeshIstio.php
▶ Open 📄 View Source
🐘 Metric.php
▶ Open 📄 View Source
🐘 MetricAbsence.php
▶ Open 📄 View Source
🐘 MetricDescriptor.php
▶ Open 📄 View Source
🐘 MetricDescriptorMetadata.php
▶ Open 📄 View Source
🐘 MetricRange.php
▶ Open 📄 View Source
🐘 MetricThreshold.php
▶ Open 📄 View Source
🐘 Minutes.php
▶ Open 📄 View Source
🐘 MonitoredResource.php
▶ Open 📄 View Source
🐘 MonitoredResourceDescriptor.php
▶ Open 📄 View Source
🐘 MonitoredResourceMetadata.php
▶ Open 📄 View Source
🐘 MonitoringEmpty.php
▶ Open 📄 View Source
🐘 MonitoringQueryLanguageCondition.php
▶ Open 📄 View Source
🐘 MutationRecord.php
▶ Open 📄 View Source
🐘 NotificationChannel.php
▶ Open 📄 View Source
🐘 NotificationChannelDescriptor.php
▶ Open 📄 View Source
🐘 NotificationChannelStrategy.php
▶ Open 📄 View Source
🐘 NotificationRateLimit.php
▶ Open 📄 View Source
🐘 OperationMetadata.php
▶ Open 📄 View Source
🐘 Option.php
▶ Open 📄 View Source
🐘 PerformanceThreshold.php
▶ Open 📄 View Source
🐘 PingConfig.php
▶ Open 📄 View Source
🐘 Point.php
▶ Open 📄 View Source
🐘 PointData.php
▶ Open 📄 View Source
🐘 PolicySnapshot.php
▶ Open 📄 View Source
🐘 PrometheusQueryLanguageCondition.php
▶ Open 📄 View Source
🐘 QueryTimeSeriesRequest.php
▶ Open 📄 View Source
🐘 QueryTimeSeriesResponse.php
▶ Open 📄 View Source
🐘 Range.php
▶ Open 📄 View Source
🐘 RequestBasedSli.php
▶ Open 📄 View Source
🐘 ResourceGroup.php
▶ Open 📄 View Source
🐘 ResponseStatusCode.php
▶ Open 📄 View Source
🐘 RowCountTest.php
▶ Open 📄 View Source
🐘 SendNotificationChannelVerificationCodeRequest.php
▶ Open 📄 View Source
🐘 Service.php
▶ Open 📄 View Source
🐘 ServiceAgentAuthentication.php
▶ Open 📄 View Source
🐘 ServiceLevelIndicator.php
▶ Open 📄 View Source
🐘 ServiceLevelObjective.php
▶ Open 📄 View Source
🐘 Snooze.php
▶ Open 📄 View Source
🐘 SourceContext.php
▶ Open 📄 View Source
🐘 SpanContext.php
▶ Open 📄 View Source
🐘 SqlCondition.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 SyntheticMonitorTarget.php
▶ Open 📄 View Source
🐘 TcpCheck.php
▶ Open 📄 View Source
🐘 Telemetry.php
▶ Open 📄 View Source
🐘 TimeInterval.php
▶ Open 📄 View Source
🐘 TimeOfDay.php
▶ Open 📄 View Source
🐘 TimeSeries.php
▶ Open 📄 View Source
🐘 TimeSeriesData.php
▶ Open 📄 View Source
🐘 TimeSeriesDescriptor.php
▶ Open 📄 View Source
🐘 TimeSeriesRatio.php
▶ Open 📄 View Source
🐘 Trigger.php
▶ Open 📄 View Source
🐘 Type.php
▶ Open 📄 View Source
🐘 TypedValue.php
▶ Open 📄 View Source
🐘 UptimeCheckConfig.php
▶ Open 📄 View Source
🐘 UptimeCheckIp.php
▶ Open 📄 View Source
🐘 ValueDescriptor.php
▶ Open 📄 View Source
🐘 VerifyNotificationChannelRequest.php
▶ Open 📄 View Source
🐘 WindowsBasedSli.php
▶ Open 📄 View Source

📄 Source: TimeSeries.php

<?php
/*
 * Copyright 2014 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.
 */

namespace Google\Service\Monitoring;

class TimeSeries extends \Google\Collection
{
  /**
   * Do not use this default value.
   */
  public const METRIC_KIND_METRIC_KIND_UNSPECIFIED = 'METRIC_KIND_UNSPECIFIED';
  /**
   * An instantaneous measurement of a value.
   */
  public const METRIC_KIND_GAUGE = 'GAUGE';
  /**
   * The change in a value during a time interval.
   */
  public const METRIC_KIND_DELTA = 'DELTA';
  /**
   * A value accumulated over a time interval. Cumulative measurements in a time
   * series should have 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.
   */
  public const METRIC_KIND_CUMULATIVE = 'CUMULATIVE';
  /**
   * Do not use this default value.
   */
  public const VALUE_TYPE_VALUE_TYPE_UNSPECIFIED = 'VALUE_TYPE_UNSPECIFIED';
  /**
   * The value is a boolean. This value type can be used only if the metric kind
   * is GAUGE.
   */
  public const VALUE_TYPE_BOOL = 'BOOL';
  /**
   * The value is a signed 64-bit integer.
   */
  public const VALUE_TYPE_INT64 = 'INT64';
  /**
   * The value is a double precision floating point number.
   */
  public const VALUE_TYPE_DOUBLE = 'DOUBLE';
  /**
   * The value is a text string. This value type can be used only if the metric
   * kind is GAUGE.
   */
  public const VALUE_TYPE_STRING = 'STRING';
  /**
   * The value is a Distribution.
   */
  public const VALUE_TYPE_DISTRIBUTION = 'DISTRIBUTION';
  /**
   * The value is money.
   */
  public const VALUE_TYPE_MONEY = 'MONEY';
  protected $collection_key = 'points';
  /**
   * Input only. A detailed description of the time series that will be
   * associated with the google.api.MetricDescriptor for the metric. Once set,
   * this field cannot be changed through CreateTimeSeries.
   *
   * @var string
   */
  public $description;
  protected $metadataType = MonitoredResourceMetadata::class;
  protected $metadataDataType = '';
  protected $metricType = Metric::class;
  protected $metricDataType = '';
  /**
   * The metric kind of the time series. When listing time series, this metric
   * kind might be different from the metric kind of the associated metric if
   * this time series is an alignment or reduction of other time series.When
   * creating a time series, this field is optional. If present, it must be the
   * same as the metric kind of the associated metric. If the associated
   * metric's descriptor must be auto-created, then this field specifies the
   * metric kind of the new descriptor and must be either GAUGE (the default) or
   * CUMULATIVE.
   *
   * @var string
   */
  public $metricKind;
  protected $pointsType = Point::class;
  protected $pointsDataType = 'array';
  protected $resourceType = MonitoredResource::class;
  protected $resourceDataType = '';
  /**
   * The units in which the metric value is reported. It is only applicable if
   * the value_type is INT64, DOUBLE, or DISTRIBUTION. The unit defines the
   * representation of the stored metric values. This field can only be changed
   * through CreateTimeSeries when it is empty.
   *
   * @var string
   */
  public $unit;
  /**
   * The value type of the time series. When listing time series, this value
   * type might be different from the value type of the associated metric if
   * this time series is an alignment or reduction of other time series.When
   * creating a time series, this field is optional. If present, it must be the
   * same as the type of the data in the points field.
   *
   * @var string
   */
  public $valueType;

  /**
   * Input only. A detailed description of the time series that will be
   * associated with the google.api.MetricDescriptor for the metric. Once set,
   * this field cannot be changed through CreateTimeSeries.
   *
   * @param string $description
   */
  public function setDescription($description)
  {
    $this->description = $description;
  }
  /**
   * @return string
   */
  public function getDescription()
  {
    return $this->description;
  }
  /**
   * Output only. The associated monitored resource metadata. When reading a
   * time series, this field will include metadata labels that are explicitly
   * named in the reduction. When creating a time series, this field is ignored.
   *
   * @param MonitoredResourceMetadata $metadata
   */
  public function setMetadata(MonitoredResourceMetadata $metadata)
  {
    $this->metadata = $metadata;
  }
  /**
   * @return MonitoredResourceMetadata
   */
  public function getMetadata()
  {
    return $this->metadata;
  }
  /**
   * The associated metric. A fully-specified metric used to identify the time
   * series.
   *
   * @param Metric $metric
   */
  public function setMetric(Metric $metric)
  {
    $this->metric = $metric;
  }
  /**
   * @return Metric
   */
  public function getMetric()
  {
    return $this->metric;
  }
  /**
   * The metric kind of the time series. When listing time series, this metric
   * kind might be different from the metric kind of the associated metric if
   * this time series is an alignment or reduction of other time series.When
   * creating a time series, this field is optional. If present, it must be the
   * same as the metric kind of the associated metric. If the associated
   * metric's descriptor must be auto-created, then this field specifies the
   * metric kind of the new descriptor and must be either GAUGE (the default) or
   * CUMULATIVE.
   *
   * Accepted values: METRIC_KIND_UNSPECIFIED, GAUGE, DELTA, CUMULATIVE
   *
   * @param self::METRIC_KIND_* $metricKind
   */
  public function setMetricKind($metricKind)
  {
    $this->metricKind = $metricKind;
  }
  /**
   * @return self::METRIC_KIND_*
   */
  public function getMetricKind()
  {
    return $this->metricKind;
  }
  /**
   * The data points of this time series. When listing time series, points are
   * returned in reverse time order.When creating a time series, this field must
   * contain exactly one point and the point's type must be the same as the
   * value type of the associated metric. If the associated metric's descriptor
   * must be auto-created, then the value type of the descriptor is determined
   * by the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.
   *
   * @param Point[] $points
   */
  public function setPoints($points)
  {
    $this->points = $points;
  }
  /**
   * @return Point[]
   */
  public function getPoints()
  {
    return $this->points;
  }
  /**
   * The associated monitored resource. Custom metrics can use only certain
   * monitored resource types in their time series data. For more information,
   * see Monitored resources for custom metrics
   * (https://cloud.google.com/monitoring/custom-metrics/creating-
   * metrics#custom-metric-resources).
   *
   * @param MonitoredResource $resource
   */
  public function setResource(MonitoredResource $resource)
  {
    $this->resource = $resource;
  }
  /**
   * @return MonitoredResource
   */
  public function getResource()
  {
    return $this->resource;
  }
  /**
   * The units in which the metric value is reported. It is only applicable if
   * the value_type is INT64, DOUBLE, or DISTRIBUTION. The unit defines the
   * representation of the stored metric values. This field can only be changed
   * through CreateTimeSeries when it is empty.
   *
   * @param string $unit
   */
  public function setUnit($unit)
  {
    $this->unit = $unit;
  }
  /**
   * @return string
   */
  public function getUnit()
  {
    return $this->unit;
  }
  /**
   * The value type of the time series. When listing time series, this value
   * type might be different from the value type of the associated metric if
   * this time series is an alignment or reduction of other time series.When
   * creating a time series, this field is optional. If present, it must be the
   * same as the type of the data in the points field.
   *
   * Accepted values: VALUE_TYPE_UNSPECIFIED, BOOL, INT64, DOUBLE, STRING,
   * DISTRIBUTION, MONEY
   *
   * @param self::VALUE_TYPE_* $valueType
   */
  public function setValueType($valueType)
  {
    $this->valueType = $valueType;
  }
  /**
   * @return self::VALUE_TYPE_*
   */
  public function getValueType()
  {
    return $this->valueType;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimeSeries::class, 'Google_Service_Monitoring_TimeSeries');
← Back