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