Codota Logo
ListMetricsRequest$Builder
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
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

  @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

  throws InternalServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException,
  CloudWatchException {
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: 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

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

return listMetrics(ListMetricsRequest.builder().applyMutation(listMetricsRequest).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 listMetricsPaginator(ListMetricsRequest.builder().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 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

return listMetricsPaginator(ListMetricsRequest.builder().build());
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

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

  throws InternalServiceException, InvalidParameterValueException, AwsServiceException, SdkClientException,
  CloudWatchException {
return listMetricsPaginator(ListMetricsRequest.builder().applyMutation(listMetricsRequest).build());
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

return listMetricsPaginator(ListMetricsRequest.builder().build());
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: software.amazon.awssdk/cloudwatch

return listMetricsPaginator(ListMetricsRequest.builder().build());
software.amazon.awssdk.services.cloudwatch.modelListMetricsRequest$Builder

Most used methods

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

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now