C++ Server-Side SDK
LaunchDarkly SDK
track_series_context.h
Go to the documentation of this file.
1 
17 #pragma once
18 
23 
24 // No effect in C++, but we want it for C.
25 // ReSharper disable once CppUnusedIncludeDirective
26 #include <stdbool.h> // NOLINT(*-deprecated-headers)
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 typedef struct p_LDServerSDKTrackSeriesContext* LDServerSDKTrackSeriesContext;
33 
41 LD_EXPORT(char const*)
42 LDTrackSeriesContext_Key(LDServerSDKTrackSeriesContext track_context);
43 
51 LD_EXPORT(LDContext)
52 LDTrackSeriesContext_Context(LDServerSDKTrackSeriesContext track_context);
53 
77 LD_EXPORT(bool)
78 LDTrackSeriesContext_Data(LDServerSDKTrackSeriesContext track_context, LDValue* out_data);
79 
88 LD_EXPORT(bool)
89 LDTrackSeriesContext_MetricValue(LDServerSDKTrackSeriesContext track_context,
90  double* out_metric_value);
91 
102 LD_EXPORT(LDHookContext)
103 LDTrackSeriesContext_HookContext(LDServerSDKTrackSeriesContext track_context);
104 
116 LD_EXPORT(char const*)
117 LDTrackSeriesContext_EnvironmentId(LDServerSDKTrackSeriesContext track_context);
118 
119 #ifdef __cplusplus
120 }
121 #endif
Export macros for C bindings.
C bindings for passing caller data to hooks.
struct p_LDHookContext * LDHookContext
Opaque hook context handle.
Definition: hook_context.h:35
LDTrackSeriesContext_Key(LDServerSDKTrackSeriesContext track_context)
Get the event key for the track call.
Definition: track_series_context.cpp:21
LDTrackSeriesContext_Data(LDServerSDKTrackSeriesContext track_context, LDValue *out_data)
Get the application-specified data for the track call, if any.
Definition: track_series_context.cpp:33
LDTrackSeriesContext_EnvironmentId(LDServerSDKTrackSeriesContext track_context)
Get the environment ID, if available.
Definition: track_series_context.cpp:69
LDTrackSeriesContext_Context(LDServerSDKTrackSeriesContext track_context)
Get the context (user/organization) associated with the track call.
Definition: track_series_context.cpp:27
LDTrackSeriesContext_MetricValue(LDServerSDKTrackSeriesContext track_context, double *out_metric_value)
Get the metric value for the track call, if any.
Definition: track_series_context.cpp:49
LDTrackSeriesContext_HookContext(LDServerSDKTrackSeriesContext track_context)
Get the hook context provided by the caller.
Definition: track_series_context.cpp:63
struct _LDValue * LDValue
Definition: value.h:64