MetricsEventBuilder builds a new metrics event and adds metrics attributes to it.
More...
#include <MetricsEventBuilder.h>
MetricsEventBuilder builds a new metrics event and adds metrics attributes to it.
◆ AddDefaultMetricsAttributes()
virtual MetricsEventBuilder & AWSMetrics::MetricsEventBuilder::AddDefaultMetricsAttributes |
( |
const AZStd::string & |
clientId, |
|
|
const AZStd::string & |
metricSourceOverride = "" |
|
) |
| |
|
virtual |
Add default attributes to the metrics event including event_id, source and timestamp.
- Parameters
-
clientId | Unique identifier for the client. |
metricSourceOverride | Event source used to override the default value. |
- Returns
- The builder itself.
◆ AddMetricsAttributes()
Add attributes to the metrics event.
- Parameters
-
attributes | List of attributes to add to the metrics event. |
- Returns
- The builder itself.
◆ Build()
Build a metrics event. Make sure that this function is only called once for each builder instance. Otherwise it will a new metrics event.
- Returns
- Metrics event constructed by the builder.
◆ SetMetricsPriority()
Set the priority of the metrics event.
- Parameters
-
priority | Priority of the metrics event. |
- Returns
- The builder itself.
The documentation for this class was generated from the following file:
- Gems/AWSMetrics/Code/Source/MetricsEventBuilder.h