@gravitee/gamma-lib-observability 3.1.1 → 3.2.0-amp-demo.da2facd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INTEGRATION.md +60 -0
- package/QUERYING.md +58 -7
- package/README.md +1 -0
- package/USAGE_GUIDE.md +83 -6
- package/dist/dashboards/DashboardView.d.ts +8 -1
- package/dist/dashboards/DashboardView.d.ts.map +1 -1
- package/dist/dashboards/WidgetGroup.d.ts +7 -1
- package/dist/dashboards/WidgetGroup.d.ts.map +1 -1
- package/dist/dashboards/WidgetInteractionContext.d.ts +31 -0
- package/dist/dashboards/WidgetInteractionContext.d.ts.map +1 -0
- package/dist/dashboards/WidgetItem.d.ts +7 -3
- package/dist/dashboards/WidgetItem.d.ts.map +1 -1
- package/dist/dashboards/analytics-table/AnalyticsTable.d.ts +54 -0
- package/dist/dashboards/analytics-table/AnalyticsTable.d.ts.map +1 -0
- package/dist/dashboards/analytics-table/analytics-table-model.d.ts +73 -0
- package/dist/dashboards/analytics-table/analytics-table-model.d.ts.map +1 -0
- package/dist/dashboards/analytics-table/format-table-value.d.ts +31 -0
- package/dist/dashboards/analytics-table/format-table-value.d.ts.map +1 -0
- package/dist/dashboards/analytics-table/index.d.ts +6 -0
- package/dist/dashboards/analytics-table/index.d.ts.map +1 -0
- package/dist/dashboards/analytics-table/plan-columns.d.ts +102 -0
- package/dist/dashboards/analytics-table/plan-columns.d.ts.map +1 -0
- package/dist/dashboards/analytics-table/row-color.d.ts +11 -0
- package/dist/dashboards/analytics-table/row-color.d.ts.map +1 -0
- package/dist/dashboards/analytics-table/use-analytics-table-query.d.ts +46 -0
- package/dist/dashboards/analytics-table/use-analytics-table-query.d.ts.map +1 -0
- package/dist/dashboards/editor/TableColumnsEditor.d.ts +26 -0
- package/dist/dashboards/editor/TableColumnsEditor.d.ts.map +1 -0
- package/dist/dashboards/editor/TableDisplayFields.d.ts +13 -0
- package/dist/dashboards/editor/TableDisplayFields.d.ts.map +1 -0
- package/dist/dashboards/editor/TableQueryFields.d.ts +15 -0
- package/dist/dashboards/editor/TableQueryFields.d.ts.map +1 -0
- package/dist/dashboards/editor/VisualizationTypePicker.d.ts.map +1 -1
- package/dist/dashboards/editor/WidgetConfigForm.d.ts.map +1 -1
- package/dist/dashboards/editor/WidgetEditorPanel.d.ts.map +1 -1
- package/dist/dashboards/editor/WidgetPreview.d.ts +5 -0
- package/dist/dashboards/editor/WidgetPreview.d.ts.map +1 -1
- package/dist/dashboards/editor/convert-widget-type.d.ts +0 -4
- package/dist/dashboards/editor/convert-widget-type.d.ts.map +1 -1
- package/dist/dashboards/editor/dashboard-editor-state.d.ts +8 -0
- package/dist/dashboards/editor/dashboard-editor-state.d.ts.map +1 -1
- package/dist/dashboards/editor/facet-display-cols.d.ts +2 -0
- package/dist/dashboards/editor/facet-display-cols.d.ts.map +1 -1
- package/dist/dashboards/editor/suggest-widget-title.d.ts.map +1 -1
- package/dist/dashboards/editor/widget-auto-scope.d.ts.map +1 -1
- package/dist/dashboards/index.d.ts +4 -1
- package/dist/dashboards/index.d.ts.map +1 -1
- package/dist/dashboards/register-default-renderers.d.ts +1 -1
- package/dist/dashboards/register-default-renderers.d.ts.map +1 -1
- package/dist/dashboards/renderers/TablePresentation.d.ts +20 -0
- package/dist/dashboards/renderers/TablePresentation.d.ts.map +1 -0
- package/dist/dashboards/renderers/TableWidgetRenderer.d.ts +4 -0
- package/dist/dashboards/renderers/TableWidgetRenderer.d.ts.map +1 -0
- package/dist/dashboards/renderers/index.d.ts +1 -0
- package/dist/dashboards/renderers/index.d.ts.map +1 -1
- package/dist/dashboards/widget-data.d.ts +29 -2
- package/dist/dashboards/widget-data.d.ts.map +1 -1
- package/dist/dashboards/widget-renderer-registry.d.ts +8 -0
- package/dist/dashboards/widget-renderer-registry.d.ts.map +1 -1
- package/dist/data-sources/http-data-source.d.ts.map +1 -1
- package/dist/hooks/query-keys.d.ts +14 -0
- package/dist/hooks/query-keys.d.ts.map +1 -1
- package/dist/hooks/use-facets-query.d.ts +7 -0
- package/dist/hooks/use-facets-query.d.ts.map +1 -1
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6376 -3270
- package/dist/lib/use-element-size.d.ts +21 -0
- package/dist/lib/use-element-size.d.ts.map +1 -0
- package/dist/routing/ObservabilityDashboardPage.d.ts +16 -0
- package/dist/routing/ObservabilityDashboardPage.d.ts.map +1 -1
- package/dist/routing/ObservabilityRoutes.d.ts.map +1 -1
- package/dist/routing/detail-filter.d.ts +9 -4
- package/dist/routing/detail-filter.d.ts.map +1 -1
- package/dist/shared/ExplorerTable.d.ts +34 -2
- package/dist/shared/ExplorerTable.d.ts.map +1 -1
- package/dist/styles/observability.css +1 -1
- package/dist/targets/EvaluateNowButton.d.ts +19 -0
- package/dist/targets/EvaluateNowButton.d.ts.map +1 -0
- package/dist/targets/RuleTrend.d.ts +19 -0
- package/dist/targets/RuleTrend.d.ts.map +1 -0
- package/dist/targets/TargetCard.d.ts +18 -0
- package/dist/targets/TargetCard.d.ts.map +1 -0
- package/dist/targets/TargetForm.d.ts +19 -0
- package/dist/targets/TargetForm.d.ts.map +1 -0
- package/dist/targets/TargetHeatmap.d.ts +22 -0
- package/dist/targets/TargetHeatmap.d.ts.map +1 -0
- package/dist/targets/TargetStatusBadge.d.ts +18 -0
- package/dist/targets/TargetStatusBadge.d.ts.map +1 -0
- package/dist/targets/TargetsPanel.d.ts +15 -0
- package/dist/targets/TargetsPanel.d.ts.map +1 -0
- package/dist/targets/api-type-names.d.ts +5 -0
- package/dist/targets/api-type-names.d.ts.map +1 -0
- package/dist/targets/evaluation-summary.d.ts +34 -0
- package/dist/targets/evaluation-summary.d.ts.map +1 -0
- package/dist/targets/format.d.ts +26 -0
- package/dist/targets/format.d.ts.map +1 -0
- package/dist/targets/history-range.d.ts +14 -0
- package/dist/targets/history-range.d.ts.map +1 -0
- package/dist/targets/http-targets-source.d.ts +10 -0
- package/dist/targets/http-targets-source.d.ts.map +1 -0
- package/dist/targets/index.d.ts +15 -0
- package/dist/targets/index.d.ts.map +1 -0
- package/dist/targets/rule-filters.d.ts +7 -0
- package/dist/targets/rule-filters.d.ts.map +1 -0
- package/dist/targets/targets-provider.d.ts +27 -0
- package/dist/targets/targets-provider.d.ts.map +1 -0
- package/dist/targets/targets-source.d.ts +51 -0
- package/dist/targets/targets-source.d.ts.map +1 -0
- package/dist/targets/testing/in-memory-targets-source.d.ts +41 -0
- package/dist/targets/testing/in-memory-targets-source.d.ts.map +1 -0
- package/dist/targets/types.d.ts +130 -0
- package/dist/targets/types.d.ts.map +1 -0
- package/dist/targets/use-targets.d.ts +44 -0
- package/dist/targets/use-targets.d.ts.map +1 -0
- package/dist/{dashboard-access-provider.js → targets-source.js} +28 -1
- package/dist/testing/graphene-core-icons-mock.d.ts +8 -0
- package/dist/testing/graphene-core-icons-mock.d.ts.map +1 -1
- package/dist/testing/graphene-core-mock.d.ts +33 -7
- package/dist/testing/graphene-core-mock.d.ts.map +1 -1
- package/dist/testing/index.d.ts +10 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/mock-metrics-data-source.d.ts.map +1 -1
- package/dist/testing.js +379 -35
- package/dist/types/domain.d.ts +105 -1
- package/dist/types/domain.d.ts.map +1 -1
- package/dist/types/guards.d.ts +2 -1
- package/dist/types/guards.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/responses.d.ts +18 -0
- package/dist/types/responses.d.ts.map +1 -1
- package/dist/types-entry.d.ts +2 -0
- package/dist/types-entry.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/testing.js
CHANGED
|
@@ -1,48 +1,392 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { QueryClient as
|
|
4
|
-
import { render as
|
|
1
|
+
import { S as e, T as t, a as n, g as r, n as i, p as a, s as o, t as s, u as c, y as l } from "./targets-source.js";
|
|
2
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
3
|
+
import { QueryClient as d, QueryClientProvider as f } from "@tanstack/react-query";
|
|
4
|
+
import { render as p } from "@testing-library/react";
|
|
5
|
+
//#region src/targets/testing/in-memory-targets-source.ts
|
|
6
|
+
var m = [
|
|
7
|
+
"HTTP_PROXY",
|
|
8
|
+
"LLM",
|
|
9
|
+
"MESSAGE",
|
|
10
|
+
"MCP",
|
|
11
|
+
"A2A"
|
|
12
|
+
], h = [
|
|
13
|
+
"API",
|
|
14
|
+
"API_TYPE",
|
|
15
|
+
"APPLICATION",
|
|
16
|
+
"PLAN",
|
|
17
|
+
"GATEWAY",
|
|
18
|
+
"HTTP_METHOD",
|
|
19
|
+
"HTTP_STATUS_CODE_GROUP",
|
|
20
|
+
"HTTP_PATH"
|
|
21
|
+
], g = [
|
|
22
|
+
"AVG",
|
|
23
|
+
"MIN",
|
|
24
|
+
"MAX",
|
|
25
|
+
"P90",
|
|
26
|
+
"P95",
|
|
27
|
+
"P99"
|
|
28
|
+
];
|
|
29
|
+
function _(e, t, n, r, i = []) {
|
|
30
|
+
return {
|
|
31
|
+
name: e,
|
|
32
|
+
label: t,
|
|
33
|
+
apis: m,
|
|
34
|
+
unit: n,
|
|
35
|
+
measures: r,
|
|
36
|
+
facets: ["API", "APPLICATION"],
|
|
37
|
+
filters: [...h, ...i]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
var v = [
|
|
41
|
+
_("HTTP_REQUESTS", "HTTP Requests", "NUMBER", ["COUNT"]),
|
|
42
|
+
_("HTTP_GATEWAY_RESPONSE_TIME", "Gateway response time", "MILLISECONDS", g),
|
|
43
|
+
_("HTTP_GATEWAY_LATENCY", "Latency", "MILLISECONDS", g),
|
|
44
|
+
_("HTTP_ERROR_RATE", "Error Rate", "PERCENT", ["PERCENTAGE"]),
|
|
45
|
+
_("HTTP_SERVER_ERROR_RATE", "Server Error Rate", "PERCENT", ["PERCENTAGE"]),
|
|
46
|
+
_("HTTP_REQUESTS_PER_SECOND", "Requests per Second", "PER_SECOND", ["RATE"])
|
|
47
|
+
];
|
|
48
|
+
function y(e, t) {
|
|
49
|
+
return e.map((e) => ({
|
|
50
|
+
...e,
|
|
51
|
+
filters: [...e.filters, ...t]
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
var b = ["LLM_PROXY_MODEL", "LLM_PROXY_PROVIDER"], x = [
|
|
55
|
+
"MCP_PROXY_METHOD",
|
|
56
|
+
"MCP_PROXY_TOOL",
|
|
57
|
+
"MCP_PROXY_RESOURCE",
|
|
58
|
+
"MCP_PROXY_PROMPT"
|
|
59
|
+
], S = {
|
|
60
|
+
HTTP_PROXY: v,
|
|
61
|
+
A2A: v,
|
|
62
|
+
MESSAGE: [...v, {
|
|
63
|
+
name: "MESSAGES",
|
|
64
|
+
label: "Message count",
|
|
65
|
+
apis: ["MESSAGE"],
|
|
66
|
+
unit: "NUMBER",
|
|
67
|
+
measures: ["COUNT"],
|
|
68
|
+
facets: [],
|
|
69
|
+
filters: ["API", "APPLICATION"]
|
|
70
|
+
}],
|
|
71
|
+
MCP: y(v, x),
|
|
72
|
+
LLM: [
|
|
73
|
+
...y(v, b),
|
|
74
|
+
{
|
|
75
|
+
name: "LLM_PROMPT_TOKEN_TOTAL_COST",
|
|
76
|
+
label: "Total token cost",
|
|
77
|
+
apis: ["LLM"],
|
|
78
|
+
unit: "NUMBER",
|
|
79
|
+
measures: ["COUNT", "AVG"],
|
|
80
|
+
facets: ["API"],
|
|
81
|
+
filters: [
|
|
82
|
+
"API",
|
|
83
|
+
"APPLICATION",
|
|
84
|
+
"PLAN",
|
|
85
|
+
...b
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "LLM_PROMPT_TOTAL_TOKEN",
|
|
90
|
+
label: "Total token count",
|
|
91
|
+
apis: ["LLM"],
|
|
92
|
+
unit: "NUMBER",
|
|
93
|
+
measures: ["COUNT", "AVG"],
|
|
94
|
+
facets: ["API"],
|
|
95
|
+
filters: [
|
|
96
|
+
"API",
|
|
97
|
+
"APPLICATION",
|
|
98
|
+
"PLAN",
|
|
99
|
+
...b
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
}, C = [
|
|
104
|
+
{
|
|
105
|
+
name: "API",
|
|
106
|
+
label: "API",
|
|
107
|
+
type: "KEYWORD",
|
|
108
|
+
operators: ["EQ", "IN"]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "API_TYPE",
|
|
112
|
+
label: "API Type",
|
|
113
|
+
type: "ENUM",
|
|
114
|
+
operators: ["EQ", "IN"],
|
|
115
|
+
enumValues: m
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: "APPLICATION",
|
|
119
|
+
label: "Application",
|
|
120
|
+
type: "KEYWORD",
|
|
121
|
+
operators: ["EQ", "IN"]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: "PLAN",
|
|
125
|
+
label: "Plan",
|
|
126
|
+
type: "KEYWORD",
|
|
127
|
+
operators: ["EQ", "IN"]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: "GATEWAY",
|
|
131
|
+
label: "Gateway",
|
|
132
|
+
type: "KEYWORD",
|
|
133
|
+
operators: ["EQ", "IN"]
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: "HTTP_METHOD",
|
|
137
|
+
label: "HTTP Method",
|
|
138
|
+
type: "ENUM",
|
|
139
|
+
operators: ["EQ", "IN"],
|
|
140
|
+
enumValues: [
|
|
141
|
+
"GET",
|
|
142
|
+
"POST",
|
|
143
|
+
"PUT",
|
|
144
|
+
"DELETE",
|
|
145
|
+
"PATCH"
|
|
146
|
+
],
|
|
147
|
+
apiTypes: m
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
name: "HTTP_STATUS_CODE_GROUP",
|
|
151
|
+
label: "Status Code Group",
|
|
152
|
+
type: "ENUM",
|
|
153
|
+
operators: ["EQ", "IN"],
|
|
154
|
+
enumValues: [
|
|
155
|
+
"1xx",
|
|
156
|
+
"2xx",
|
|
157
|
+
"3xx",
|
|
158
|
+
"4xx",
|
|
159
|
+
"5xx"
|
|
160
|
+
],
|
|
161
|
+
apiTypes: m
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
name: "HTTP_PATH",
|
|
165
|
+
label: "Path",
|
|
166
|
+
type: "KEYWORD",
|
|
167
|
+
operators: [
|
|
168
|
+
"EQ",
|
|
169
|
+
"IN",
|
|
170
|
+
"CONTAINS"
|
|
171
|
+
],
|
|
172
|
+
apiTypes: m
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: "LLM_PROXY_MODEL",
|
|
176
|
+
label: "Model",
|
|
177
|
+
type: "KEYWORD",
|
|
178
|
+
operators: ["EQ", "IN"],
|
|
179
|
+
apiTypes: ["LLM"]
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: "LLM_PROXY_PROVIDER",
|
|
183
|
+
label: "Provider",
|
|
184
|
+
type: "KEYWORD",
|
|
185
|
+
operators: ["EQ", "IN"],
|
|
186
|
+
apiTypes: ["LLM"]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: "MCP_PROXY_METHOD",
|
|
190
|
+
label: "MCP method",
|
|
191
|
+
type: "ENUM",
|
|
192
|
+
operators: ["EQ", "IN"],
|
|
193
|
+
enumValues: [
|
|
194
|
+
"tools/call",
|
|
195
|
+
"tools/list",
|
|
196
|
+
"resources/read",
|
|
197
|
+
"prompts/get"
|
|
198
|
+
],
|
|
199
|
+
apiTypes: ["MCP"]
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: "MCP_PROXY_TOOL",
|
|
203
|
+
label: "Tool",
|
|
204
|
+
type: "KEYWORD",
|
|
205
|
+
operators: ["EQ", "IN"],
|
|
206
|
+
apiTypes: ["MCP"]
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: "MCP_PROXY_RESOURCE",
|
|
210
|
+
label: "Resource",
|
|
211
|
+
type: "KEYWORD",
|
|
212
|
+
operators: ["EQ", "IN"],
|
|
213
|
+
apiTypes: ["MCP"]
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: "MCP_PROXY_PROMPT",
|
|
217
|
+
label: "Prompt",
|
|
218
|
+
type: "KEYWORD",
|
|
219
|
+
operators: ["EQ", "IN"],
|
|
220
|
+
apiTypes: ["MCP"]
|
|
221
|
+
}
|
|
222
|
+
];
|
|
223
|
+
function w(e, t) {
|
|
224
|
+
let n = /* @__PURE__ */ new Set();
|
|
225
|
+
for (let r of Object.values(t)) for (let t of r) t.name === e && t.filters.forEach((e) => n.add(e));
|
|
226
|
+
return C.filter((e) => n.has(e.name));
|
|
227
|
+
}
|
|
228
|
+
var T = 0;
|
|
229
|
+
function E(e) {
|
|
230
|
+
return T += 1, `${e}-${T}`;
|
|
231
|
+
}
|
|
232
|
+
function D(e, t) {
|
|
233
|
+
let n = e.rules.map((e) => ({
|
|
234
|
+
metric: e.metric,
|
|
235
|
+
measure: e.measure,
|
|
236
|
+
operator: e.operator,
|
|
237
|
+
threshold: e.threshold,
|
|
238
|
+
sampleCount: 0,
|
|
239
|
+
status: "NOT_EVALUABLE"
|
|
240
|
+
}));
|
|
241
|
+
return {
|
|
242
|
+
id: E("evaluation"),
|
|
243
|
+
targetId: e.id,
|
|
244
|
+
reference: e.subject.reference,
|
|
245
|
+
status: "NOT_EVALUABLE",
|
|
246
|
+
rules: n,
|
|
247
|
+
windowFrom: (/* @__PURE__ */ new Date(t.getTime() - e.windowSeconds * 1e3)).toISOString(),
|
|
248
|
+
windowTo: t.toISOString(),
|
|
249
|
+
coveredApiIds: [...e.subject.apiIds],
|
|
250
|
+
evaluatedAt: t.toISOString()
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
function O(e = {}) {
|
|
254
|
+
let t = e.now ?? (() => /* @__PURE__ */ new Date()), n = e.metricSpecs ?? S, r = e.evaluate ?? D, a = e.rateLimitSeconds ?? 30, o = new Map(e.targets?.map((e) => [e.id, e])), c = new Map(Object.entries(e.evaluations ?? {}).map(([e, t]) => [e, [...t]])), l = /* @__PURE__ */ new Map(), u = e.rateLimitedForSeconds === void 0 ? void 0 : t().getTime() + e.rateLimitedForSeconds * 1e3;
|
|
255
|
+
async function d(t) {
|
|
256
|
+
if (e.latencyMs && await new Promise((t) => setTimeout(t, e.latencyMs)), e.failure) throw e.failure;
|
|
257
|
+
return t();
|
|
258
|
+
}
|
|
259
|
+
function f(e) {
|
|
260
|
+
let t = o.get(e);
|
|
261
|
+
if (!t) throw new i(404, `Performance target [${e}] cannot be found.`);
|
|
262
|
+
return t;
|
|
263
|
+
}
|
|
264
|
+
function p(e) {
|
|
265
|
+
let t = new Set(Object.values(n).flatMap((e) => e.map((e) => e.name)));
|
|
266
|
+
if (e.rules.forEach((e, n) => {
|
|
267
|
+
if (!t.has(e.metric)) throw new i(400, `Metric [${e.metric}] is not available for the subject's API types.`, n);
|
|
268
|
+
}), e.windowSeconds < e.intervalSeconds) throw new i(400, "The window must be at least the interval.");
|
|
269
|
+
}
|
|
270
|
+
return {
|
|
271
|
+
targets: () => [...o.values()],
|
|
272
|
+
evaluationsOf: (e) => [...c.get(e) ?? []],
|
|
273
|
+
listByReference: (e) => d(() => [...o.values()].filter((t) => t.subject.reference === e)),
|
|
274
|
+
create: (e) => d(() => {
|
|
275
|
+
p(e);
|
|
276
|
+
let n = {
|
|
277
|
+
...e,
|
|
278
|
+
id: E("target"),
|
|
279
|
+
createdAt: t().toISOString()
|
|
280
|
+
};
|
|
281
|
+
return o.set(n.id, n), n;
|
|
282
|
+
}),
|
|
283
|
+
update: (e, n) => d(() => {
|
|
284
|
+
let r = f(e);
|
|
285
|
+
p(n);
|
|
286
|
+
let i = {
|
|
287
|
+
...r,
|
|
288
|
+
...n,
|
|
289
|
+
updatedAt: t().toISOString()
|
|
290
|
+
};
|
|
291
|
+
return o.set(e, i), i;
|
|
292
|
+
}),
|
|
293
|
+
remove: (e) => d(() => {
|
|
294
|
+
f(e), o.delete(e), c.delete(e);
|
|
295
|
+
}),
|
|
296
|
+
evaluateNow: (e) => d(() => {
|
|
297
|
+
let n = f(e), i = t().getTime(), o = l.get(e) ?? u ?? 0;
|
|
298
|
+
if (o > i) throw new s(`Performance target [${e}] was evaluated too recently.`, Math.ceil((o - i) / 1e3));
|
|
299
|
+
let d = r(n, t());
|
|
300
|
+
return c.set(e, [d, ...c.get(e) ?? []]), a > 0 && l.set(e, i + a * 1e3), d;
|
|
301
|
+
}),
|
|
302
|
+
fetchHistory: (e, t) => d(() => {
|
|
303
|
+
f(e);
|
|
304
|
+
let n = c.get(e) ?? [], r = (t.page - 1) * t.perPage;
|
|
305
|
+
return {
|
|
306
|
+
data: n.slice(r, r + t.perPage),
|
|
307
|
+
totalCount: n.length
|
|
308
|
+
};
|
|
309
|
+
}),
|
|
310
|
+
fetchLatestByReferences: (e) => d(() => {
|
|
311
|
+
let t = {};
|
|
312
|
+
for (let n of e) t[n] = A([...o.values()].filter((e) => e.subject.reference === n).map((e) => c.get(e.id)?.[0]).filter((e) => e !== void 0));
|
|
313
|
+
return t;
|
|
314
|
+
}),
|
|
315
|
+
fetchMetricSpecs: (e) => d(() => {
|
|
316
|
+
let t = n[e];
|
|
317
|
+
if (!t) throw new i(400, `Unknown API type [${e}].`);
|
|
318
|
+
return [...t];
|
|
319
|
+
}),
|
|
320
|
+
fetchFilterSpecs: (e) => d(() => w(e, n))
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
var k = {
|
|
324
|
+
PASS: 0,
|
|
325
|
+
NOT_EVALUABLE: 1,
|
|
326
|
+
BREACH: 2
|
|
327
|
+
};
|
|
328
|
+
function A(e) {
|
|
329
|
+
let t = null;
|
|
330
|
+
for (let n of e) (t === null || k[n.status] > k[t.status]) && (t = n);
|
|
331
|
+
return t;
|
|
332
|
+
}
|
|
333
|
+
//#endregion
|
|
5
334
|
//#region src/testing/index.tsx
|
|
6
|
-
function
|
|
7
|
-
return new
|
|
335
|
+
function j() {
|
|
336
|
+
return new d({ defaultOptions: { queries: {
|
|
8
337
|
retry: !1,
|
|
9
338
|
gcTime: 0
|
|
10
339
|
} } });
|
|
11
340
|
}
|
|
12
|
-
function
|
|
13
|
-
let { dataSources:
|
|
14
|
-
function
|
|
15
|
-
let
|
|
16
|
-
return
|
|
17
|
-
persistence:
|
|
18
|
-
children:
|
|
19
|
-
})),
|
|
20
|
-
dataSource:
|
|
21
|
-
children:
|
|
22
|
-
})),
|
|
23
|
-
dataSource:
|
|
24
|
-
children:
|
|
25
|
-
})),
|
|
26
|
-
dataSource:
|
|
27
|
-
children:
|
|
28
|
-
})),
|
|
29
|
-
providers:
|
|
30
|
-
children:
|
|
31
|
-
})), /* @__PURE__ */
|
|
32
|
-
client:
|
|
33
|
-
children: /* @__PURE__ */
|
|
34
|
-
capabilities:
|
|
35
|
-
children:
|
|
341
|
+
function M(i, s = {}) {
|
|
342
|
+
let { dataSources: d = {}, filterProviders: m, capabilities: h = t, queryClient: g = j(), ..._ } = s;
|
|
343
|
+
function v({ children: t }) {
|
|
344
|
+
let i = /* @__PURE__ */ u(n, { children: t });
|
|
345
|
+
return d.persistence && (i = /* @__PURE__ */ u(l, {
|
|
346
|
+
persistence: d.persistence,
|
|
347
|
+
children: i
|
|
348
|
+
})), d.traces && (i = /* @__PURE__ */ u(c, {
|
|
349
|
+
dataSource: d.traces,
|
|
350
|
+
children: i
|
|
351
|
+
})), d.logs && (i = /* @__PURE__ */ u(r, {
|
|
352
|
+
dataSource: d.logs,
|
|
353
|
+
children: i
|
|
354
|
+
})), d.metrics && (i = /* @__PURE__ */ u(a, {
|
|
355
|
+
dataSource: d.metrics,
|
|
356
|
+
children: i
|
|
357
|
+
})), m && (i = /* @__PURE__ */ u(o, {
|
|
358
|
+
providers: m,
|
|
359
|
+
children: i
|
|
360
|
+
})), /* @__PURE__ */ u(f, {
|
|
361
|
+
client: g,
|
|
362
|
+
children: /* @__PURE__ */ u(e, {
|
|
363
|
+
capabilities: h,
|
|
364
|
+
children: i
|
|
36
365
|
})
|
|
37
366
|
});
|
|
38
367
|
}
|
|
39
368
|
return {
|
|
40
|
-
...
|
|
41
|
-
wrapper:
|
|
42
|
-
...
|
|
369
|
+
...p(i, {
|
|
370
|
+
wrapper: v,
|
|
371
|
+
..._
|
|
43
372
|
}),
|
|
44
|
-
queryClient:
|
|
373
|
+
queryClient: g
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
function N(e, t) {
|
|
377
|
+
let n = ["clientWidth", "clientHeight"].map((e) => [e, Object.getOwnPropertyDescriptor(HTMLElement.prototype, e)]);
|
|
378
|
+
return Object.defineProperties(HTMLElement.prototype, {
|
|
379
|
+
clientWidth: {
|
|
380
|
+
configurable: !0,
|
|
381
|
+
get: () => e
|
|
382
|
+
},
|
|
383
|
+
clientHeight: {
|
|
384
|
+
configurable: !0,
|
|
385
|
+
get: () => t
|
|
386
|
+
}
|
|
387
|
+
}), () => {
|
|
388
|
+
for (let [e, t] of n) t ? Object.defineProperty(HTMLElement.prototype, e, t) : Reflect.deleteProperty(HTMLElement.prototype, e);
|
|
45
389
|
};
|
|
46
390
|
}
|
|
47
391
|
//#endregion
|
|
48
|
-
export {
|
|
392
|
+
export { S as SAMPLE_METRIC_SPECS, O as createInMemoryTargetsSource, D as quietEvaluation, M as renderWithObservability, N as stubElementSize };
|
package/dist/types/domain.d.ts
CHANGED
|
@@ -141,6 +141,14 @@ export interface WidgetLayout {
|
|
|
141
141
|
readonly y: number;
|
|
142
142
|
readonly cols: number;
|
|
143
143
|
readonly rows: number;
|
|
144
|
+
/**
|
|
145
|
+
* Smallest size the grid lets a reader drag this widget down to. The grid has
|
|
146
|
+
* always supported per-item minimums; nothing carried them until a widget
|
|
147
|
+
* existed whose content genuinely cannot be shown below a floor. Omitted for
|
|
148
|
+
* every other type, which keeps their behaviour exactly as it was.
|
|
149
|
+
*/
|
|
150
|
+
readonly minCols?: number;
|
|
151
|
+
readonly minRows?: number;
|
|
144
152
|
}
|
|
145
153
|
interface BaseWidget {
|
|
146
154
|
readonly id: string;
|
|
@@ -262,7 +270,103 @@ export interface MetricGroupWidget extends BaseWidget {
|
|
|
262
270
|
readonly type: 'metric-group';
|
|
263
271
|
readonly items: readonly MetricGroupItemDefinition[];
|
|
264
272
|
}
|
|
265
|
-
|
|
273
|
+
/**
|
|
274
|
+
* How a table cell renders its number. The value itself is never converted:
|
|
275
|
+
* `duration` assumes milliseconds and `bytes` assumes bytes, which is what the
|
|
276
|
+
* analytics API returns for the metrics carrying those units.
|
|
277
|
+
*/
|
|
278
|
+
export type TableColumnFormat = 'number' | 'compact' | 'percent' | 'duration' | 'bytes';
|
|
279
|
+
/** The three colours a tier can paint a cell. Design-system tokens, not hex. */
|
|
280
|
+
export type TableTierColor = 'red' | 'amber' | 'green';
|
|
281
|
+
/**
|
|
282
|
+
* One alert tier of a column: paints the cell `color` when the cell crosses
|
|
283
|
+
* `value`. `op` is the direction (`gte` above, `lte` below) and `basis` what is
|
|
284
|
+
* compared: the cell's own value, or its share of the column total in percent.
|
|
285
|
+
* Thresholds are ordered rules: the first one a cell matches decides its colour.
|
|
286
|
+
*/
|
|
287
|
+
export interface TableThreshold {
|
|
288
|
+
readonly color: TableTierColor;
|
|
289
|
+
readonly op: 'gte' | 'lte';
|
|
290
|
+
readonly value: number;
|
|
291
|
+
/** @default 'value' */
|
|
292
|
+
readonly basis?: 'value' | 'share';
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* One value column of a table widget. A column *is* a query fragment: the
|
|
296
|
+
* distinct `metric`s of the column list become the metrics of the single facets
|
|
297
|
+
* request, and each column reads one `measure` out of its metric.
|
|
298
|
+
*
|
|
299
|
+
* `label` and `unit` are overrides, not the source of truth: both resolve from
|
|
300
|
+
* the metric catalog at render time when omitted, so a table follows the
|
|
301
|
+
* catalog as it is corrected or translated instead of freezing yesterday's
|
|
302
|
+
* wording into the saved dashboard.
|
|
303
|
+
*/
|
|
304
|
+
export interface TableColumn {
|
|
305
|
+
/**
|
|
306
|
+
* Stable identity for sorting and for the collapse plan. Defaults to
|
|
307
|
+
* `metric:measure`, which is the column's real identity; set it only to keep
|
|
308
|
+
* two columns on the same metric/measure pair apart.
|
|
309
|
+
*/
|
|
310
|
+
readonly id?: string;
|
|
311
|
+
readonly metric: string;
|
|
312
|
+
/** Measure read from `metric`. Defaults to `COUNT`. */
|
|
313
|
+
readonly measure?: string;
|
|
314
|
+
/** Header override. Defaults to the catalog label for `metric`. */
|
|
315
|
+
readonly label?: string;
|
|
316
|
+
/** Unit suffix override (e.g. `ms`, `req`). Defaults to the catalog unit. */
|
|
317
|
+
readonly unit?: string;
|
|
318
|
+
readonly format?: TableColumnFormat;
|
|
319
|
+
/** Alert tiers, evaluated per cell. See {@link TableThreshold}. */
|
|
320
|
+
readonly thresholds?: readonly TableThreshold[];
|
|
321
|
+
/** Draws each value as a share of the column total, next to the number. */
|
|
322
|
+
readonly share?: boolean;
|
|
323
|
+
/** Never collapsed away when the widget is too narrow for every column. */
|
|
324
|
+
readonly pinned?: boolean;
|
|
325
|
+
}
|
|
326
|
+
/** Which column orders the rows, and in which direction. */
|
|
327
|
+
export interface TableSort {
|
|
328
|
+
readonly columnId: string;
|
|
329
|
+
readonly order: SortOrder;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Lists the top values of a dimension with several metrics side by side.
|
|
333
|
+
*
|
|
334
|
+
* Deliberately not a {@link FacetWidgetConfig}: that shape carries a single
|
|
335
|
+
* `metric`/`measure` pair because a bar or a doughnut draws exactly one value
|
|
336
|
+
* per bucket. Here the column list is the query, so there is no widget-level
|
|
337
|
+
* metric to inherit.
|
|
338
|
+
*/
|
|
339
|
+
/**
|
|
340
|
+
* What a table draws in front of each row's label: its rank in the current
|
|
341
|
+
* sort, or a swatch from the chart palette so the rows can be told apart from
|
|
342
|
+
* a chart of the same values. Nothing when omitted.
|
|
343
|
+
*/
|
|
344
|
+
export type TableRowMarker = 'number' | 'color';
|
|
345
|
+
export interface TableWidget extends BaseWidget {
|
|
346
|
+
readonly type: 'table';
|
|
347
|
+
/**
|
|
348
|
+
* Dimension whose values become the rows. A table is a single-dimension
|
|
349
|
+
* visualisation: the first entry drives the rows and the row drill-down.
|
|
350
|
+
*/
|
|
351
|
+
readonly by: readonly string[];
|
|
352
|
+
readonly columns: readonly TableColumn[];
|
|
353
|
+
/** Defaults to the first column, descending. */
|
|
354
|
+
readonly sort?: TableSort;
|
|
355
|
+
/** Caps how many rows the backend returns (top-N). */
|
|
356
|
+
readonly limit?: number;
|
|
357
|
+
/**
|
|
358
|
+
* Ceiling on the rows shown per page. The effective page size is whatever
|
|
359
|
+
* fits the widget's height, capped by this — never more, so an author can ask
|
|
360
|
+
* for fewer rows than the space allows but never for a clipped table.
|
|
361
|
+
*/
|
|
362
|
+
readonly pageSize?: number;
|
|
363
|
+
/** Appends a totals row, resolved from one extra measures request. */
|
|
364
|
+
readonly showTotals?: boolean;
|
|
365
|
+
readonly rowMarker?: TableRowMarker;
|
|
366
|
+
/** Numeric ranges used to bucket the dimension values. */
|
|
367
|
+
readonly ranges?: readonly NumericRange[];
|
|
368
|
+
}
|
|
369
|
+
export type Widget = CartesianWidget | DoughnutWidget | BarWidget | BreakdownWidget | MetricWidget | MetricGroupWidget | TableWidget;
|
|
266
370
|
export type WidgetType = Widget['type'];
|
|
267
371
|
export interface Dashboard {
|
|
268
372
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../src/types/domain.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACtB,IAAI,GACJ,KAAK,GACL,IAAI,GACJ,IAAI,GACJ,KAAK,GACL,KAAK,GACL,IAAI,GACJ,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,iBAAiB,CAAC;AAEtB,MAAM,WAAW,iBA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,YAAY,EAAE,CAAC;CAC3C;AAED,MAAM,MAAM,MAAM,GACd,eAAe,GACf,cAAc,GACd,SAAS,GACT,eAAe,GACf,YAAY,GACZ,iBAAiB,GACjB,WAAW,CAAC;AAEhB,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAExC,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,qBAAqB;IACpC,+BAA+B,EAAE,OAAO,CAAC;IACzC,gCAAgC,EAAE,OAAO,CAAC;IAC1C,yBAAyB,EAAE,OAAO,CAAC;IACnC,2BAA2B,EAAE,OAAO,CAAC;CACtC;AAED,eAAO,MAAM,oBAAoB,EAAE,qBAKlC,CAAC"}
|
package/dist/types/guards.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { BarWidget, BreakdownWidget, CartesianWidget, DoughnutWidget, MetricGroupWidget, MetricWidget, Widget } from './domain';
|
|
1
|
+
import { BarWidget, BreakdownWidget, CartesianWidget, DoughnutWidget, MetricGroupWidget, MetricWidget, TableWidget, Widget } from './domain';
|
|
2
2
|
export declare function isCartesianWidget(widget: Widget): widget is CartesianWidget;
|
|
3
3
|
export declare function isDoughnutWidget(widget: Widget): widget is DoughnutWidget;
|
|
4
4
|
export declare function isBarWidget(widget: Widget): widget is BarWidget;
|
|
5
5
|
export declare function isBreakdownWidget(widget: Widget): widget is BreakdownWidget;
|
|
6
6
|
export declare function isMetricWidget(widget: Widget): widget is MetricWidget;
|
|
7
7
|
export declare function isMetricGroupWidget(widget: Widget): widget is MetricGroupWidget;
|
|
8
|
+
export declare function isTableWidget(widget: Widget): widget is TableWidget;
|
|
8
9
|
//# sourceMappingURL=guards.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../src/types/guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,MAAM,EACP,MAAM,UAAU,CAAC;AAElB,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,eAAe,CAE3E;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,cAAc,CAEzE;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,SAAS,CAE/D;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,eAAe,CAE3E;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,YAAY,CAErE;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,iBAAiB,CAE/E"}
|
|
1
|
+
{"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../src/types/guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,MAAM,EACP,MAAM,UAAU,CAAC;AAElB,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,eAAe,CAE3E;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,cAAc,CAEzE;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,SAAS,CAE/D;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,eAAe,CAE3E;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,YAAY,CAErE;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,iBAAiB,CAE/E;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,WAAW,CAEnE"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type { AbsoluteTimeRange, BarChartLayout, BarWidget, BreakdownRatioMode, BreakdownTooltipColorMode, BreakdownVariant, BreakdownWidget, CartesianWidget, Dashboard, DashboardCapabilities, DoughnutWidget, FilterCondition, FilterOperator, MetricGroupItemDefinition, MetricGroupWidget, MetricTrendSentiment, MetricWidget, RelativePeriod, RelativeTimeRange, SeriesDefinition, SeriesRepresentation, TimeRange, Widget, WidgetLayout, WidgetType, } from './domain';
|
|
1
|
+
export type { AbsoluteTimeRange, BarChartLayout, BarWidget, BreakdownRatioMode, BreakdownTooltipColorMode, BreakdownVariant, BreakdownWidget, CartesianWidget, Dashboard, DashboardCapabilities, DoughnutWidget, FilterCondition, FilterOperator, MetricGroupItemDefinition, MetricGroupWidget, MetricTrendSentiment, MetricWidget, RelativePeriod, RelativeTimeRange, SeriesDefinition, SeriesRepresentation, SortOrder, TableColumn, TableColumnFormat, TableSort, TableRowMarker, TableThreshold, TableTierColor, TableWidget, TimeRange, Widget, WidgetLayout, WidgetType, } from './domain';
|
|
2
2
|
export { DEFAULT_CAPABILITIES, FILTER_OPERATORS } from './domain';
|
|
3
3
|
export type { AttributeValue, FacetBucket, Measure, MetricResult, MetricUnit, PayloadLog, Span, SpanEvent, SpanKind, SpanStatus, TimeSeriesGroup, TimeSeriesPoint, TraceDetail, TraceSummary, } from './responses';
|
|
4
4
|
export type { FacetMetricRequest, FacetsRequest, LogsQuery, MeasuresRequest, MetricRequest, TimeSeriesRequest, TraceQuery, } from './requests';
|
|
5
|
-
export { isBarWidget, isBreakdownWidget, isCartesianWidget, isDoughnutWidget, isMetricGroupWidget, isMetricWidget, } from './guards';
|
|
5
|
+
export { isBarWidget, isBreakdownWidget, isCartesianWidget, isDoughnutWidget, isMetricGroupWidget, isMetricWidget, isTableWidget, } from './guards';
|
|
6
6
|
export type { ConnectionLog } from './connection-log';
|
|
7
7
|
export type { LogColumnDefinition, LogColumnPreset } from './log-column';
|
|
8
8
|
export { DEFAULT_MEASURE, resolveMeasure } from './widget-defaults';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,yBAAyB,EACzB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,SAAS,EACT,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,cAAc,EACd,yBAAyB,EACzB,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,SAAS,EACT,MAAM,EACN,YAAY,EACZ,UAAU,GACX,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElE,YAAY,EACV,cAAc,EACd,WAAW,EACX,OAAO,EACP,YAAY,EACZ,UAAU,EACV,UAAU,EACV,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,UAAU,EACV,eAAe,EACf,eAAe,EACf,WAAW,EACX,YAAY,GACb,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,UAAU,GACX,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,cAAc,EACd,SAAS,EACT,kBAAkB,EAClB,yBAAyB,EACzB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,SAAS,EACT,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,cAAc,EACd,yBAAyB,EACzB,iBAAiB,EACjB,oBAAoB,EACpB,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,cAAc,EACd,cAAc,EACd,WAAW,EACX,SAAS,EACT,MAAM,EACN,YAAY,EACZ,UAAU,GACX,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAElE,YAAY,EACV,cAAc,EACd,WAAW,EACX,OAAO,EACP,YAAY,EACZ,UAAU,EACV,UAAU,EACV,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,UAAU,EACV,eAAe,EACf,eAAe,EACf,WAAW,EACX,YAAY,GACb,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,eAAe,EACf,aAAa,EACb,iBAAiB,EACjB,UAAU,GACX,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,cAAc,EACd,aAAa,GACd,MAAM,UAAU,CAAC;AAElB,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEzE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -17,7 +17,25 @@ export interface TimeSeriesGroup {
|
|
|
17
17
|
export interface FacetBucket {
|
|
18
18
|
value: string;
|
|
19
19
|
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* The bucket's first measure. Kept as the primary field so every existing
|
|
22
|
+
* consumer (bar, doughnut, top list) reads the same value it always did,
|
|
23
|
+
* whatever else the response carries.
|
|
24
|
+
*/
|
|
20
25
|
count: number;
|
|
26
|
+
/**
|
|
27
|
+
* Metric this bucket was returned under. Present whenever the request named
|
|
28
|
+
* its metrics, which is how a multi-metric response stays separable after
|
|
29
|
+
* the buckets of every metric have been flattened into one list.
|
|
30
|
+
*/
|
|
31
|
+
metric?: string;
|
|
32
|
+
/** Unit the backend declared for {@link metric}, when it declared one. */
|
|
33
|
+
unit?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Every measure of the bucket, not just the first. A table column reads its
|
|
36
|
+
* own measure from here; single-measure consumers never look at it.
|
|
37
|
+
*/
|
|
38
|
+
measures?: readonly Measure[];
|
|
21
39
|
}
|
|
22
40
|
export interface Measure {
|
|
23
41
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../src/types/responses.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC;AAEzF,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,eAAe,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CA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HANGED
|
@@ -16,4 +16,6 @@ export type { DashboardPersistence } from './data-sources/dashboard-persistence'
|
|
|
16
16
|
export type { LogsDataSource, LogsQueryResult } from './data-sources/logs-data-source';
|
|
17
17
|
export type { MetricsDataSource } from './data-sources/metrics-data-source';
|
|
18
18
|
export type { FetchTraceByIdParams, TracesDataSource, TracesQueryResult } from './data-sources/traces-data-source';
|
|
19
|
+
export type { LatestTargetEvaluations, PerformanceTarget, TargetDefinition, TargetDeviation, TargetEvaluation, TargetEvaluationPage, TargetEvaluationStatus, TargetFilterOperator, TargetFilterSpec, TargetFilterSpecType, TargetMetricSpec, TargetOperator, TargetRule, TargetRuleFilter, TargetRuleResult, TargetsSubjectProps, TargetSubject, } from './targets/types';
|
|
20
|
+
export type { TargetHistoryQuery, TargetsSource } from './targets/targets-source';
|
|
19
21
|
//# sourceMappingURL=types-entry.d.ts.map
|