public void setMetricName(String metricName) {
        this.metricName = metricName;
    }
<p>
The metric for which you want to return information.
</p>
<p>
Valid instance metric names are listed below, along with the most useful <code>statistics</code> to include in
your request, and the published <code>unit</code> value.
</p>
<ul>
<li>
<p>
<b> <code>BurstCapacityPercentage</code> </b> - The percentage of CPU performance available for your instance to
burst above its baseline. Your instance continuously accrues and consumes burst capacity. Burst capacity stops
accruing when your instance's <code>BurstCapacityPercentage</code> reaches 100%. For more information, see <a
href="https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-burst-capacity">
Viewing instance burst capacity in Amazon Lightsail</a>.
</p>
<p>
<code>Statistics</code>: The most useful statistics are <code>Maximum</code> and <code>Average</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Percent</code>.
</p>
</li>
<li>
<p>
<b> <code>BurstCapacityTime</code> </b> - The available amount of time for your instance to burst at 100% CPU
utilization. Your instance continuously accrues and consumes burst capacity. Burst capacity time stops accruing
when your instance's <code>BurstCapacityPercentage</code> metric reaches 100%.
</p>
<p>
Burst capacity time is consumed at the full rate only when your instance operates at 100% CPU utilization. For
example, if your instance operates at 50% CPU utilization in the burstable zone for a 5-minute period, then it
consumes CPU burst capacity minutes at a 50% rate in that period. Your instance consumed 2 minutes and 30 seconds
of CPU burst capacity minutes in the 5-minute period. For more information, see <a
href="https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-burst-capacity"
>Viewing instance burst capacity in Amazon Lightsail</a>.
</p>
<p>
<code>Statistics</code>: The most useful statistics are <code>Maximum</code> and <code>Average</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Seconds</code>.
</p>
</li>
<li>
<p>
<b> <code>CPUUtilization</code> </b> - The percentage of allocated compute units that are currently in use on the
instance. This metric identifies the processing power to run the applications on the instance. Tools in your
operating system can show a lower percentage than Lightsail when the instance is not allocated a full processor
core.
</p>
<p>
<code>Statistics</code>: The most useful statistics are <code>Maximum</code> and <code>Average</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Percent</code>.
</p>
</li>
<li>
<p>
<b> <code>NetworkIn</code> </b> - The number of bytes received on all network interfaces by the instance. This
metric identifies the volume of incoming network traffic to the instance. The number reported is the number of
bytes received during the period. Because this metric is reported in 5-minute intervals, divide the reported
number by 300 to find Bytes/second.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Bytes</code>.
</p>
</li>
<li>
<p>
<b> <code>NetworkOut</code> </b> - The number of bytes sent out on all network interfaces by the instance. This
metric identifies the volume of outgoing network traffic from the instance. The number reported is the number of
bytes sent during the period. Because this metric is reported in 5-minute intervals, divide the reported number
by 300 to find Bytes/second.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Bytes</code>.
</p>
</li>
<li>
<p>
<b> <code>StatusCheckFailed</code> </b> - Reports whether the instance passed or failed both the instance status
check and the system status check. This metric can be either 0 (passed) or 1 (failed). This metric data is
available in 1-minute (60 seconds) granularity.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
<li>
<p>
<b> <code>StatusCheckFailed_Instance</code> </b> - Reports whether the instance passed or failed the instance
status check. This metric can be either 0 (passed) or 1 (failed). This metric data is available in 1-minute (60
seconds) granularity.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
<li>
<p>
<b> <code>StatusCheckFailed_System</code> </b> - Reports whether the instance passed or failed the system status
check. This metric can be either 0 (passed) or 1 (failed). This metric data is available in 1-minute (60 seconds)
granularity.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
<li>
<p>
<b> <code>MetadataNoToken</code> </b> - Reports the number of times that the instance metadata service was
successfully accessed without a token. This metric determines if there are any processes accessing instance
metadata by using Instance Metadata Service Version 1, which doesn't use a token. If all requests use
token-backed sessions, such as Instance Metadata Service Version 2, then the value is 0.
</p>
<p>
<code>Statistics</code>: The most useful statistic is <code>Sum</code>.
</p>
<p>
<code>Unit</code>: The published unit is <code>Count</code>.
</p>
</li>
</ul>

@param metricName
       The metric for which you want to return information.</p>
       <p>
       Valid instance metric names are listed below, along with the most useful <code>statistics</code> to
       include in your request, and the published <code>unit</code> value.
       </p>
       <ul>
       <li>
       <p>
       <b> <code>BurstCapacityPercentage</code> </b> - The percentage of CPU performance available for your
       instance to burst above its baseline. Your instance continuously accrues and consumes burst capacity.
       Burst capacity stops accruing when your instance's <code>BurstCapacityPercentage</code> reaches 100%. For
       more information, see <a href=
       "https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-burst-capacity"
       >Viewing instance burst capacity in Amazon Lightsail</a>.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistics are <code>Maximum</code> and <code>Average</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Percent</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>BurstCapacityTime</code> </b> - The available amount of time for your instance to burst at 100%
       CPU utilization. Your instance continuously accrues and consumes burst capacity. Burst capacity time stops
       accruing when your instance's <code>BurstCapacityPercentage</code> metric reaches 100%.
       </p>
       <p>
       Burst capacity time is consumed at the full rate only when your instance operates at 100% CPU utilization.
       For example, if your instance operates at 50% CPU utilization in the burstable zone for a 5-minute period,
       then it consumes CPU burst capacity minutes at a 50% rate in that period. Your instance consumed 2 minutes
       and 30 seconds of CPU burst capacity minutes in the 5-minute period. For more information, see <a href=
       "https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-viewing-instance-burst-capacity"
       >Viewing instance burst capacity in Amazon Lightsail</a>.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistics are <code>Maximum</code> and <code>Average</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Seconds</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>CPUUtilization</code> </b> - The percentage of allocated compute units that are currently in use
       on the instance. This metric identifies the processing power to run the applications on the instance.
       Tools in your operating system can show a lower percentage than Lightsail when the instance is not
       allocated a full processor core.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistics are <code>Maximum</code> and <code>Average</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Percent</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>NetworkIn</code> </b> - The number of bytes received on all network interfaces by the instance.
       This metric identifies the volume of incoming network traffic to the instance. The number reported is the
       number of bytes received during the period. Because this metric is reported in 5-minute intervals, divide
       the reported number by 300 to find Bytes/second.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Bytes</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>NetworkOut</code> </b> - The number of bytes sent out on all network interfaces by the instance.
       This metric identifies the volume of outgoing network traffic from the instance. The number reported is
       the number of bytes sent during the period. Because this metric is reported in 5-minute intervals, divide
       the reported number by 300 to find Bytes/second.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Bytes</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>StatusCheckFailed</code> </b> - Reports whether the instance passed or failed both the instance
       status check and the system status check. This metric can be either 0 (passed) or 1 (failed). This metric
       data is available in 1-minute (60 seconds) granularity.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>StatusCheckFailed_Instance</code> </b> - Reports whether the instance passed or failed the
       instance status check. This metric can be either 0 (passed) or 1 (failed). This metric data is available
       in 1-minute (60 seconds) granularity.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>StatusCheckFailed_System</code> </b> - Reports whether the instance passed or failed the system
       status check. This metric can be either 0 (passed) or 1 (failed). This metric data is available in
       1-minute (60 seconds) granularity.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
       <li>
       <p>
       <b> <code>MetadataNoToken</code> </b> - Reports the number of times that the instance metadata service was
       successfully accessed without a token. This metric determines if there are any processes accessing
       instance metadata by using Instance Metadata Service Version 1, which doesn't use a token. If all requests
       use token-backed sessions, such as Instance Metadata Service Version 2, then the value is 0.
       </p>
       <p>
       <code>Statistics</code>: The most useful statistic is <code>Sum</code>.
       </p>
       <p>
       <code>Unit</code>: The published unit is <code>Count</code>.
       </p>
       </li>
@see InstanceMetricName
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetInstanceMetricDataRequest.java