You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 23, 2023. It is now read-only.
Copy file name to clipboardexpand all lines: api/models/series.go
+47-10
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,13 @@ import (
9
9
10
10
"github.com/grafana/metrictank/consolidation"
11
11
"github.com/grafana/metrictank/expr/tagquery"
12
+
"github.com/grafana/metrictank/mdata"
12
13
"github.com/grafana/metrictank/schema"
13
14
pickle "github.com/kisielk/og-rek"
14
15
)
15
16
16
17
//go:generate msgp
18
+
//msgp:ignore SeriesMetaPropertiesExport
17
19
18
20
typeSeriesstruct {
19
21
Targetstring// for fetched data, set from models.Req.Target, i.e. the metric graphite key. for function output, whatever should be shown as target string (legend)
@@ -37,13 +39,44 @@ type SeriesMeta []SeriesMetaProperties
37
39
typeSeriesMetaPropertiesstruct {
38
40
SchemaIDuint16// id of storage-schemas rule this series corresponds to
39
41
Archiveuint8// which archive was being read from
42
+
ArchIntervaluint32// the interval of the archive we fetch
40
43
AggNumNormuint32// aggNum for normalization
41
44
AggNumRCuint32// aggNum runtime consolidation
42
45
ConsolidatorNormFetch consolidation.Consolidator// consolidator used for normalization and reading from store (if applicable)
43
46
ConsolidatorRC consolidation.Consolidator// consolidator used for runtime consolidation to honor maxdatapoints (if applicable).
44
47
Countuint32// number of series corresponding to these properties
45
48
}
46
49
50
+
// SeriesMetaPropertiesExport is an "export" of a SeriesMetaProperties
51
+
// it is a more user friendly representation
52
+
typeSeriesMetaPropertiesExportstruct {
53
+
SchemaNamestring// name of schema rule used
54
+
SchemaRetentionsstring// schema retentions used
55
+
ArchiveReaduint8// which archive was being read from
56
+
ArchIntervaluint32// the interval of the archive we fetch
57
+
AggNumNormuint32// aggNum for normalization
58
+
AggNumRCuint32// aggNum runtime consolidation
59
+
ConsolidatorNormFetch consolidation.Consolidator// consolidator used for normalization and reading from store (if applicable)
60
+
ConsolidatorRC consolidation.Consolidator// consolidator used for runtime consolidation to honor maxdatapoints (if applicable).
61
+
Countuint32// number of series corresponding to these properties
62
+
}
63
+
64
+
// Export returns a human-friendly version of the SeriesMetaProperties.
0 commit comments