File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
test/integration/goldens/logging Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -152,6 +152,17 @@ public MetricsServiceV2Stub getStub() {
152
152
/**
153
153
* Lists logs-based metrics.
154
154
*
155
+ * <p>Sample code:
156
+ *
157
+ * <pre>{@code
158
+ * try (MetricsClient metricsClient = MetricsClient.create()) {
159
+ * ProjectName parent = ProjectName.of("[PROJECT]");
160
+ * for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
161
+ * // doThingsWith(element);
162
+ * }
163
+ * }
164
+ * }</pre>
165
+ *
155
166
* @param parent Required. The name of the project containing the metrics:
156
167
* <p>"projects/[PROJECT_ID]"
157
168
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -168,6 +179,17 @@ public final ListLogMetricsPagedResponse listLogMetrics(ProjectName parent) {
168
179
/**
169
180
* Lists logs-based metrics.
170
181
*
182
+ * <p>Sample code:
183
+ *
184
+ * <pre>{@code
185
+ * try (MetricsClient metricsClient = MetricsClient.create()) {
186
+ * String parent = ProjectName.of("[PROJECT]").toString();
187
+ * for (LogMetric element : metricsClient.listLogMetrics(parent).iterateAll()) {
188
+ * // doThingsWith(element);
189
+ * }
190
+ * }
191
+ * }</pre>
192
+ *
171
193
* @param parent Required. The name of the project containing the metrics:
172
194
* <p>"projects/[PROJECT_ID]"
173
195
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
You can’t perform that action at this time.
0 commit comments