|
28 | 28 | *
|
29 | 29 | * <p>Sample for AlertPolicyServiceClient:
|
30 | 30 | *
|
| 31 | + * <pre>{@code |
| 32 | + * try (AlertPolicyServiceClient alertPolicyServiceClient = AlertPolicyServiceClient.create()) { |
| 33 | + * AlertPolicyName name = |
| 34 | + * AlertPolicyName.ofProjectAlertPolicyName("[PROJECT]", "[ALERT_POLICY]"); |
| 35 | + * AlertPolicy response = alertPolicyServiceClient.getAlertPolicy(name); |
| 36 | + * } |
| 37 | + * }</pre> |
| 38 | + * |
31 | 39 | * <p>======================= GroupServiceClient =======================
|
32 | 40 | *
|
33 | 41 | * <p>Service Description: The Group API lets you inspect and manage your
|
|
42 | 50 | *
|
43 | 51 | * <p>Sample for GroupServiceClient:
|
44 | 52 | *
|
| 53 | + * <pre>{@code |
| 54 | + * try (GroupServiceClient groupServiceClient = GroupServiceClient.create()) { |
| 55 | + * GroupName name = GroupName.ofProjectGroupName("[PROJECT]", "[GROUP]"); |
| 56 | + * Group response = groupServiceClient.getGroup(name); |
| 57 | + * } |
| 58 | + * }</pre> |
| 59 | + * |
45 | 60 | * <p>======================= MetricServiceClient =======================
|
46 | 61 | *
|
47 | 62 | * <p>Service Description: Manages metric descriptors, monitored resource descriptors, and time
|
48 | 63 | * series data.
|
49 | 64 | *
|
50 | 65 | * <p>Sample for MetricServiceClient:
|
51 | 66 | *
|
| 67 | + * <pre>{@code |
| 68 | + * try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) { |
| 69 | + * MonitoredResourceDescriptorName name = |
| 70 | + * MonitoredResourceDescriptorName.ofProjectMonitoredResourceDescriptorName( |
| 71 | + * "[PROJECT]", "[MONITORED_RESOURCE_DESCRIPTOR]"); |
| 72 | + * MonitoredResourceDescriptor response = |
| 73 | + * metricServiceClient.getMonitoredResourceDescriptor(name); |
| 74 | + * } |
| 75 | + * }</pre> |
| 76 | + * |
52 | 77 | * <p>======================= NotificationChannelServiceClient =======================
|
53 | 78 | *
|
54 | 79 | * <p>Service Description: The Notification Channel API provides access to configuration that
|
55 | 80 | * controls how messages related to incidents are sent.
|
56 | 81 | *
|
57 | 82 | * <p>Sample for NotificationChannelServiceClient:
|
58 | 83 | *
|
| 84 | + * <pre>{@code |
| 85 | + * try (NotificationChannelServiceClient notificationChannelServiceClient = |
| 86 | + * NotificationChannelServiceClient.create()) { |
| 87 | + * NotificationChannelDescriptorName name = |
| 88 | + * NotificationChannelDescriptorName.ofProjectChannelDescriptorName( |
| 89 | + * "[PROJECT]", "[CHANNEL_DESCRIPTOR]"); |
| 90 | + * NotificationChannelDescriptor response = |
| 91 | + * notificationChannelServiceClient.getNotificationChannelDescriptor(name); |
| 92 | + * } |
| 93 | + * }</pre> |
| 94 | + * |
59 | 95 | * <p>======================= ServiceMonitoringServiceClient =======================
|
60 | 96 | *
|
61 | 97 | * <p>Service Description: The Cloud Monitoring Service-Oriented Monitoring API has endpoints for
|
|
64 | 100 | *
|
65 | 101 | * <p>Sample for ServiceMonitoringServiceClient:
|
66 | 102 | *
|
| 103 | + * <pre>{@code |
| 104 | + * try (ServiceMonitoringServiceClient serviceMonitoringServiceClient = |
| 105 | + * ServiceMonitoringServiceClient.create()) { |
| 106 | + * FolderName parent = FolderName.of("[FOLDER]"); |
| 107 | + * Service service = Service.newBuilder().build(); |
| 108 | + * Service response = serviceMonitoringServiceClient.createService(parent, service); |
| 109 | + * } |
| 110 | + * }</pre> |
| 111 | + * |
67 | 112 | * <p>======================= UptimeCheckServiceClient =======================
|
68 | 113 | *
|
69 | 114 | * <p>Service Description: The UptimeCheckService API is used to manage (list, create, delete, edit)
|
|
74 | 119 | * the left-hand side to navigate to Stackdriver, and then clicking on "Uptime".
|
75 | 120 | *
|
76 | 121 | * <p>Sample for UptimeCheckServiceClient:
|
| 122 | + * |
| 123 | + * <pre>{@code |
| 124 | + * try (UptimeCheckServiceClient uptimeCheckServiceClient = UptimeCheckServiceClient.create()) { |
| 125 | + * UptimeCheckConfigName name = |
| 126 | + * UptimeCheckConfigName.ofProjectUptimeCheckConfigName( |
| 127 | + * "[PROJECT]", "[UPTIME_CHECK_CONFIG]"); |
| 128 | + * UptimeCheckConfig response = uptimeCheckServiceClient.getUptimeCheckConfig(name); |
| 129 | + * } |
| 130 | + * }</pre> |
77 | 131 | */
|
78 | 132 | @Generated("by gapic-generator-java")
|
79 | 133 | package com.google.cloud.monitoring.v3;
|
|
0 commit comments