You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/google-api-services-serviceusage/v1/1.28.0/com/google/api/services/serviceusage/v1/model/MetricDescriptor.java
+102Lines changed: 102 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -113,6 +113,40 @@ public final class MetricDescriptor extends com.google.api.client.json.GenericJs
113
113
privatejava.lang.Stringtype;
114
114
115
115
/**
116
+
* The units in which the metric value is reported. It is only applicable if the `value_type` is
117
+
* `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit` defines the representation of the stored
118
+
* metric values.
119
+
*
120
+
* Different systems may scale the values to be more easily displayed (so a value of `0.02KBy`
121
+
* _might_ be displayed as `20By`, and a value of `3523KBy` _might_ be displayed as `3.5MBy`).
122
+
* However, if the `unit` is `KBy`, then the value of the metric is always in thousands of bytes,
123
+
* no matter how it may be displayed..
124
+
*
125
+
* If you want a custom metric to record the exact number of CPU-seconds used by a job, you can
126
+
* create an `INT64 CUMULATIVE` metric whose `unit` is `s{CPU}` (or equivalently `1s{CPU}` or just
127
+
* `s`). If the job uses 12,005 CPU-seconds, then the value is written as `12005`.
128
+
*
129
+
* Alternatively, if you want a custom metric to record data in a more granular way, you can
130
+
* create a `DOUBLE CUMULATIVE` metric whose `unit` is `ks{CPU}`, and then write the value
131
+
* `12.005` (which is `12005/1000`), or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
132
+
*
133
+
* The supported units are a subset of [The Unified Code for Units of
0 commit comments