Tabnine Logo
ListMetricsRequest$Builder.build
Code IndexAdd Tabnine to your IDE (free)

How to use
build
method
in
software.amazon.awssdk.services.cloudwatch.model.ListMetricsRequest$Builder

Best Java code snippets using software.amazon.awssdk.services.cloudwatch.model.ListMetricsRequest$Builder.build (Showing top 20 results out of 315)

origin: Netflix/spectator

private void execRequest(String endpoint, int status) {
 AwsRequestMetrics metrics = new AwsRequestMetricsFullSupport();
 metrics.addProperty(AwsRequestMetrics.Field.ServiceName, "AmazonCloudWatch");
 metrics.addProperty(AwsRequestMetrics.Field.ServiceEndpoint, endpoint);
 metrics.addProperty(AwsRequestMetrics.Field.StatusCode, "" + status);
 if (status == 503) {
  metrics.addProperty(AwsRequestMetrics.Field.AWSErrorCode, "Throttled");
 }
 String counterName = "BytesProcessed";
 String timerName = "ClientExecuteTime";
 metrics.setCounter(counterName, 12345);
 metrics.getTimingInfo().addSubMeasurement(timerName, TimingInfo.unmodifiableTimingInfo(100000L, 200000L));
 Request<?> req = new DefaultRequest(
   ListMetricsRequest.builder().build(), "AmazonCloudWatch");
 req.setAwsRequestMetrics(metrics);
 req.setEndpoint(URI.create(endpoint));
 collector.collectMetrics(req, null);
}
origin: aws/aws-sdk-java-v2

return listMetricsPaginator(ListMetricsRequest.builder().applyMutation(listMetricsRequest).build());
origin: aws/aws-sdk-java-v2

return listMetricsPaginator(ListMetricsRequest.builder().build());
origin: aws/aws-sdk-java-v2

return listMetricsPaginator(ListMetricsRequest.builder().build());
origin: software.amazon.awssdk/cloudwatch

  throws InternalServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException,
  CloudWatchException {
return listMetrics(ListMetricsRequest.builder().applyMutation(listMetricsRequest).build());
origin: software.amazon.awssdk/cloudwatch

return listMetrics(ListMetricsRequest.builder().build());
origin: aws/aws-sdk-java-v2

return listMetrics(ListMetricsRequest.builder().applyMutation(listMetricsRequest).build());
origin: software.amazon.awssdk/cloudwatch

return listMetrics(ListMetricsRequest.builder().applyMutation(listMetricsRequest).build());
origin: aws/aws-sdk-java-v2

return listMetrics(ListMetricsRequest.builder().build());
origin: software.amazon.awssdk/cloudwatch

return listMetrics(ListMetricsRequest.builder().build());
origin: aws/aws-sdk-java-v2

return listMetrics(ListMetricsRequest.builder().build());
origin: aws/aws-sdk-java-v2

  throws InternalServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException,
  CloudWatchException {
return listMetrics(ListMetricsRequest.builder().applyMutation(listMetricsRequest).build());
origin: software.amazon.awssdk/cloudwatch

/**
 * <p>
 * A helper method to resume the pages in case of unexpected failures. The method takes the last successful response
 * page as input and returns an instance of {@link ListMetricsIterable} that can be used to retrieve the consecutive
 * pages that follows the input page.
 * </p>
 */
private final ListMetricsIterable resume(ListMetricsResponse lastSuccessfulPage) {
  if (nextPageFetcher.hasNextPage(lastSuccessfulPage)) {
    return new ListMetricsIterable(client, firstRequest.toBuilder().nextToken(lastSuccessfulPage.nextToken()).build());
  }
  return new ListMetricsIterable(client, firstRequest) {
    @Override
    public Iterator<ListMetricsResponse> iterator() {
      return Collections.emptyIterator();
    }
  };
}
origin: software.amazon.awssdk/cloudwatch

/**
 * <p>
 * A helper method to resume the pages in case of unexpected failures. The method takes the last successful response
 * page as input and returns an instance of {@link ListMetricsPublisher} that can be used to retrieve the
 * consecutive pages that follows the input page.
 * </p>
 */
private final ListMetricsPublisher resume(ListMetricsResponse lastSuccessfulPage) {
  if (nextPageFetcher.hasNextPage(lastSuccessfulPage)) {
    return new ListMetricsPublisher(client, firstRequest.toBuilder().nextToken(lastSuccessfulPage.nextToken()).build());
  }
  return new ListMetricsPublisher(client, firstRequest, true) {
    @Override
    public void subscribe(Subscriber<? super ListMetricsResponse> subscriber) {
      subscriber.onSubscribe(new EmptySubscription(subscriber));
    }
  };
}
origin: aws/aws-sdk-java-v2

/**
 * <p>
 * A helper method to resume the pages in case of unexpected failures. The method takes the last successful response
 * page as input and returns an instance of {@link ListMetricsIterable} that can be used to retrieve the consecutive
 * pages that follows the input page.
 * </p>
 */
private final ListMetricsIterable resume(ListMetricsResponse lastSuccessfulPage) {
  if (nextPageFetcher.hasNextPage(lastSuccessfulPage)) {
    return new ListMetricsIterable(client, firstRequest.toBuilder().nextToken(lastSuccessfulPage.nextToken()).build());
  }
  return new ListMetricsIterable(client, firstRequest) {
    @Override
    public Iterator<ListMetricsResponse> iterator() {
      return Collections.emptyIterator();
    }
  };
}
origin: aws/aws-sdk-java-v2

/**
 * <p>
 * A helper method to resume the pages in case of unexpected failures. The method takes the last successful response
 * page as input and returns an instance of {@link ListMetricsPublisher} that can be used to retrieve the
 * consecutive pages that follows the input page.
 * </p>
 */
private final ListMetricsPublisher resume(ListMetricsResponse lastSuccessfulPage) {
  if (nextPageFetcher.hasNextPage(lastSuccessfulPage)) {
    return new ListMetricsPublisher(client, firstRequest.toBuilder().nextToken(lastSuccessfulPage.nextToken()).build());
  }
  return new ListMetricsPublisher(client, firstRequest, true) {
    @Override
    public void subscribe(Subscriber<? super ListMetricsResponse> subscriber) {
      subscriber.onSubscribe(new EmptySubscription(subscriber));
    }
  };
}
origin: software.amazon.awssdk/cloudwatch

  @Override
  public ListMetricsResponse nextPage(ListMetricsResponse previousPage) {
    if (previousPage == null) {
      return client.listMetrics(firstRequest);
    }
    return client.listMetrics(firstRequest.toBuilder().nextToken(previousPage.nextToken()).build());
  }
}
origin: aws/aws-sdk-java-v2

  @Override
  public CompletableFuture<ListMetricsResponse> nextPage(final ListMetricsResponse previousPage) {
    if (previousPage == null) {
      return client.listMetrics(firstRequest);
    }
    return client.listMetrics(firstRequest.toBuilder().nextToken(previousPage.nextToken()).build());
  }
}
origin: software.amazon.awssdk/cloudwatch

  @Override
  public CompletableFuture<ListMetricsResponse> nextPage(final ListMetricsResponse previousPage) {
    if (previousPage == null) {
      return client.listMetrics(firstRequest);
    }
    return client.listMetrics(firstRequest.toBuilder().nextToken(previousPage.nextToken()).build());
  }
}
origin: aws/aws-sdk-java-v2

  @Override
  public ListMetricsResponse nextPage(ListMetricsResponse previousPage) {
    if (previousPage == null) {
      return client.listMetrics(firstRequest);
    }
    return client.listMetrics(firstRequest.toBuilder().nextToken(previousPage.nextToken()).build());
  }
}
software.amazon.awssdk.services.cloudwatch.modelListMetricsRequest$Builderbuild

Popular methods of ListMetricsRequest$Builder

  • applyMutation
  • nextToken
    The token returned by a previous call to indicate that there is more data available.

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
  • getExternalFilesDir (Context)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Notification (javax.management)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now