Open 3D Engine AWSMetrics Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AWSMetrics::AWSMetricsRequests Class Reference

AWSMetrics request interface. More...

#include <AWSMetricsBus.h>

Inherits AZ::EBusTraits.

Public Types

using MutexType = AZStd::recursive_mutex
 

Public Member Functions

virtual bool SubmitMetrics (const AZStd::vector< MetricsAttribute > &metricsAttributes, int eventPriority=0, const AZStd::string &eventSourceOverride="", bool bufferMetrics=true)
 
virtual void FlushMetrics ()
 Flush all metrics buffered in memory.
 

Static Public Attributes

static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single
 
static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single
 

Detailed Description

AWSMetrics request interface.

Member Function Documentation

◆ SubmitMetrics()

virtual bool AWSMetrics::AWSMetricsRequests::SubmitMetrics ( const AZStd::vector< MetricsAttribute > &  metricsAttributes,
int  eventPriority = 0,
const AZStd::string &  eventSourceOverride = "",
bool  bufferMetrics = true 
)
inlinevirtual

Submit metrics to the backend or a local file.

Parameters
eventNameName of the metrics event.
metricsAttributesAttributes of the metrics.
eventPriorityPriority of the event. Default to 0 which is considered as the highest priority.
eventSourceOverrideEvent source used to override the default value.
bufferMetricsWhether to buffer metrics and send them in batch.
Returns
Whether the request is sent successfully.

The documentation for this class was generated from the following file: