Navigation
API > API/Runtime > API/Runtime/Engine
A metrics listener that reports a metric to a single Stat.
The function SetStatName() is expected to be called before the listener is registered with FNetworkMetricsDatabase::Register(). This function will associate the instance of UNetworkMetricStats with a specific Stat.
Since each instance of this class is associated with a single Stat it can only be registered as a listener to a single metric in FNetworkMetricsDatabase.
UNetworkMetricsStats is not intended to be used from configuration files!
| Name | UNetworkMetricsStats |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Net/NetworkMetricsDatabase.h |
| Include Path | #include "Net/NetworkMetricsDatabase.h" |
Syntax
UCLASS (MinimalAPI)
class UNetworkMetricsStats : public UNetworkMetricsBaseListener
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UNetworkMetricsBaseListener → UNetworkMetricsStats
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UNetworkMetricsStats() |
Net/NetworkMetricsDatabase.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~UNetworkMetricsStats() |
Net/NetworkMetricsDatabase.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| StatName | FName | Net/NetworkMetricsDatabase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetStatName
(
const FName Name |
Set the name of the pre-defined Stat (normally defined with DEFINE_STAT()). | Net/NetworkMetricsDatabase.h |
Overridden from UNetworkMetricsBaseListener
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Report
(
const UE::Net::FNetworkMetricSnapshot& Snapshot |
Net/NetworkMetricsDatabase.h |