title: cloudwatch command get-metric-data
body: <p>I'm not able to get the metric data through this command.</p>
  
  <pre><code>aws cloudwatch get-metric-data --metric-data-queries jsonfile.json \
     --start-time 2019-02-01T10:40:0000 --end-time 2019-02-27T14:12:0000 
  </code></pre>
  
  <p>The following error is getting shown.</p>
  
  <pre><code>Error parsing parameter '--metric-data-queries': Expected: '=', received: 'EOF' for input:
  </code></pre>
  
  <p>jsonfile.json</p>
  
  <p>Here, the jsonfile.json contains my query, defined below.</p>
  
  <pre><code>[
      {
          "Id": "MyRequest",
          "MetricStat": {
              "Metric": {
                  "Namespace": "AWS/EBS",
                  "MetricName": "VolumeReadBytes",
                  "Dimensions": [
                      {
                          "Name": "VolumeId",
                          "Value": "vol-******420********"
                      }
                  ]
              },
              "Period": "3600",
              "Stat": "Average",
              "Unit": "Bytes"
          },
          "Label": "myRequestLabel",
          "ReturnData": "true"
      }
  ]
  </code></pre>