/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A structure that displays the definition of one extended metric that RUM
* sends to CloudWatch or CloudWatch Evidently. For more information, see
* Additional metrics that you can send to CloudWatch and CloudWatch
* Evidently.See Also:
AWS
* API Reference
This field is a map of field paths to dimension names. It defines the
* dimensions to associate with this metric in CloudWatch The value of this field
* is used only if the metric destination is CloudWatch
. If the metric
* destination is Evidently
, the value of DimensionKeys
* is ignored.
This field is a map of field paths to dimension names. It defines the
* dimensions to associate with this metric in CloudWatch The value of this field
* is used only if the metric destination is CloudWatch
. If the metric
* destination is Evidently
, the value of DimensionKeys
* is ignored.
This field is a map of field paths to dimension names. It defines the
* dimensions to associate with this metric in CloudWatch The value of this field
* is used only if the metric destination is CloudWatch
. If the metric
* destination is Evidently
, the value of DimensionKeys
* is ignored.
This field is a map of field paths to dimension names. It defines the
* dimensions to associate with this metric in CloudWatch The value of this field
* is used only if the metric destination is CloudWatch
. If the metric
* destination is Evidently
, the value of DimensionKeys
* is ignored.
This field is a map of field paths to dimension names. It defines the
* dimensions to associate with this metric in CloudWatch The value of this field
* is used only if the metric destination is CloudWatch
. If the metric
* destination is Evidently
, the value of DimensionKeys
* is ignored.
This field is a map of field paths to dimension names. It defines the
* dimensions to associate with this metric in CloudWatch The value of this field
* is used only if the metric destination is CloudWatch
. If the metric
* destination is Evidently
, the value of DimensionKeys
* is ignored.
This field is a map of field paths to dimension names. It defines the
* dimensions to associate with this metric in CloudWatch The value of this field
* is used only if the metric destination is CloudWatch
. If the metric
* destination is Evidently
, the value of DimensionKeys
* is ignored.
This field is a map of field paths to dimension names. It defines the
* dimensions to associate with this metric in CloudWatch The value of this field
* is used only if the metric destination is CloudWatch
. If the metric
* destination is Evidently
, the value of DimensionKeys
* is ignored.
This field is a map of field paths to dimension names. It defines the
* dimensions to associate with this metric in CloudWatch The value of this field
* is used only if the metric destination is CloudWatch
. If the metric
* destination is Evidently
, the value of DimensionKeys
* is ignored.
This field is a map of field paths to dimension names. It defines the
* dimensions to associate with this metric in CloudWatch The value of this field
* is used only if the metric destination is CloudWatch
. If the metric
* destination is Evidently
, the value of DimensionKeys
* is ignored.
This field is a map of field paths to dimension names. It defines the
* dimensions to associate with this metric in CloudWatch The value of this field
* is used only if the metric destination is CloudWatch
. If the metric
* destination is Evidently
, the value of DimensionKeys
* is ignored.
This field is a map of field paths to dimension names. It defines the
* dimensions to associate with this metric in CloudWatch The value of this field
* is used only if the metric destination is CloudWatch
. If the metric
* destination is Evidently
, the value of DimensionKeys
* is ignored.
This field is a map of field paths to dimension names. It defines the
* dimensions to associate with this metric in CloudWatch The value of this field
* is used only if the metric destination is CloudWatch
. If the metric
* destination is Evidently
, the value of DimensionKeys
* is ignored.
The pattern that defines the metric. RUM checks events that happen in a * user's session against the pattern, and events that match the pattern are sent * to the metric destination.
If the metrics destination is
* CloudWatch
and the event also matches a value in
* DimensionKeys
, then the metric is published with the specified
* dimensions.
The pattern that defines the metric. RUM checks events that happen in a * user's session against the pattern, and events that match the pattern are sent * to the metric destination.
If the metrics destination is
* CloudWatch
and the event also matches a value in
* DimensionKeys
, then the metric is published with the specified
* dimensions.
The pattern that defines the metric. RUM checks events that happen in a * user's session against the pattern, and events that match the pattern are sent * to the metric destination.
If the metrics destination is
* CloudWatch
and the event also matches a value in
* DimensionKeys
, then the metric is published with the specified
* dimensions.
The pattern that defines the metric. RUM checks events that happen in a * user's session against the pattern, and events that match the pattern are sent * to the metric destination.
If the metrics destination is
* CloudWatch
and the event also matches a value in
* DimensionKeys
, then the metric is published with the specified
* dimensions.
The pattern that defines the metric. RUM checks events that happen in a * user's session against the pattern, and events that match the pattern are sent * to the metric destination.
If the metrics destination is
* CloudWatch
and the event also matches a value in
* DimensionKeys
, then the metric is published with the specified
* dimensions.
The pattern that defines the metric. RUM checks events that happen in a * user's session against the pattern, and events that match the pattern are sent * to the metric destination.
If the metrics destination is
* CloudWatch
and the event also matches a value in
* DimensionKeys
, then the metric is published with the specified
* dimensions.
The pattern that defines the metric. RUM checks events that happen in a * user's session against the pattern, and events that match the pattern are sent * to the metric destination.
If the metrics destination is
* CloudWatch
and the event also matches a value in
* DimensionKeys
, then the metric is published with the specified
* dimensions.
The pattern that defines the metric. RUM checks events that happen in a * user's session against the pattern, and events that match the pattern are sent * to the metric destination.
If the metrics destination is
* CloudWatch
and the event also matches a value in
* DimensionKeys
, then the metric is published with the specified
* dimensions.
The ID of this metric definition.
*/ inline const Aws::String& GetMetricDefinitionId() const{ return m_metricDefinitionId; } /** *The ID of this metric definition.
*/ inline bool MetricDefinitionIdHasBeenSet() const { return m_metricDefinitionIdHasBeenSet; } /** *The ID of this metric definition.
*/ inline void SetMetricDefinitionId(const Aws::String& value) { m_metricDefinitionIdHasBeenSet = true; m_metricDefinitionId = value; } /** *The ID of this metric definition.
*/ inline void SetMetricDefinitionId(Aws::String&& value) { m_metricDefinitionIdHasBeenSet = true; m_metricDefinitionId = std::move(value); } /** *The ID of this metric definition.
*/ inline void SetMetricDefinitionId(const char* value) { m_metricDefinitionIdHasBeenSet = true; m_metricDefinitionId.assign(value); } /** *The ID of this metric definition.
*/ inline MetricDefinition& WithMetricDefinitionId(const Aws::String& value) { SetMetricDefinitionId(value); return *this;} /** *The ID of this metric definition.
*/ inline MetricDefinition& WithMetricDefinitionId(Aws::String&& value) { SetMetricDefinitionId(std::move(value)); return *this;} /** *The ID of this metric definition.
*/ inline MetricDefinition& WithMetricDefinitionId(const char* value) { SetMetricDefinitionId(value); return *this;} /** *The name of the metric that is defined in this structure.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the metric that is defined in this structure.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the metric that is defined in this structure.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the metric that is defined in this structure.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the metric that is defined in this structure.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the metric that is defined in this structure.
*/ inline MetricDefinition& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the metric that is defined in this structure.
*/ inline MetricDefinition& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the metric that is defined in this structure.
*/ inline MetricDefinition& WithName(const char* value) { SetName(value); return *this;} /** *If this metric definition is for a custom metric instead of an extended * metric, this field displays the metric namespace that the custom metric is * published to.
*/ inline const Aws::String& GetNamespace() const{ return m_namespace; } /** *If this metric definition is for a custom metric instead of an extended * metric, this field displays the metric namespace that the custom metric is * published to.
*/ inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } /** *If this metric definition is for a custom metric instead of an extended * metric, this field displays the metric namespace that the custom metric is * published to.
*/ inline void SetNamespace(const Aws::String& value) { m_namespaceHasBeenSet = true; m_namespace = value; } /** *If this metric definition is for a custom metric instead of an extended * metric, this field displays the metric namespace that the custom metric is * published to.
*/ inline void SetNamespace(Aws::String&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } /** *If this metric definition is for a custom metric instead of an extended * metric, this field displays the metric namespace that the custom metric is * published to.
*/ inline void SetNamespace(const char* value) { m_namespaceHasBeenSet = true; m_namespace.assign(value); } /** *If this metric definition is for a custom metric instead of an extended * metric, this field displays the metric namespace that the custom metric is * published to.
*/ inline MetricDefinition& WithNamespace(const Aws::String& value) { SetNamespace(value); return *this;} /** *If this metric definition is for a custom metric instead of an extended * metric, this field displays the metric namespace that the custom metric is * published to.
*/ inline MetricDefinition& WithNamespace(Aws::String&& value) { SetNamespace(std::move(value)); return *this;} /** *If this metric definition is for a custom metric instead of an extended * metric, this field displays the metric namespace that the custom metric is * published to.
*/ inline MetricDefinition& WithNamespace(const char* value) { SetNamespace(value); return *this;} /** *Use this field only if you are sending this metric to CloudWatch. It defines * the CloudWatch metric unit that this metric is measured in.
*/ inline const Aws::String& GetUnitLabel() const{ return m_unitLabel; } /** *Use this field only if you are sending this metric to CloudWatch. It defines * the CloudWatch metric unit that this metric is measured in.
*/ inline bool UnitLabelHasBeenSet() const { return m_unitLabelHasBeenSet; } /** *Use this field only if you are sending this metric to CloudWatch. It defines * the CloudWatch metric unit that this metric is measured in.
*/ inline void SetUnitLabel(const Aws::String& value) { m_unitLabelHasBeenSet = true; m_unitLabel = value; } /** *Use this field only if you are sending this metric to CloudWatch. It defines * the CloudWatch metric unit that this metric is measured in.
*/ inline void SetUnitLabel(Aws::String&& value) { m_unitLabelHasBeenSet = true; m_unitLabel = std::move(value); } /** *Use this field only if you are sending this metric to CloudWatch. It defines * the CloudWatch metric unit that this metric is measured in.
*/ inline void SetUnitLabel(const char* value) { m_unitLabelHasBeenSet = true; m_unitLabel.assign(value); } /** *Use this field only if you are sending this metric to CloudWatch. It defines * the CloudWatch metric unit that this metric is measured in.
*/ inline MetricDefinition& WithUnitLabel(const Aws::String& value) { SetUnitLabel(value); return *this;} /** *Use this field only if you are sending this metric to CloudWatch. It defines * the CloudWatch metric unit that this metric is measured in.
*/ inline MetricDefinition& WithUnitLabel(Aws::String&& value) { SetUnitLabel(std::move(value)); return *this;} /** *Use this field only if you are sending this metric to CloudWatch. It defines * the CloudWatch metric unit that this metric is measured in.
*/ inline MetricDefinition& WithUnitLabel(const char* value) { SetUnitLabel(value); return *this;} /** *The field within the event object that the metric value is sourced from.
*/ inline const Aws::String& GetValueKey() const{ return m_valueKey; } /** *The field within the event object that the metric value is sourced from.
*/ inline bool ValueKeyHasBeenSet() const { return m_valueKeyHasBeenSet; } /** *The field within the event object that the metric value is sourced from.
*/ inline void SetValueKey(const Aws::String& value) { m_valueKeyHasBeenSet = true; m_valueKey = value; } /** *The field within the event object that the metric value is sourced from.
*/ inline void SetValueKey(Aws::String&& value) { m_valueKeyHasBeenSet = true; m_valueKey = std::move(value); } /** *The field within the event object that the metric value is sourced from.
*/ inline void SetValueKey(const char* value) { m_valueKeyHasBeenSet = true; m_valueKey.assign(value); } /** *The field within the event object that the metric value is sourced from.
*/ inline MetricDefinition& WithValueKey(const Aws::String& value) { SetValueKey(value); return *this;} /** *The field within the event object that the metric value is sourced from.
*/ inline MetricDefinition& WithValueKey(Aws::String&& value) { SetValueKey(std::move(value)); return *this;} /** *The field within the event object that the metric value is sourced from.
*/ inline MetricDefinition& WithValueKey(const char* value) { SetValueKey(value); return *this;} private: Aws::Map