com.amazonaws.services.cloudwatch.model

## クラス PutMetricDataRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.cloudwatch.model.PutMetricDataRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class PutMetricDataRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `PutMetricData operation`.

  Publishes metric data points to Amazon CloudWatch. Amazon Cloudwatch associates the data points with the specified metric. If the specified metric does not exist, Amazon CloudWatch creates the metric.

  NOTE: If you create a metric with the PutMetricData action, allow up to fifteen minutes for the metric to appear in calls to the ListMetrics action.

  The size of a PutMetricData request is limited to 8 KB for HTTP GET requests and 40 KB for HTTP POST requests.

  IMPORTANT: Although the Value parameter accepts numbers of type Double, Amazon CloudWatch truncates values with very large exponents. Values with base-10 exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 exponents less than -130 (1 x 10^-130) are also truncated.

  関連項目:
    `AmazonCloudWatch.putMetricData(PutMetricDataRequest)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `PutMetricDataRequest()`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.util.List<MetricDatum>` | `getMetricData()` A list of data describing the metric.
    `java.lang.String` | `getNamespace()` The namespace for the metric data.
    `int` | `hashCode()`
    `void` | `setMetricData(java.util.Collection<MetricDatum> metricData)` A list of data describing the metric.
    `void` | `setNamespace(java.lang.String namespace)` The namespace for the metric data.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `PutMetricDataRequest` | `withMetricData(java.util.Collection<MetricDatum> metricData)` A list of data describing the metric.
    `PutMetricDataRequest` | `withMetricData(MetricDatum... metricData)` A list of data describing the metric.
    `PutMetricDataRequest` | `withNamespace(java.lang.String namespace)` The namespace for the metric data.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### PutMetricDataRequest

          public PutMetricDataRequest()

  - ### メソッドの詳細

    - #### getNamespace

          public java.lang.String getNamespace()

      The namespace for the metric data.

      Constraints:
      Length: 1 - 255
      Pattern: [^:].*

      戻り値:
        The namespace for the metric data.

    - #### setNamespace

          public void setNamespace(java.lang.String namespace)

      The namespace for the metric data.

      Constraints:
      Length: 1 - 255
      Pattern: [^:].*

      パラメータ:
        `namespace` - The namespace for the metric data.

    - #### withNamespace

          public PutMetricDataRequest withNamespace(java.lang.String namespace)

      The namespace for the metric data.

      Returns a reference to this object so that method calls can be chained together.

      Constraints:
      Length: 1 - 255
      Pattern: [^:].*

      パラメータ:
        `namespace` - The namespace for the metric data.

    - #### getMetricData

          public java.util.List<MetricDatum> getMetricData()

      A list of data describing the metric.
      戻り値:
        A list of data describing the metric.

    - #### setMetricData

          public void setMetricData(java.util.Collection<MetricDatum> metricData)

      A list of data describing the metric.
      パラメータ:
        `metricData` - A list of data describing the metric.

    - #### withMetricData

          public PutMetricDataRequest withMetricData(MetricDatum... metricData)

      A list of data describing the metric.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `metricData` - A list of data describing the metric.

    - #### withMetricData

          public PutMetricDataRequest withMetricData(java.util.Collection<MetricDatum> metricData)

      A list of data describing the metric.

      Returns a reference to this object so that method calls can be chained together.

      パラメータ:
        `metricData` - A list of data describing the metric.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`