Navigation
API > API/Runtime > API/Runtime/Engine
Metrics mutator that accumulates an average of a metric.
| Name | FNetworkMetricsMutatorAvg |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Net/NetworkMetricsMutators.h |
| Include Path | #include "Net/NetworkMetricsMutators.h" |
Syntax
USTRUCT ()
struct FNetworkMetricsMutatorAvg : public FNetworkMetricsMutator
Inheritance Hierarchy
- FNetworkMetricsMutator → FNetworkMetricsMutatorAvg
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FloatTotal | float | Net/NetworkMetricsMutators.h | ||
| IntTotal | int64 | Net/NetworkMetricsMutators.h | ||
| MetricName | FName | The network metric to average. | Net/NetworkMetricsMutators.h |
|
| MutatorName | FName | The default name of this mutator, derived from MetricName | Net/NetworkMetricsMutators.h | |
| NumSamples | uint32 | Net/NetworkMetricsMutators.h |
Functions
Public
Overridden from FNetworkMetricsMutator
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TArrayView< const FName > GetAllMetricNames() |
Returns a list of all metrics used by this mutator. | Net/NetworkMetricsMutators.h | |
virtual FValueVariant GetValue() |
Returns this mutator's current computed value | Net/NetworkMetricsMutators.h | |
virtual void ProcessFrame
(
const UE::Net::FNetworkMetricSnapshot& Snapshot |
Called every frame with a snapshot containing this mutator's metrics. | Net/NetworkMetricsMutators.h | |
virtual void Reset() |
Clears internal data, typically used after a listener reports its metrics. | Net/NetworkMetricsMutators.h |