Files
UnrealEngineUWP/Engine/Source/Developer/CollectionManager/Public/CollectionManagerTelemetry.h
logan buchy 63b05e7fc4 Collection Manager Telemetry Events
* 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]
2023-05-01 17:00:52 -04:00

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&)
}