/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.computeoptimizer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes a utilization metric of a resource, such as an Amazon EC2 instance. *
** Compare the utilization metric data of your resource against its projected utilization metric data to determine the * performance difference between your current resource and the recommended option. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UtilizationMetric implements Serializable, Cloneable, StructuredPojo { /** ** The name of the utilization metric. *
** The following utilization metrics are available: *
*
* Cpu
- The percentage of allocated EC2 compute units that are currently in use on the instance. This
* metric identifies the processing power required to run an application on the instance.
*
* Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when * the instance is not allocated a full processor core. *
** Units: Percent *
*
* Memory
- The percentage of memory that is currently in use on the instance. This metric identifies
* the amount of memory required to run an application on the instance.
*
* Units: Percent *
*
* The Memory
metric is returned only for resources that have the unified CloudWatch agent installed on
* them. For more information, see Enabling Memory Utilization
* with the CloudWatch Agent.
*
* EBS_READ_OPS_PER_SECOND
- The completed read operations from all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_WRITE_OPS_PER_SECOND
- The completed write operations to all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_READ_BYTES_PER_SECOND
- The bytes read from all EBS volumes attached to the instance in a
* specified period of time.
*
* Unit: Bytes *
*
* EBS_WRITE_BYTES_PER_SECOND
- The bytes written to all EBS volumes attached to the instance in a
* specified period of time.
*
* Unit: Bytes *
*
* DISK_READ_OPS_PER_SECOND
- The completed read operations from all instance store volumes available
* to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_OPS_PER_SECOND
- The completed write operations from all instance store volumes available
* to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_READ_BYTES_PER_SECOND
- The bytes read from all instance store volumes available to the
* instance. This metric is used to determine the volume of the data the application reads from the disk of the
* instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_BYTES_PER_SECOND
- The bytes written to all instance store volumes available to the
* instance. This metric is used to determine the volume of the data the application writes onto the disk of the
* instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* NETWORK_IN_BYTES_PER_SECOND
- The number of bytes received by the instance on all network
* interfaces. This metric identifies the volume of incoming network traffic to a single instance.
*
* NETWORK_OUT_BYTES_PER_SECOND
- The number of bytes sent out by the instance on all network
* interfaces. This metric identifies the volume of outgoing network traffic from a single instance.
*
* NETWORK_PACKETS_IN_PER_SECOND
- The number of packets received by the instance on all network
* interfaces. This metric identifies the volume of incoming traffic in terms of the number of packets on a single
* instance.
*
* NETWORK_PACKETS_OUT_PER_SECOND
- The number of packets sent out by the instance on all network
* interfaces. This metric identifies the volume of outgoing traffic in terms of the number of packets on a single
* instance.
*
* The statistic of the utilization metric. *
*
* The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the
* Maximum
statistic, which is the highest value observed during the specified period.
*
* The Compute Optimizer console displays graphs for some utilization metrics using the Average
* statistic, which is the value of Sum
/ SampleCount
during the specified period. For
* more information, see Viewing resource
* recommendations in the Compute Optimizer User Guide. You can also get averaged utilization metric data
* for your resources using Amazon CloudWatch. For more information, see the Amazon CloudWatch
* User Guide.
*
* The value of the utilization metric. *
*/ private Double value; /** ** The name of the utilization metric. *
** The following utilization metrics are available: *
*
* Cpu
- The percentage of allocated EC2 compute units that are currently in use on the instance. This
* metric identifies the processing power required to run an application on the instance.
*
* Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when * the instance is not allocated a full processor core. *
** Units: Percent *
*
* Memory
- The percentage of memory that is currently in use on the instance. This metric identifies
* the amount of memory required to run an application on the instance.
*
* Units: Percent *
*
* The Memory
metric is returned only for resources that have the unified CloudWatch agent installed on
* them. For more information, see Enabling Memory Utilization
* with the CloudWatch Agent.
*
* EBS_READ_OPS_PER_SECOND
- The completed read operations from all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_WRITE_OPS_PER_SECOND
- The completed write operations to all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_READ_BYTES_PER_SECOND
- The bytes read from all EBS volumes attached to the instance in a
* specified period of time.
*
* Unit: Bytes *
*
* EBS_WRITE_BYTES_PER_SECOND
- The bytes written to all EBS volumes attached to the instance in a
* specified period of time.
*
* Unit: Bytes *
*
* DISK_READ_OPS_PER_SECOND
- The completed read operations from all instance store volumes available
* to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_OPS_PER_SECOND
- The completed write operations from all instance store volumes available
* to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_READ_BYTES_PER_SECOND
- The bytes read from all instance store volumes available to the
* instance. This metric is used to determine the volume of the data the application reads from the disk of the
* instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_BYTES_PER_SECOND
- The bytes written to all instance store volumes available to the
* instance. This metric is used to determine the volume of the data the application writes onto the disk of the
* instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* NETWORK_IN_BYTES_PER_SECOND
- The number of bytes received by the instance on all network
* interfaces. This metric identifies the volume of incoming network traffic to a single instance.
*
* NETWORK_OUT_BYTES_PER_SECOND
- The number of bytes sent out by the instance on all network
* interfaces. This metric identifies the volume of outgoing network traffic from a single instance.
*
* NETWORK_PACKETS_IN_PER_SECOND
- The number of packets received by the instance on all network
* interfaces. This metric identifies the volume of incoming traffic in terms of the number of packets on a single
* instance.
*
* NETWORK_PACKETS_OUT_PER_SECOND
- The number of packets sent out by the instance on all network
* interfaces. This metric identifies the volume of outgoing traffic in terms of the number of packets on a single
* instance.
*
* The following utilization metrics are available: *
*
* Cpu
- The percentage of allocated EC2 compute units that are currently in use on the
* instance. This metric identifies the processing power required to run an application on the instance.
*
* Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch * when the instance is not allocated a full processor core. *
** Units: Percent *
*
* Memory
- The percentage of memory that is currently in use on the instance. This metric
* identifies the amount of memory required to run an application on the instance.
*
* Units: Percent *
*
* The Memory
metric is returned only for resources that have the unified CloudWatch agent
* installed on them. For more information, see Enabling Memory
* Utilization with the CloudWatch Agent.
*
* EBS_READ_OPS_PER_SECOND
- The completed read operations from all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_WRITE_OPS_PER_SECOND
- The completed write operations to all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_READ_BYTES_PER_SECOND
- The bytes read from all EBS volumes attached to the instance in a
* specified period of time.
*
* Unit: Bytes *
*
* EBS_WRITE_BYTES_PER_SECOND
- The bytes written to all EBS volumes attached to the instance in
* a specified period of time.
*
* Unit: Bytes *
*
* DISK_READ_OPS_PER_SECOND
- The completed read operations from all instance store volumes
* available to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_OPS_PER_SECOND
- The completed write operations from all instance store volumes
* available to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_READ_BYTES_PER_SECOND
- The bytes read from all instance store volumes available to the
* instance. This metric is used to determine the volume of the data the application reads from the disk of
* the instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_BYTES_PER_SECOND
- The bytes written to all instance store volumes available to
* the instance. This metric is used to determine the volume of the data the application writes onto the disk
* of the instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* NETWORK_IN_BYTES_PER_SECOND
- The number of bytes received by the instance on all network
* interfaces. This metric identifies the volume of incoming network traffic to a single instance.
*
* NETWORK_OUT_BYTES_PER_SECOND
- The number of bytes sent out by the instance on all network
* interfaces. This metric identifies the volume of outgoing network traffic from a single instance.
*
* NETWORK_PACKETS_IN_PER_SECOND
- The number of packets received by the instance on all network
* interfaces. This metric identifies the volume of incoming traffic in terms of the number of packets on a
* single instance.
*
* NETWORK_PACKETS_OUT_PER_SECOND
- The number of packets sent out by the instance on all
* network interfaces. This metric identifies the volume of outgoing traffic in terms of the number of
* packets on a single instance.
*
* The name of the utilization metric. *
** The following utilization metrics are available: *
*
* Cpu
- The percentage of allocated EC2 compute units that are currently in use on the instance. This
* metric identifies the processing power required to run an application on the instance.
*
* Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when * the instance is not allocated a full processor core. *
** Units: Percent *
*
* Memory
- The percentage of memory that is currently in use on the instance. This metric identifies
* the amount of memory required to run an application on the instance.
*
* Units: Percent *
*
* The Memory
metric is returned only for resources that have the unified CloudWatch agent installed on
* them. For more information, see Enabling Memory Utilization
* with the CloudWatch Agent.
*
* EBS_READ_OPS_PER_SECOND
- The completed read operations from all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_WRITE_OPS_PER_SECOND
- The completed write operations to all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_READ_BYTES_PER_SECOND
- The bytes read from all EBS volumes attached to the instance in a
* specified period of time.
*
* Unit: Bytes *
*
* EBS_WRITE_BYTES_PER_SECOND
- The bytes written to all EBS volumes attached to the instance in a
* specified period of time.
*
* Unit: Bytes *
*
* DISK_READ_OPS_PER_SECOND
- The completed read operations from all instance store volumes available
* to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_OPS_PER_SECOND
- The completed write operations from all instance store volumes available
* to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_READ_BYTES_PER_SECOND
- The bytes read from all instance store volumes available to the
* instance. This metric is used to determine the volume of the data the application reads from the disk of the
* instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_BYTES_PER_SECOND
- The bytes written to all instance store volumes available to the
* instance. This metric is used to determine the volume of the data the application writes onto the disk of the
* instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* NETWORK_IN_BYTES_PER_SECOND
- The number of bytes received by the instance on all network
* interfaces. This metric identifies the volume of incoming network traffic to a single instance.
*
* NETWORK_OUT_BYTES_PER_SECOND
- The number of bytes sent out by the instance on all network
* interfaces. This metric identifies the volume of outgoing network traffic from a single instance.
*
* NETWORK_PACKETS_IN_PER_SECOND
- The number of packets received by the instance on all network
* interfaces. This metric identifies the volume of incoming traffic in terms of the number of packets on a single
* instance.
*
* NETWORK_PACKETS_OUT_PER_SECOND
- The number of packets sent out by the instance on all network
* interfaces. This metric identifies the volume of outgoing traffic in terms of the number of packets on a single
* instance.
*
* The following utilization metrics are available: *
*
* Cpu
- The percentage of allocated EC2 compute units that are currently in use on the
* instance. This metric identifies the processing power required to run an application on the instance.
*
* Depending on the instance type, tools in your operating system can show a lower percentage than * CloudWatch when the instance is not allocated a full processor core. *
** Units: Percent *
*
* Memory
- The percentage of memory that is currently in use on the instance. This metric
* identifies the amount of memory required to run an application on the instance.
*
* Units: Percent *
*
* The Memory
metric is returned only for resources that have the unified CloudWatch agent
* installed on them. For more information, see Enabling Memory
* Utilization with the CloudWatch Agent.
*
* EBS_READ_OPS_PER_SECOND
- The completed read operations from all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_WRITE_OPS_PER_SECOND
- The completed write operations to all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_READ_BYTES_PER_SECOND
- The bytes read from all EBS volumes attached to the instance in
* a specified period of time.
*
* Unit: Bytes *
*
* EBS_WRITE_BYTES_PER_SECOND
- The bytes written to all EBS volumes attached to the instance
* in a specified period of time.
*
* Unit: Bytes *
*
* DISK_READ_OPS_PER_SECOND
- The completed read operations from all instance store volumes
* available to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_OPS_PER_SECOND
- The completed write operations from all instance store volumes
* available to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_READ_BYTES_PER_SECOND
- The bytes read from all instance store volumes available to the
* instance. This metric is used to determine the volume of the data the application reads from the disk of
* the instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_BYTES_PER_SECOND
- The bytes written to all instance store volumes available to
* the instance. This metric is used to determine the volume of the data the application writes onto the
* disk of the instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* NETWORK_IN_BYTES_PER_SECOND
- The number of bytes received by the instance on all network
* interfaces. This metric identifies the volume of incoming network traffic to a single instance.
*
* NETWORK_OUT_BYTES_PER_SECOND
- The number of bytes sent out by the instance on all network
* interfaces. This metric identifies the volume of outgoing network traffic from a single instance.
*
* NETWORK_PACKETS_IN_PER_SECOND
- The number of packets received by the instance on all
* network interfaces. This metric identifies the volume of incoming traffic in terms of the number of
* packets on a single instance.
*
* NETWORK_PACKETS_OUT_PER_SECOND
- The number of packets sent out by the instance on all
* network interfaces. This metric identifies the volume of outgoing traffic in terms of the number of
* packets on a single instance.
*
* The name of the utilization metric. *
** The following utilization metrics are available: *
*
* Cpu
- The percentage of allocated EC2 compute units that are currently in use on the instance. This
* metric identifies the processing power required to run an application on the instance.
*
* Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when * the instance is not allocated a full processor core. *
** Units: Percent *
*
* Memory
- The percentage of memory that is currently in use on the instance. This metric identifies
* the amount of memory required to run an application on the instance.
*
* Units: Percent *
*
* The Memory
metric is returned only for resources that have the unified CloudWatch agent installed on
* them. For more information, see Enabling Memory Utilization
* with the CloudWatch Agent.
*
* EBS_READ_OPS_PER_SECOND
- The completed read operations from all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_WRITE_OPS_PER_SECOND
- The completed write operations to all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_READ_BYTES_PER_SECOND
- The bytes read from all EBS volumes attached to the instance in a
* specified period of time.
*
* Unit: Bytes *
*
* EBS_WRITE_BYTES_PER_SECOND
- The bytes written to all EBS volumes attached to the instance in a
* specified period of time.
*
* Unit: Bytes *
*
* DISK_READ_OPS_PER_SECOND
- The completed read operations from all instance store volumes available
* to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_OPS_PER_SECOND
- The completed write operations from all instance store volumes available
* to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_READ_BYTES_PER_SECOND
- The bytes read from all instance store volumes available to the
* instance. This metric is used to determine the volume of the data the application reads from the disk of the
* instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_BYTES_PER_SECOND
- The bytes written to all instance store volumes available to the
* instance. This metric is used to determine the volume of the data the application writes onto the disk of the
* instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* NETWORK_IN_BYTES_PER_SECOND
- The number of bytes received by the instance on all network
* interfaces. This metric identifies the volume of incoming network traffic to a single instance.
*
* NETWORK_OUT_BYTES_PER_SECOND
- The number of bytes sent out by the instance on all network
* interfaces. This metric identifies the volume of outgoing network traffic from a single instance.
*
* NETWORK_PACKETS_IN_PER_SECOND
- The number of packets received by the instance on all network
* interfaces. This metric identifies the volume of incoming traffic in terms of the number of packets on a single
* instance.
*
* NETWORK_PACKETS_OUT_PER_SECOND
- The number of packets sent out by the instance on all network
* interfaces. This metric identifies the volume of outgoing traffic in terms of the number of packets on a single
* instance.
*
* The following utilization metrics are available: *
*
* Cpu
- The percentage of allocated EC2 compute units that are currently in use on the
* instance. This metric identifies the processing power required to run an application on the instance.
*
* Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch * when the instance is not allocated a full processor core. *
** Units: Percent *
*
* Memory
- The percentage of memory that is currently in use on the instance. This metric
* identifies the amount of memory required to run an application on the instance.
*
* Units: Percent *
*
* The Memory
metric is returned only for resources that have the unified CloudWatch agent
* installed on them. For more information, see Enabling Memory
* Utilization with the CloudWatch Agent.
*
* EBS_READ_OPS_PER_SECOND
- The completed read operations from all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_WRITE_OPS_PER_SECOND
- The completed write operations to all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_READ_BYTES_PER_SECOND
- The bytes read from all EBS volumes attached to the instance in a
* specified period of time.
*
* Unit: Bytes *
*
* EBS_WRITE_BYTES_PER_SECOND
- The bytes written to all EBS volumes attached to the instance in
* a specified period of time.
*
* Unit: Bytes *
*
* DISK_READ_OPS_PER_SECOND
- The completed read operations from all instance store volumes
* available to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_OPS_PER_SECOND
- The completed write operations from all instance store volumes
* available to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_READ_BYTES_PER_SECOND
- The bytes read from all instance store volumes available to the
* instance. This metric is used to determine the volume of the data the application reads from the disk of
* the instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_BYTES_PER_SECOND
- The bytes written to all instance store volumes available to
* the instance. This metric is used to determine the volume of the data the application writes onto the disk
* of the instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* NETWORK_IN_BYTES_PER_SECOND
- The number of bytes received by the instance on all network
* interfaces. This metric identifies the volume of incoming network traffic to a single instance.
*
* NETWORK_OUT_BYTES_PER_SECOND
- The number of bytes sent out by the instance on all network
* interfaces. This metric identifies the volume of outgoing network traffic from a single instance.
*
* NETWORK_PACKETS_IN_PER_SECOND
- The number of packets received by the instance on all network
* interfaces. This metric identifies the volume of incoming traffic in terms of the number of packets on a
* single instance.
*
* NETWORK_PACKETS_OUT_PER_SECOND
- The number of packets sent out by the instance on all
* network interfaces. This metric identifies the volume of outgoing traffic in terms of the number of
* packets on a single instance.
*
* The name of the utilization metric. *
** The following utilization metrics are available: *
*
* Cpu
- The percentage of allocated EC2 compute units that are currently in use on the instance. This
* metric identifies the processing power required to run an application on the instance.
*
* Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when * the instance is not allocated a full processor core. *
** Units: Percent *
*
* Memory
- The percentage of memory that is currently in use on the instance. This metric identifies
* the amount of memory required to run an application on the instance.
*
* Units: Percent *
*
* The Memory
metric is returned only for resources that have the unified CloudWatch agent installed on
* them. For more information, see Enabling Memory Utilization
* with the CloudWatch Agent.
*
* EBS_READ_OPS_PER_SECOND
- The completed read operations from all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_WRITE_OPS_PER_SECOND
- The completed write operations to all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_READ_BYTES_PER_SECOND
- The bytes read from all EBS volumes attached to the instance in a
* specified period of time.
*
* Unit: Bytes *
*
* EBS_WRITE_BYTES_PER_SECOND
- The bytes written to all EBS volumes attached to the instance in a
* specified period of time.
*
* Unit: Bytes *
*
* DISK_READ_OPS_PER_SECOND
- The completed read operations from all instance store volumes available
* to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_OPS_PER_SECOND
- The completed write operations from all instance store volumes available
* to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_READ_BYTES_PER_SECOND
- The bytes read from all instance store volumes available to the
* instance. This metric is used to determine the volume of the data the application reads from the disk of the
* instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_BYTES_PER_SECOND
- The bytes written to all instance store volumes available to the
* instance. This metric is used to determine the volume of the data the application writes onto the disk of the
* instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* NETWORK_IN_BYTES_PER_SECOND
- The number of bytes received by the instance on all network
* interfaces. This metric identifies the volume of incoming network traffic to a single instance.
*
* NETWORK_OUT_BYTES_PER_SECOND
- The number of bytes sent out by the instance on all network
* interfaces. This metric identifies the volume of outgoing network traffic from a single instance.
*
* NETWORK_PACKETS_IN_PER_SECOND
- The number of packets received by the instance on all network
* interfaces. This metric identifies the volume of incoming traffic in terms of the number of packets on a single
* instance.
*
* NETWORK_PACKETS_OUT_PER_SECOND
- The number of packets sent out by the instance on all network
* interfaces. This metric identifies the volume of outgoing traffic in terms of the number of packets on a single
* instance.
*
* The following utilization metrics are available: *
*
* Cpu
- The percentage of allocated EC2 compute units that are currently in use on the
* instance. This metric identifies the processing power required to run an application on the instance.
*
* Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch * when the instance is not allocated a full processor core. *
** Units: Percent *
*
* Memory
- The percentage of memory that is currently in use on the instance. This metric
* identifies the amount of memory required to run an application on the instance.
*
* Units: Percent *
*
* The Memory
metric is returned only for resources that have the unified CloudWatch agent
* installed on them. For more information, see Enabling Memory
* Utilization with the CloudWatch Agent.
*
* EBS_READ_OPS_PER_SECOND
- The completed read operations from all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_WRITE_OPS_PER_SECOND
- The completed write operations to all EBS volumes attached to the
* instance in a specified period of time.
*
* Unit: Count *
*
* EBS_READ_BYTES_PER_SECOND
- The bytes read from all EBS volumes attached to the instance in a
* specified period of time.
*
* Unit: Bytes *
*
* EBS_WRITE_BYTES_PER_SECOND
- The bytes written to all EBS volumes attached to the instance in
* a specified period of time.
*
* Unit: Bytes *
*
* DISK_READ_OPS_PER_SECOND
- The completed read operations from all instance store volumes
* available to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_OPS_PER_SECOND
- The completed write operations from all instance store volumes
* available to the instance in a specified period of time.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_READ_BYTES_PER_SECOND
- The bytes read from all instance store volumes available to the
* instance. This metric is used to determine the volume of the data the application reads from the disk of
* the instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* DISK_WRITE_BYTES_PER_SECOND
- The bytes written to all instance store volumes available to
* the instance. This metric is used to determine the volume of the data the application writes onto the disk
* of the instance. This can be used to determine the speed of the application.
*
* If there are no instance store volumes, either the value is 0
or the metric is not reported.
*
* NETWORK_IN_BYTES_PER_SECOND
- The number of bytes received by the instance on all network
* interfaces. This metric identifies the volume of incoming network traffic to a single instance.
*
* NETWORK_OUT_BYTES_PER_SECOND
- The number of bytes sent out by the instance on all network
* interfaces. This metric identifies the volume of outgoing network traffic from a single instance.
*
* NETWORK_PACKETS_IN_PER_SECOND
- The number of packets received by the instance on all network
* interfaces. This metric identifies the volume of incoming traffic in terms of the number of packets on a
* single instance.
*
* NETWORK_PACKETS_OUT_PER_SECOND
- The number of packets sent out by the instance on all
* network interfaces. This metric identifies the volume of outgoing traffic in terms of the number of
* packets on a single instance.
*
* The statistic of the utilization metric. *
*
* The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the
* Maximum
statistic, which is the highest value observed during the specified period.
*
* The Compute Optimizer console displays graphs for some utilization metrics using the Average
* statistic, which is the value of Sum
/ SampleCount
during the specified period. For
* more information, see Viewing resource
* recommendations in the Compute Optimizer User Guide. You can also get averaged utilization metric data
* for your resources using Amazon CloudWatch. For more information, see the Amazon CloudWatch
* User Guide.
*
* The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only
* the Maximum
statistic, which is the highest value observed during the specified period.
*
* The Compute Optimizer console displays graphs for some utilization metrics using the Average
* statistic, which is the value of Sum
/ SampleCount
during the specified period.
* For more information, see Viewing
* resource recommendations in the Compute Optimizer User Guide. You can also get averaged
* utilization metric data for your resources using Amazon CloudWatch. For more information, see the Amazon
* CloudWatch User Guide.
* @see MetricStatistic
*/
public void setStatistic(String statistic) {
this.statistic = statistic;
}
/**
*
* The statistic of the utilization metric. *
*
* The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the
* Maximum
statistic, which is the highest value observed during the specified period.
*
* The Compute Optimizer console displays graphs for some utilization metrics using the Average
* statistic, which is the value of Sum
/ SampleCount
during the specified period. For
* more information, see Viewing resource
* recommendations in the Compute Optimizer User Guide. You can also get averaged utilization metric data
* for your resources using Amazon CloudWatch. For more information, see the Amazon CloudWatch
* User Guide.
*
* The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only
* the Maximum
statistic, which is the highest value observed during the specified period.
*
* The Compute Optimizer console displays graphs for some utilization metrics using the Average
* statistic, which is the value of Sum
/ SampleCount
during the specified period.
* For more information, see Viewing
* resource recommendations in the Compute Optimizer User Guide. You can also get averaged
* utilization metric data for your resources using Amazon CloudWatch. For more information, see the Amazon
* CloudWatch User Guide.
* @see MetricStatistic
*/
public String getStatistic() {
return this.statistic;
}
/**
*
* The statistic of the utilization metric. *
*
* The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the
* Maximum
statistic, which is the highest value observed during the specified period.
*
* The Compute Optimizer console displays graphs for some utilization metrics using the Average
* statistic, which is the value of Sum
/ SampleCount
during the specified period. For
* more information, see Viewing resource
* recommendations in the Compute Optimizer User Guide. You can also get averaged utilization metric data
* for your resources using Amazon CloudWatch. For more information, see the Amazon CloudWatch
* User Guide.
*
* The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only
* the Maximum
statistic, which is the highest value observed during the specified period.
*
* The Compute Optimizer console displays graphs for some utilization metrics using the Average
* statistic, which is the value of Sum
/ SampleCount
during the specified period.
* For more information, see Viewing
* resource recommendations in the Compute Optimizer User Guide. You can also get averaged
* utilization metric data for your resources using Amazon CloudWatch. For more information, see the Amazon
* CloudWatch User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MetricStatistic
*/
public UtilizationMetric withStatistic(String statistic) {
setStatistic(statistic);
return this;
}
/**
*
* The statistic of the utilization metric. *
*
* The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only the
* Maximum
statistic, which is the highest value observed during the specified period.
*
* The Compute Optimizer console displays graphs for some utilization metrics using the Average
* statistic, which is the value of Sum
/ SampleCount
during the specified period. For
* more information, see Viewing resource
* recommendations in the Compute Optimizer User Guide. You can also get averaged utilization metric data
* for your resources using Amazon CloudWatch. For more information, see the Amazon CloudWatch
* User Guide.
*
* The Compute Optimizer API, Command Line Interface (CLI), and SDKs return utilization metrics using only
* the Maximum
statistic, which is the highest value observed during the specified period.
*
* The Compute Optimizer console displays graphs for some utilization metrics using the Average
* statistic, which is the value of Sum
/ SampleCount
during the specified period.
* For more information, see Viewing
* resource recommendations in the Compute Optimizer User Guide. You can also get averaged
* utilization metric data for your resources using Amazon CloudWatch. For more information, see the Amazon
* CloudWatch User Guide.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MetricStatistic
*/
public UtilizationMetric withStatistic(MetricStatistic statistic) {
this.statistic = statistic.toString();
return this;
}
/**
*
* The value of the utilization metric. *
* * @param value * The value of the utilization metric. */ public void setValue(Double value) { this.value = value; } /** ** The value of the utilization metric. *
* * @return The value of the utilization metric. */ public Double getValue() { return this.value; } /** ** The value of the utilization metric. *
* * @param value * The value of the utilization metric. * @return Returns a reference to this object so that method calls can be chained together. */ public UtilizationMetric withValue(Double value) { setValue(value); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getStatistic() != null) sb.append("Statistic: ").append(getStatistic()).append(","); if (getValue() != null) sb.append("Value: ").append(getValue()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UtilizationMetric == false) return false; UtilizationMetric other = (UtilizationMetric) obj; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getStatistic() == null ^ this.getStatistic() == null) return false; if (other.getStatistic() != null && other.getStatistic().equals(this.getStatistic()) == false) return false; if (other.getValue() == null ^ this.getValue() == null) return false; if (other.getValue() != null && other.getValue().equals(this.getValue()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getStatistic() == null) ? 0 : getStatistic().hashCode()); hashCode = prime * hashCode + ((getValue() == null) ? 0 : getValue().hashCode()); return hashCode; } @Override public UtilizationMetric clone() { try { return (UtilizationMetric) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.computeoptimizer.model.transform.UtilizationMetricMarshaller.getInstance().marshall(this, protocolMarshaller); } }