Example usage for com.amazonaws.services.cloudwatch.model PutMetricDataRequest withNamespace

List of usage examples for com.amazonaws.services.cloudwatch.model PutMetricDataRequest withNamespace

Introduction

In this page you can find the example usage for com.amazonaws.services.cloudwatch.model PutMetricDataRequest withNamespace.

Prototype


public PutMetricDataRequest withNamespace(String namespace) 

Source Link

Document

The namespace for the metric data.

Usage

From source file:com.mimesis.jmx.Exporter4CloudwatchAsyncClient.java

License:Apache License

private PutMetricDataRequest newPutMetricDataRequest(ArrayList<MetricDatum> metrics) {
    PutMetricDataRequest putMetricDataRequest = new PutMetricDataRequest();
    if (_namespace != null) {
        putMetricDataRequest = putMetricDataRequest.withNamespace(_namespace);
    }/*from  w w w.  ja v  a2  s.c  om*/
    return putMetricDataRequest.withMetricData(metrics);
}