149 lines
4.0 KiB
C++
149 lines
4.0 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/sagemaker/SageMaker_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace SageMaker
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>The name, value, and date and time of a metric that was emitted to Amazon
|
|
* CloudWatch.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/MetricData">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_SAGEMAKER_API MetricData
|
|
{
|
|
public:
|
|
MetricData();
|
|
MetricData(Aws::Utils::Json::JsonView jsonValue);
|
|
MetricData& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The name of the metric.</p>
|
|
*/
|
|
inline const Aws::String& GetMetricName() const{ return m_metricName; }
|
|
|
|
/**
|
|
* <p>The name of the metric.</p>
|
|
*/
|
|
inline bool MetricNameHasBeenSet() const { return m_metricNameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of the metric.</p>
|
|
*/
|
|
inline void SetMetricName(const Aws::String& value) { m_metricNameHasBeenSet = true; m_metricName = value; }
|
|
|
|
/**
|
|
* <p>The name of the metric.</p>
|
|
*/
|
|
inline void SetMetricName(Aws::String&& value) { m_metricNameHasBeenSet = true; m_metricName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the metric.</p>
|
|
*/
|
|
inline void SetMetricName(const char* value) { m_metricNameHasBeenSet = true; m_metricName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the metric.</p>
|
|
*/
|
|
inline MetricData& WithMetricName(const Aws::String& value) { SetMetricName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the metric.</p>
|
|
*/
|
|
inline MetricData& WithMetricName(Aws::String&& value) { SetMetricName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the metric.</p>
|
|
*/
|
|
inline MetricData& WithMetricName(const char* value) { SetMetricName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The value of the metric.</p>
|
|
*/
|
|
inline double GetValue() const{ return m_value; }
|
|
|
|
/**
|
|
* <p>The value of the metric.</p>
|
|
*/
|
|
inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The value of the metric.</p>
|
|
*/
|
|
inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
|
|
|
|
/**
|
|
* <p>The value of the metric.</p>
|
|
*/
|
|
inline MetricData& WithValue(double value) { SetValue(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The date and time that the algorithm emitted the metric.</p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
|
|
|
|
/**
|
|
* <p>The date and time that the algorithm emitted the metric.</p>
|
|
*/
|
|
inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The date and time that the algorithm emitted the metric.</p>
|
|
*/
|
|
inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
|
|
|
|
/**
|
|
* <p>The date and time that the algorithm emitted the metric.</p>
|
|
*/
|
|
inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
|
|
|
|
/**
|
|
* <p>The date and time that the algorithm emitted the metric.</p>
|
|
*/
|
|
inline MetricData& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
|
|
|
|
/**
|
|
* <p>The date and time that the algorithm emitted the metric.</p>
|
|
*/
|
|
inline MetricData& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_metricName;
|
|
bool m_metricNameHasBeenSet;
|
|
|
|
double m_value;
|
|
bool m_valueHasBeenSet;
|
|
|
|
Aws::Utils::DateTime m_timestamp;
|
|
bool m_timestampHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace SageMaker
|
|
} // namespace Aws
|