-
Notifications
You must be signed in to change notification settings - Fork 460
Expand file tree
/
Copy pathJobMetrics.php
More file actions
117 lines (103 loc) · 3.48 KB
/
JobMetrics.php
File metadata and controls
117 lines (103 loc) · 3.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/dataflow/v1beta3/metrics.proto
namespace Google\Cloud\Dataflow\V1beta3;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\GPBUtil;
use Google\Protobuf\RepeatedField;
/**
* JobMetrics contains a collection of metrics describing the detailed progress
* of a Dataflow job. Metrics correspond to user-defined and system-defined
* metrics in the job. For more information, see [Dataflow job metrics]
* (https://cloud.google.com/dataflow/docs/guides/using-monitoring-intf).
* This resource captures only the most recent values of each metric;
* time-series data can be queried for them (under the same metric names)
* from Cloud Monitoring.
*
* Generated from protobuf message <code>google.dataflow.v1beta3.JobMetrics</code>
*/
class JobMetrics extends \Google\Protobuf\Internal\Message
{
/**
* Timestamp as of which metric values are current.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp metric_time = 1;</code>
*/
protected $metric_time = null;
/**
* All metrics for this job.
*
* Generated from protobuf field <code>repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;</code>
*/
private $metrics;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Google\Protobuf\Timestamp $metric_time
* Timestamp as of which metric values are current.
* @type \Google\Cloud\Dataflow\V1beta3\MetricUpdate[] $metrics
* All metrics for this job.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Dataflow\V1Beta3\Metrics::initOnce();
parent::__construct($data);
}
/**
* Timestamp as of which metric values are current.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp metric_time = 1;</code>
* @return \Google\Protobuf\Timestamp|null
*/
public function getMetricTime()
{
return $this->metric_time;
}
public function hasMetricTime()
{
return isset($this->metric_time);
}
public function clearMetricTime()
{
unset($this->metric_time);
}
/**
* Timestamp as of which metric values are current.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp metric_time = 1;</code>
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
public function setMetricTime($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
$this->metric_time = $var;
return $this;
}
/**
* All metrics for this job.
*
* Generated from protobuf field <code>repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;</code>
* @return RepeatedField<\Google\Cloud\Dataflow\V1beta3\MetricUpdate>
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* All metrics for this job.
*
* Generated from protobuf field <code>repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2;</code>
* @param \Google\Cloud\Dataflow\V1beta3\MetricUpdate[] $var
* @return $this
*/
public function setMetrics($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\MetricUpdate::class);
$this->metrics = $arr;
return $this;
}
}