title: How to log dimension like AWS CloudWatch bundled metric
body: <p><img src="https://i.stack.imgur.com/H69QA.png" alt="enter image description here"></p>
  
  <p>Can anyone explain how to use the AWS PHP SDK to log the metric in the style like the above screen.</p>
  
  <p>I use the following PHP code but the <strong>select menu</strong> is showing "<strong>ELB: AvaliabiltyZone</strong>", how to make it show "<strong>Aggregated by AvaliabiltyZone</strong>"? What is the logic used here?</p>
  
  <pre><code>$response = $cw-&gt;put_metric_data("ELB", array(  
      array(  
          "MetricName" =&gt; "Latency",  
          "Dimensions" =&gt; array(  
              array("Name" =&gt; "AvaliabiltyZone"  , "Value" =&gt; "us-east-1c")
          ),  
          "Timestamp" =&gt; "now",  
          "Value"     =&gt; 1,  
          "Unit"      =&gt; "None"  
      ),  
  ));  
  </code></pre>