/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticBeanstalk { namespace Model { /** *

CPU utilization metrics for an instance.

See Also:

AWS * API Reference

*/ class CPUUtilization { public: AWS_ELASTICBEANSTALK_API CPUUtilization(); AWS_ELASTICBEANSTALK_API CPUUtilization(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API CPUUtilization& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Percentage of time that the CPU has spent in the User state over * the last 10 seconds.

*/ inline double GetUser() const{ return m_user; } /** *

Percentage of time that the CPU has spent in the User state over * the last 10 seconds.

*/ inline bool UserHasBeenSet() const { return m_userHasBeenSet; } /** *

Percentage of time that the CPU has spent in the User state over * the last 10 seconds.

*/ inline void SetUser(double value) { m_userHasBeenSet = true; m_user = value; } /** *

Percentage of time that the CPU has spent in the User state over * the last 10 seconds.

*/ inline CPUUtilization& WithUser(double value) { SetUser(value); return *this;} /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the Nice state over the last 10 seconds.

*/ inline double GetNice() const{ return m_nice; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the Nice state over the last 10 seconds.

*/ inline bool NiceHasBeenSet() const { return m_niceHasBeenSet; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the Nice state over the last 10 seconds.

*/ inline void SetNice(double value) { m_niceHasBeenSet = true; m_nice = value; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the Nice state over the last 10 seconds.

*/ inline CPUUtilization& WithNice(double value) { SetNice(value); return *this;} /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the System state over the last 10 seconds.

*/ inline double GetSystem() const{ return m_system; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the System state over the last 10 seconds.

*/ inline bool SystemHasBeenSet() const { return m_systemHasBeenSet; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the System state over the last 10 seconds.

*/ inline void SetSystem(double value) { m_systemHasBeenSet = true; m_system = value; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the System state over the last 10 seconds.

*/ inline CPUUtilization& WithSystem(double value) { SetSystem(value); return *this;} /** *

Percentage of time that the CPU has spent in the Idle state over * the last 10 seconds.

*/ inline double GetIdle() const{ return m_idle; } /** *

Percentage of time that the CPU has spent in the Idle state over * the last 10 seconds.

*/ inline bool IdleHasBeenSet() const { return m_idleHasBeenSet; } /** *

Percentage of time that the CPU has spent in the Idle state over * the last 10 seconds.

*/ inline void SetIdle(double value) { m_idleHasBeenSet = true; m_idle = value; } /** *

Percentage of time that the CPU has spent in the Idle state over * the last 10 seconds.

*/ inline CPUUtilization& WithIdle(double value) { SetIdle(value); return *this;} /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the I/O Wait state over the last 10 seconds.

*/ inline double GetIOWait() const{ return m_iOWait; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the I/O Wait state over the last 10 seconds.

*/ inline bool IOWaitHasBeenSet() const { return m_iOWaitHasBeenSet; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the I/O Wait state over the last 10 seconds.

*/ inline void SetIOWait(double value) { m_iOWaitHasBeenSet = true; m_iOWait = value; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the I/O Wait state over the last 10 seconds.

*/ inline CPUUtilization& WithIOWait(double value) { SetIOWait(value); return *this;} /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the IRQ state over the last 10 seconds.

*/ inline double GetIRQ() const{ return m_iRQ; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the IRQ state over the last 10 seconds.

*/ inline bool IRQHasBeenSet() const { return m_iRQHasBeenSet; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the IRQ state over the last 10 seconds.

*/ inline void SetIRQ(double value) { m_iRQHasBeenSet = true; m_iRQ = value; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the IRQ state over the last 10 seconds.

*/ inline CPUUtilization& WithIRQ(double value) { SetIRQ(value); return *this;} /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the SoftIRQ state over the last 10 seconds.

*/ inline double GetSoftIRQ() const{ return m_softIRQ; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the SoftIRQ state over the last 10 seconds.

*/ inline bool SoftIRQHasBeenSet() const { return m_softIRQHasBeenSet; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the SoftIRQ state over the last 10 seconds.

*/ inline void SetSoftIRQ(double value) { m_softIRQHasBeenSet = true; m_softIRQ = value; } /** *

Available on Linux environments only.

Percentage of time that the CPU * has spent in the SoftIRQ state over the last 10 seconds.

*/ inline CPUUtilization& WithSoftIRQ(double value) { SetSoftIRQ(value); return *this;} /** *

Available on Windows environments only.

Percentage of time that the * CPU has spent in the Privileged state over the last 10 seconds.

*/ inline double GetPrivileged() const{ return m_privileged; } /** *

Available on Windows environments only.

Percentage of time that the * CPU has spent in the Privileged state over the last 10 seconds.

*/ inline bool PrivilegedHasBeenSet() const { return m_privilegedHasBeenSet; } /** *

Available on Windows environments only.

Percentage of time that the * CPU has spent in the Privileged state over the last 10 seconds.

*/ inline void SetPrivileged(double value) { m_privilegedHasBeenSet = true; m_privileged = value; } /** *

Available on Windows environments only.

Percentage of time that the * CPU has spent in the Privileged state over the last 10 seconds.

*/ inline CPUUtilization& WithPrivileged(double value) { SetPrivileged(value); return *this;} private: double m_user; bool m_userHasBeenSet = false; double m_nice; bool m_niceHasBeenSet = false; double m_system; bool m_systemHasBeenSet = false; double m_idle; bool m_idleHasBeenSet = false; double m_iOWait; bool m_iOWaitHasBeenSet = false; double m_iRQ; bool m_iRQHasBeenSet = false; double m_softIRQ; bool m_softIRQHasBeenSet = false; double m_privileged; bool m_privilegedHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws