You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
* Uses method of exposing a delegate for telemetry events to be registered by a StudioAnalytic provider implementation to avoid embedding schema in the engine * Generic templates for RAII scoped timed telemetry events added to aid in generating timed events #jira UE-155132 #rb Brooke.Hubert Wes.Hunt Ronald.Koppers #preflight 645022cdee56ca4c247ef92a [CL 25291458 by logan buchy in ue5-main branch]
31 lines
780 B
C++
31 lines
780 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include <variant>
|
|
|
|
#include "AnalyticsTimedTelemetryEvents.h"
|
|
#include "Delegates/Delegate.h"
|
|
|
|
/**
|
|
* Events that the CollectionManager emits for telemetry tracking purposes
|
|
*/
|
|
namespace UE::CollectionManager::Analytics
|
|
{
|
|
/**
|
|
* StatusCode bitfield positions
|
|
*/
|
|
struct StatusCodeFields
|
|
{
|
|
// Operation uses Source control
|
|
static constexpr uint64 UsesSCC = 1llu << 62;
|
|
// Operation was successful
|
|
static constexpr uint64 Success = 1llu << 63;
|
|
};
|
|
struct FAddObjects : UE::Analytics::FTimedTelemetryEvent {};
|
|
struct FRemoveObjects : UE::Analytics::FTimedTelemetryEvent {};
|
|
|
|
using FEvent = std::variant<FAddObjects, FRemoveObjects>;
|
|
|
|
DECLARE_DELEGATE_OneParam(FEmitAnalyticsEvent, const FEvent&)
|
|
} |