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

Represents enhanced metrics types.

See Also:

AWS * API Reference

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

List of shard-level metrics.

The following are the valid shard-level * metrics. The value "ALL" enhances every metric.

  • * IncomingBytes

  • IncomingRecords

    *
  • OutgoingBytes

  • * OutgoingRecords

  • * WriteProvisionedThroughputExceeded

  • * ReadProvisionedThroughputExceeded

  • * IteratorAgeMilliseconds

  • ALL

    *

For more information, see Monitoring * the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the * Amazon Kinesis Data Streams Developer Guide.

*/ inline const Aws::Vector& GetShardLevelMetrics() const{ return m_shardLevelMetrics; } /** *

List of shard-level metrics.

The following are the valid shard-level * metrics. The value "ALL" enhances every metric.

  • * IncomingBytes

  • IncomingRecords

    *
  • OutgoingBytes

  • * OutgoingRecords

  • * WriteProvisionedThroughputExceeded

  • * ReadProvisionedThroughputExceeded

  • * IteratorAgeMilliseconds

  • ALL

    *

For more information, see Monitoring * the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the * Amazon Kinesis Data Streams Developer Guide.

*/ inline bool ShardLevelMetricsHasBeenSet() const { return m_shardLevelMetricsHasBeenSet; } /** *

List of shard-level metrics.

The following are the valid shard-level * metrics. The value "ALL" enhances every metric.

  • * IncomingBytes

  • IncomingRecords

    *
  • OutgoingBytes

  • * OutgoingRecords

  • * WriteProvisionedThroughputExceeded

  • * ReadProvisionedThroughputExceeded

  • * IteratorAgeMilliseconds

  • ALL

    *

For more information, see Monitoring * the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the * Amazon Kinesis Data Streams Developer Guide.

*/ inline void SetShardLevelMetrics(const Aws::Vector& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics = value; } /** *

List of shard-level metrics.

The following are the valid shard-level * metrics. The value "ALL" enhances every metric.

  • * IncomingBytes

  • IncomingRecords

    *
  • OutgoingBytes

  • * OutgoingRecords

  • * WriteProvisionedThroughputExceeded

  • * ReadProvisionedThroughputExceeded

  • * IteratorAgeMilliseconds

  • ALL

    *

For more information, see Monitoring * the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the * Amazon Kinesis Data Streams Developer Guide.

*/ inline void SetShardLevelMetrics(Aws::Vector&& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics = std::move(value); } /** *

List of shard-level metrics.

The following are the valid shard-level * metrics. The value "ALL" enhances every metric.

  • * IncomingBytes

  • IncomingRecords

    *
  • OutgoingBytes

  • * OutgoingRecords

  • * WriteProvisionedThroughputExceeded

  • * ReadProvisionedThroughputExceeded

  • * IteratorAgeMilliseconds

  • ALL

    *

For more information, see Monitoring * the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the * Amazon Kinesis Data Streams Developer Guide.

*/ inline EnhancedMetrics& WithShardLevelMetrics(const Aws::Vector& value) { SetShardLevelMetrics(value); return *this;} /** *

List of shard-level metrics.

The following are the valid shard-level * metrics. The value "ALL" enhances every metric.

  • * IncomingBytes

  • IncomingRecords

    *
  • OutgoingBytes

  • * OutgoingRecords

  • * WriteProvisionedThroughputExceeded

  • * ReadProvisionedThroughputExceeded

  • * IteratorAgeMilliseconds

  • ALL

    *

For more information, see Monitoring * the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the * Amazon Kinesis Data Streams Developer Guide.

*/ inline EnhancedMetrics& WithShardLevelMetrics(Aws::Vector&& value) { SetShardLevelMetrics(std::move(value)); return *this;} /** *

List of shard-level metrics.

The following are the valid shard-level * metrics. The value "ALL" enhances every metric.

  • * IncomingBytes

  • IncomingRecords

    *
  • OutgoingBytes

  • * OutgoingRecords

  • * WriteProvisionedThroughputExceeded

  • * ReadProvisionedThroughputExceeded

  • * IteratorAgeMilliseconds

  • ALL

    *

For more information, see Monitoring * the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the * Amazon Kinesis Data Streams Developer Guide.

*/ inline EnhancedMetrics& AddShardLevelMetrics(const MetricsName& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics.push_back(value); return *this; } /** *

List of shard-level metrics.

The following are the valid shard-level * metrics. The value "ALL" enhances every metric.

  • * IncomingBytes

  • IncomingRecords

    *
  • OutgoingBytes

  • * OutgoingRecords

  • * WriteProvisionedThroughputExceeded

  • * ReadProvisionedThroughputExceeded

  • * IteratorAgeMilliseconds

  • ALL

    *

For more information, see Monitoring * the Amazon Kinesis Data Streams Service with Amazon CloudWatch in the * Amazon Kinesis Data Streams Developer Guide.

*/ inline EnhancedMetrics& AddShardLevelMetrics(MetricsName&& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics.push_back(std::move(value)); return *this; } private: Aws::Vector m_shardLevelMetrics; bool m_shardLevelMetricsHasBeenSet; }; } // namespace Model } // namespace Kinesis } // namespace Aws