Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [monitoring] Add ICMP pings #9409

Merged
merged 2 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions java-monitoring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.12.0</version>
<version>26.14.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.16.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.17.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@
// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Service Description: The UptimeCheckService API is used to manage (list, create, delete, edit)
* Uptime check configurations in the Stackdriver Monitoring product. An Uptime check is a piece of
* Uptime check configurations in the Cloud Monitoring product. An Uptime check is a piece of
* configuration that determines which resources and services to monitor for availability. These
* configurations can also be configured interactively by navigating to the [Cloud Console]
* (http://console.cloud.google.com), selecting the appropriate project, clicking on "Monitoring" on
* the left-hand side to navigate to Stackdriver, and then clicking on "Uptime".
* configurations can also be configured interactively by navigating to the [Cloud console]
* (https://console.cloud.google.com), selecting the appropriate project, clicking on "Monitoring"
* on the left-hand side to navigate to Cloud Monitoring, and then clicking on "Uptime".
*
* <p>This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods. Sample code to get started:
Expand Down Expand Up @@ -337,6 +337,7 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(String p
* ListUptimeCheckConfigsRequest request =
* ListUptimeCheckConfigsRequest.newBuilder()
* .setParent(ProjectName.of("[PROJECT]").toString())
* .setFilter("filter-1274492040")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down Expand Up @@ -372,6 +373,7 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(
* ListUptimeCheckConfigsRequest request =
* ListUptimeCheckConfigsRequest.newBuilder()
* .setParent(ProjectName.of("[PROJECT]").toString())
* .setFilter("filter-1274492040")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down Expand Up @@ -406,6 +408,7 @@ public final ListUptimeCheckConfigsPagedResponse listUptimeCheckConfigs(
* ListUptimeCheckConfigsRequest request =
* ListUptimeCheckConfigsRequest.newBuilder()
* .setParent(ProjectName.of("[PROJECT]").toString())
* .setFilter("filter-1274492040")
* .setPageSize(883849137)
* .setPageToken("pageToken873572522")
* .build();
Expand Down Expand Up @@ -782,7 +785,7 @@ public final UptimeCheckConfig createUptimeCheckConfig(CreateUptimeCheckConfigRe
* @param uptimeCheckConfig Required. If an `updateMask` has been specified, this field gives the
* values for the set of fields mentioned in the `updateMask`. If an `updateMask` has not been
* given, this Uptime check configuration replaces the current configuration. If a field is
* mentioned in `updateMask` but the corresonding field is omitted in this partial Uptime
* mentioned in `updateMask` but the corresponding field is omitted in this partial Uptime
* check configuration, it has the effect of deleting/clearing the field from the
* configuration on the server.
* <p>The following fields can be updated: `display_name`, `http_check`, `tcp_check`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@
* <p>======================= UptimeCheckServiceClient =======================
*
* <p>Service Description: The UptimeCheckService API is used to manage (list, create, delete, edit)
* Uptime check configurations in the Stackdriver Monitoring product. An Uptime check is a piece of
* Uptime check configurations in the Cloud Monitoring product. An Uptime check is a piece of
* configuration that determines which resources and services to monitor for availability. These
* configurations can also be configured interactively by navigating to the [Cloud Console]
* (http://console.cloud.google.com), selecting the appropriate project, clicking on "Monitoring" on
* the left-hand side to navigate to Stackdriver, and then clicking on "Uptime".
* configurations can also be configured interactively by navigating to the [Cloud console]
* (https://console.cloud.google.com), selecting the appropriate project, clicking on "Monitoring"
* on the left-hand side to navigate to Cloud Monitoring, and then clicking on "Uptime".
*
* <p>Sample for UptimeCheckServiceClient:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.UUID;
import javax.annotation.Generated;
Expand Down Expand Up @@ -293,6 +294,7 @@ public void getUptimeCheckConfigTest() throws Exception {
.addAllSelectedRegions(new ArrayList<UptimeCheckRegion>())
.setIsInternal(true)
.addAllInternalCheckers(new ArrayList<InternalChecker>())
.putAllUserLabels(new HashMap<String, String>())
.build();
mockUptimeCheckService.addResponse(expectedResponse);

Expand Down Expand Up @@ -345,6 +347,7 @@ public void getUptimeCheckConfigTest2() throws Exception {
.addAllSelectedRegions(new ArrayList<UptimeCheckRegion>())
.setIsInternal(true)
.addAllInternalCheckers(new ArrayList<InternalChecker>())
.putAllUserLabels(new HashMap<String, String>())
.build();
mockUptimeCheckService.addResponse(expectedResponse);

Expand Down Expand Up @@ -394,6 +397,7 @@ public void createUptimeCheckConfigTest() throws Exception {
.addAllSelectedRegions(new ArrayList<UptimeCheckRegion>())
.setIsInternal(true)
.addAllInternalCheckers(new ArrayList<InternalChecker>())
.putAllUserLabels(new HashMap<String, String>())
.build();
mockUptimeCheckService.addResponse(expectedResponse);

Expand Down Expand Up @@ -446,6 +450,7 @@ public void createUptimeCheckConfigTest2() throws Exception {
.addAllSelectedRegions(new ArrayList<UptimeCheckRegion>())
.setIsInternal(true)
.addAllInternalCheckers(new ArrayList<InternalChecker>())
.putAllUserLabels(new HashMap<String, String>())
.build();
mockUptimeCheckService.addResponse(expectedResponse);

Expand Down Expand Up @@ -498,6 +503,7 @@ public void createUptimeCheckConfigTest3() throws Exception {
.addAllSelectedRegions(new ArrayList<UptimeCheckRegion>())
.setIsInternal(true)
.addAllInternalCheckers(new ArrayList<InternalChecker>())
.putAllUserLabels(new HashMap<String, String>())
.build();
mockUptimeCheckService.addResponse(expectedResponse);

Expand Down Expand Up @@ -550,6 +556,7 @@ public void createUptimeCheckConfigTest4() throws Exception {
.addAllSelectedRegions(new ArrayList<UptimeCheckRegion>())
.setIsInternal(true)
.addAllInternalCheckers(new ArrayList<InternalChecker>())
.putAllUserLabels(new HashMap<String, String>())
.build();
mockUptimeCheckService.addResponse(expectedResponse);

Expand Down Expand Up @@ -602,6 +609,7 @@ public void updateUptimeCheckConfigTest() throws Exception {
.addAllSelectedRegions(new ArrayList<UptimeCheckRegion>())
.setIsInternal(true)
.addAllInternalCheckers(new ArrayList<InternalChecker>())
.putAllUserLabels(new HashMap<String, String>())
.build();
mockUptimeCheckService.addResponse(expectedResponse);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
*
* <pre>
* The UptimeCheckService API is used to manage (list, create, delete, edit)
* Uptime check configurations in the Stackdriver Monitoring product. An Uptime
* Uptime check configurations in the Cloud Monitoring product. An Uptime
* check is a piece of configuration that determines which resources and
* services to monitor for availability. These configurations can also be
* configured interactively by navigating to the [Cloud Console]
* (http://console.cloud.google.com), selecting the appropriate project,
* clicking on "Monitoring" on the left-hand side to navigate to Stackdriver,
* and then clicking on "Uptime".
* configured interactively by navigating to the [Cloud console]
* (https://console.cloud.google.com), selecting the appropriate project,
* clicking on "Monitoring" on the left-hand side to navigate to Cloud
* Monitoring, and then clicking on "Uptime".
* </pre>
*/
@javax.annotation.Generated(
Expand Down Expand Up @@ -384,13 +384,13 @@ public UptimeCheckServiceFutureStub newStub(
*
* <pre>
* The UptimeCheckService API is used to manage (list, create, delete, edit)
* Uptime check configurations in the Stackdriver Monitoring product. An Uptime
* Uptime check configurations in the Cloud Monitoring product. An Uptime
* check is a piece of configuration that determines which resources and
* services to monitor for availability. These configurations can also be
* configured interactively by navigating to the [Cloud Console]
* (http://console.cloud.google.com), selecting the appropriate project,
* clicking on "Monitoring" on the left-hand side to navigate to Stackdriver,
* and then clicking on "Uptime".
* configured interactively by navigating to the [Cloud console]
* (https://console.cloud.google.com), selecting the appropriate project,
* clicking on "Monitoring" on the left-hand side to navigate to Cloud
* Monitoring, and then clicking on "Uptime".
* </pre>
*/
public interface AsyncService {
Expand Down Expand Up @@ -493,13 +493,13 @@ default void listUptimeCheckIps(
*
* <pre>
* The UptimeCheckService API is used to manage (list, create, delete, edit)
* Uptime check configurations in the Stackdriver Monitoring product. An Uptime
* Uptime check configurations in the Cloud Monitoring product. An Uptime
* check is a piece of configuration that determines which resources and
* services to monitor for availability. These configurations can also be
* configured interactively by navigating to the [Cloud Console]
* (http://console.cloud.google.com), selecting the appropriate project,
* clicking on "Monitoring" on the left-hand side to navigate to Stackdriver,
* and then clicking on "Uptime".
* configured interactively by navigating to the [Cloud console]
* (https://console.cloud.google.com), selecting the appropriate project,
* clicking on "Monitoring" on the left-hand side to navigate to Cloud
* Monitoring, and then clicking on "Uptime".
* </pre>
*/
public abstract static class UptimeCheckServiceImplBase
Expand All @@ -516,13 +516,13 @@ public final io.grpc.ServerServiceDefinition bindService() {
*
* <pre>
* The UptimeCheckService API is used to manage (list, create, delete, edit)
* Uptime check configurations in the Stackdriver Monitoring product. An Uptime
* Uptime check configurations in the Cloud Monitoring product. An Uptime
* check is a piece of configuration that determines which resources and
* services to monitor for availability. These configurations can also be
* configured interactively by navigating to the [Cloud Console]
* (http://console.cloud.google.com), selecting the appropriate project,
* clicking on "Monitoring" on the left-hand side to navigate to Stackdriver,
* and then clicking on "Uptime".
* configured interactively by navigating to the [Cloud console]
* (https://console.cloud.google.com), selecting the appropriate project,
* clicking on "Monitoring" on the left-hand side to navigate to Cloud
* Monitoring, and then clicking on "Uptime".
* </pre>
*/
public static final class UptimeCheckServiceStub
Expand Down Expand Up @@ -647,13 +647,13 @@ public void listUptimeCheckIps(
*
* <pre>
* The UptimeCheckService API is used to manage (list, create, delete, edit)
* Uptime check configurations in the Stackdriver Monitoring product. An Uptime
* Uptime check configurations in the Cloud Monitoring product. An Uptime
* check is a piece of configuration that determines which resources and
* services to monitor for availability. These configurations can also be
* configured interactively by navigating to the [Cloud Console]
* (http://console.cloud.google.com), selecting the appropriate project,
* clicking on "Monitoring" on the left-hand side to navigate to Stackdriver,
* and then clicking on "Uptime".
* configured interactively by navigating to the [Cloud console]
* (https://console.cloud.google.com), selecting the appropriate project,
* clicking on "Monitoring" on the left-hand side to navigate to Cloud
* Monitoring, and then clicking on "Uptime".
* </pre>
*/
public static final class UptimeCheckServiceBlockingStub
Expand Down Expand Up @@ -759,13 +759,13 @@ public com.google.monitoring.v3.ListUptimeCheckIpsResponse listUptimeCheckIps(
*
* <pre>
* The UptimeCheckService API is used to manage (list, create, delete, edit)
* Uptime check configurations in the Stackdriver Monitoring product. An Uptime
* Uptime check configurations in the Cloud Monitoring product. An Uptime
* check is a piece of configuration that determines which resources and
* services to monitor for availability. These configurations can also be
* configured interactively by navigating to the [Cloud Console]
* (http://console.cloud.google.com), selecting the appropriate project,
* clicking on "Monitoring" on the left-hand side to navigate to Stackdriver,
* and then clicking on "Uptime".
* configured interactively by navigating to the [Cloud console]
* (https://console.cloud.google.com), selecting the appropriate project,
* clicking on "Monitoring" on the left-hand side to navigate to Cloud
* Monitoring, and then clicking on "Uptime".
* </pre>
*/
public static final class UptimeCheckServiceFutureStub
Expand Down
Loading