210 lines
7.8 KiB
C++
210 lines
7.8 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/codeguruprofiler/model/MetricType.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace CodeGuruProfiler
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p> The frame name, metric type, and thread states. These are used to derive the
|
|
* value of the metric for the frame.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/FrameMetric">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_CODEGURUPROFILER_API FrameMetric
|
|
{
|
|
public:
|
|
FrameMetric();
|
|
FrameMetric(Aws::Utils::Json::JsonView jsonValue);
|
|
FrameMetric& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p> Name of the method common across the multiple occurrences of a frame in an
|
|
* application profile.</p>
|
|
*/
|
|
inline const Aws::String& GetFrameName() const{ return m_frameName; }
|
|
|
|
/**
|
|
* <p> Name of the method common across the multiple occurrences of a frame in an
|
|
* application profile.</p>
|
|
*/
|
|
inline bool FrameNameHasBeenSet() const { return m_frameNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Name of the method common across the multiple occurrences of a frame in an
|
|
* application profile.</p>
|
|
*/
|
|
inline void SetFrameName(const Aws::String& value) { m_frameNameHasBeenSet = true; m_frameName = value; }
|
|
|
|
/**
|
|
* <p> Name of the method common across the multiple occurrences of a frame in an
|
|
* application profile.</p>
|
|
*/
|
|
inline void SetFrameName(Aws::String&& value) { m_frameNameHasBeenSet = true; m_frameName = std::move(value); }
|
|
|
|
/**
|
|
* <p> Name of the method common across the multiple occurrences of a frame in an
|
|
* application profile.</p>
|
|
*/
|
|
inline void SetFrameName(const char* value) { m_frameNameHasBeenSet = true; m_frameName.assign(value); }
|
|
|
|
/**
|
|
* <p> Name of the method common across the multiple occurrences of a frame in an
|
|
* application profile.</p>
|
|
*/
|
|
inline FrameMetric& WithFrameName(const Aws::String& value) { SetFrameName(value); return *this;}
|
|
|
|
/**
|
|
* <p> Name of the method common across the multiple occurrences of a frame in an
|
|
* application profile.</p>
|
|
*/
|
|
inline FrameMetric& WithFrameName(Aws::String&& value) { SetFrameName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> Name of the method common across the multiple occurrences of a frame in an
|
|
* application profile.</p>
|
|
*/
|
|
inline FrameMetric& WithFrameName(const char* value) { SetFrameName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>List of application runtime thread states used to get the counts for a frame
|
|
* a derive a metric value.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetThreadStates() const{ return m_threadStates; }
|
|
|
|
/**
|
|
* <p>List of application runtime thread states used to get the counts for a frame
|
|
* a derive a metric value.</p>
|
|
*/
|
|
inline bool ThreadStatesHasBeenSet() const { return m_threadStatesHasBeenSet; }
|
|
|
|
/**
|
|
* <p>List of application runtime thread states used to get the counts for a frame
|
|
* a derive a metric value.</p>
|
|
*/
|
|
inline void SetThreadStates(const Aws::Vector<Aws::String>& value) { m_threadStatesHasBeenSet = true; m_threadStates = value; }
|
|
|
|
/**
|
|
* <p>List of application runtime thread states used to get the counts for a frame
|
|
* a derive a metric value.</p>
|
|
*/
|
|
inline void SetThreadStates(Aws::Vector<Aws::String>&& value) { m_threadStatesHasBeenSet = true; m_threadStates = std::move(value); }
|
|
|
|
/**
|
|
* <p>List of application runtime thread states used to get the counts for a frame
|
|
* a derive a metric value.</p>
|
|
*/
|
|
inline FrameMetric& WithThreadStates(const Aws::Vector<Aws::String>& value) { SetThreadStates(value); return *this;}
|
|
|
|
/**
|
|
* <p>List of application runtime thread states used to get the counts for a frame
|
|
* a derive a metric value.</p>
|
|
*/
|
|
inline FrameMetric& WithThreadStates(Aws::Vector<Aws::String>&& value) { SetThreadStates(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>List of application runtime thread states used to get the counts for a frame
|
|
* a derive a metric value.</p>
|
|
*/
|
|
inline FrameMetric& AddThreadStates(const Aws::String& value) { m_threadStatesHasBeenSet = true; m_threadStates.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>List of application runtime thread states used to get the counts for a frame
|
|
* a derive a metric value.</p>
|
|
*/
|
|
inline FrameMetric& AddThreadStates(Aws::String&& value) { m_threadStatesHasBeenSet = true; m_threadStates.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>List of application runtime thread states used to get the counts for a frame
|
|
* a derive a metric value.</p>
|
|
*/
|
|
inline FrameMetric& AddThreadStates(const char* value) { m_threadStatesHasBeenSet = true; m_threadStates.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p> A type of aggregation that specifies how a metric for a frame is analyzed.
|
|
* The supported value <code>AggregatedRelativeTotalTime</code> is an aggregation
|
|
* of the metric value for one frame that is calculated across the occurrences of
|
|
* all frames in a profile. </p>
|
|
*/
|
|
inline const MetricType& GetType() const{ return m_type; }
|
|
|
|
/**
|
|
* <p> A type of aggregation that specifies how a metric for a frame is analyzed.
|
|
* The supported value <code>AggregatedRelativeTotalTime</code> is an aggregation
|
|
* of the metric value for one frame that is calculated across the occurrences of
|
|
* all frames in a profile. </p>
|
|
*/
|
|
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
|
|
|
/**
|
|
* <p> A type of aggregation that specifies how a metric for a frame is analyzed.
|
|
* The supported value <code>AggregatedRelativeTotalTime</code> is an aggregation
|
|
* of the metric value for one frame that is calculated across the occurrences of
|
|
* all frames in a profile. </p>
|
|
*/
|
|
inline void SetType(const MetricType& value) { m_typeHasBeenSet = true; m_type = value; }
|
|
|
|
/**
|
|
* <p> A type of aggregation that specifies how a metric for a frame is analyzed.
|
|
* The supported value <code>AggregatedRelativeTotalTime</code> is an aggregation
|
|
* of the metric value for one frame that is calculated across the occurrences of
|
|
* all frames in a profile. </p>
|
|
*/
|
|
inline void SetType(MetricType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
|
|
|
/**
|
|
* <p> A type of aggregation that specifies how a metric for a frame is analyzed.
|
|
* The supported value <code>AggregatedRelativeTotalTime</code> is an aggregation
|
|
* of the metric value for one frame that is calculated across the occurrences of
|
|
* all frames in a profile. </p>
|
|
*/
|
|
inline FrameMetric& WithType(const MetricType& value) { SetType(value); return *this;}
|
|
|
|
/**
|
|
* <p> A type of aggregation that specifies how a metric for a frame is analyzed.
|
|
* The supported value <code>AggregatedRelativeTotalTime</code> is an aggregation
|
|
* of the metric value for one frame that is calculated across the occurrences of
|
|
* all frames in a profile. </p>
|
|
*/
|
|
inline FrameMetric& WithType(MetricType&& value) { SetType(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_frameName;
|
|
bool m_frameNameHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_threadStates;
|
|
bool m_threadStatesHasBeenSet;
|
|
|
|
MetricType m_type;
|
|
bool m_typeHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace CodeGuruProfiler
|
|
} // namespace Aws
|