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

Statistics for a single scheduled query run.

See Also:

AWS * API Reference

*/ class ExecutionStats { public: AWS_TIMESTREAMQUERY_API ExecutionStats(); AWS_TIMESTREAMQUERY_API ExecutionStats(Aws::Utils::Json::JsonView jsonValue); AWS_TIMESTREAMQUERY_API ExecutionStats& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_TIMESTREAMQUERY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Total time, measured in milliseconds, that was needed for the scheduled query * run to complete.

*/ inline long long GetExecutionTimeInMillis() const{ return m_executionTimeInMillis; } /** *

Total time, measured in milliseconds, that was needed for the scheduled query * run to complete.

*/ inline bool ExecutionTimeInMillisHasBeenSet() const { return m_executionTimeInMillisHasBeenSet; } /** *

Total time, measured in milliseconds, that was needed for the scheduled query * run to complete.

*/ inline void SetExecutionTimeInMillis(long long value) { m_executionTimeInMillisHasBeenSet = true; m_executionTimeInMillis = value; } /** *

Total time, measured in milliseconds, that was needed for the scheduled query * run to complete.

*/ inline ExecutionStats& WithExecutionTimeInMillis(long long value) { SetExecutionTimeInMillis(value); return *this;} /** *

Data writes metered for records ingested in a single scheduled query run.

*/ inline long long GetDataWrites() const{ return m_dataWrites; } /** *

Data writes metered for records ingested in a single scheduled query run.

*/ inline bool DataWritesHasBeenSet() const { return m_dataWritesHasBeenSet; } /** *

Data writes metered for records ingested in a single scheduled query run.

*/ inline void SetDataWrites(long long value) { m_dataWritesHasBeenSet = true; m_dataWrites = value; } /** *

Data writes metered for records ingested in a single scheduled query run.

*/ inline ExecutionStats& WithDataWrites(long long value) { SetDataWrites(value); return *this;} /** *

Bytes metered for a single scheduled query run.

*/ inline long long GetBytesMetered() const{ return m_bytesMetered; } /** *

Bytes metered for a single scheduled query run.

*/ inline bool BytesMeteredHasBeenSet() const { return m_bytesMeteredHasBeenSet; } /** *

Bytes metered for a single scheduled query run.

*/ inline void SetBytesMetered(long long value) { m_bytesMeteredHasBeenSet = true; m_bytesMetered = value; } /** *

Bytes metered for a single scheduled query run.

*/ inline ExecutionStats& WithBytesMetered(long long value) { SetBytesMetered(value); return *this;} /** *

The number of records ingested for a single scheduled query run.

*/ inline long long GetRecordsIngested() const{ return m_recordsIngested; } /** *

The number of records ingested for a single scheduled query run.

*/ inline bool RecordsIngestedHasBeenSet() const { return m_recordsIngestedHasBeenSet; } /** *

The number of records ingested for a single scheduled query run.

*/ inline void SetRecordsIngested(long long value) { m_recordsIngestedHasBeenSet = true; m_recordsIngested = value; } /** *

The number of records ingested for a single scheduled query run.

*/ inline ExecutionStats& WithRecordsIngested(long long value) { SetRecordsIngested(value); return *this;} /** *

Number of rows present in the output from running a query before ingestion to * destination data source.

*/ inline long long GetQueryResultRows() const{ return m_queryResultRows; } /** *

Number of rows present in the output from running a query before ingestion to * destination data source.

*/ inline bool QueryResultRowsHasBeenSet() const { return m_queryResultRowsHasBeenSet; } /** *

Number of rows present in the output from running a query before ingestion to * destination data source.

*/ inline void SetQueryResultRows(long long value) { m_queryResultRowsHasBeenSet = true; m_queryResultRows = value; } /** *

Number of rows present in the output from running a query before ingestion to * destination data source.

*/ inline ExecutionStats& WithQueryResultRows(long long value) { SetQueryResultRows(value); return *this;} private: long long m_executionTimeInMillis; bool m_executionTimeInMillisHasBeenSet = false; long long m_dataWrites; bool m_dataWritesHasBeenSet = false; long long m_bytesMetered; bool m_bytesMeteredHasBeenSet = false; long long m_recordsIngested; bool m_recordsIngestedHasBeenSet = false; long long m_queryResultRows; bool m_queryResultRowsHasBeenSet = false; }; } // namespace Model } // namespace TimestreamQuery } // namespace Aws