File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/**
2- * Utility for composing Redis TimeSeries keys
2+ * Utilities for composing Redis TimeSeries keys for chart data storage
3+ *
4+ * Note: Event-level metrics use MongoDB only (not Redis TimeSeries)
5+ * Only project-level metrics are stored in Redis TimeSeries
36 */
47
58/**
@@ -26,24 +29,6 @@ export function composeProjectMetricsKey(
2629 return `ts:project-${ metricType } :${ projectId } :${ granularity } ` ;
2730}
2831
29- /**
30- * Compose Redis TimeSeries key for event-level metrics
31- *
32- * @param suffix - time granularity suffix (minutely, hourly, daily)
33- * @param groupHash - event group hash
34- * @returns Redis key string
35- *
36- * @example
37- * composeEventTimeSeriesKey('daily', 'abc123def')
38- * // => 'ts:events:abc123def:daily'
39- */
40- export function composeEventTimeSeriesKey (
41- suffix : string ,
42- groupHash : string
43- ) : string {
44- return `ts:events:${ groupHash } :${ suffix } ` ;
45- }
46-
4732/**
4833 * Get time granularity suffix based on groupBy interval
4934 *
You can’t perform that action at this time.
0 commit comments