@gravitee/gamma-lib-observability 4.0.1 → 4.0.2-feat-obs-107-send-host-module-dashboards.f37bcbe
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 +46 -12
- package/USAGE_GUIDE.md +14 -2
- package/dist/dashboard-access-provider.js +1 -0
- package/dist/data-sources/dashboard-persistence.d.ts +13 -0
- package/dist/data-sources/dashboard-persistence.d.ts.map +1 -1
- package/dist/data-sources/dashboard-wire.d.ts +7 -0
- package/dist/data-sources/dashboard-wire.d.ts.map +1 -1
- package/dist/data-sources/http-dashboard-persistence.d.ts +12 -0
- package/dist/data-sources/http-dashboard-persistence.d.ts.map +1 -1
- package/dist/data-sources/with-grid-migration.d.ts +1 -0
- package/dist/data-sources/with-grid-migration.d.ts.map +1 -1
- package/dist/hooks/query-keys.d.ts +16 -2
- package/dist/hooks/query-keys.d.ts.map +1 -1
- package/dist/hooks/use-custom-dashboards.d.ts.map +1 -1
- package/dist/index.js +153 -130
- package/dist/logs/detail/presets/connection-log-preset.d.ts +6 -11
- package/dist/logs/detail/presets/connection-log-preset.d.ts.map +1 -1
- package/dist/logs/detail/presets/message-log-preset.d.ts +5 -10
- package/dist/logs/detail/presets/message-log-preset.d.ts.map +1 -1
- package/dist/logs/detail/presets/webhook-log-preset.d.ts +4 -9
- package/dist/logs/detail/presets/webhook-log-preset.d.ts.map +1 -1
- package/dist/logs/detail/testing/mock-log-detail-fixtures.d.ts.map +1 -1
- package/dist/logs/testing/mock-log-fixtures.d.ts.map +1 -1
- package/dist/persistence/local-storage-dashboard-persistence.d.ts +10 -0
- package/dist/persistence/local-storage-dashboard-persistence.d.ts.map +1 -1
- package/dist/routing/ObservabilityRoutes.d.ts.map +1 -1
- package/dist/routing/types.d.ts +12 -5
- package/dist/routing/types.d.ts.map +1 -1
- package/dist/types/connection-log.d.ts +5 -10
- package/dist/types/connection-log.d.ts.map +1 -1
- package/dist/types/domain.d.ts +8 -0
- package/dist/types/domain.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -407,10 +407,15 @@ var Q = {
|
|
|
407
407
|
"dashboard",
|
|
408
408
|
e
|
|
409
409
|
],
|
|
410
|
-
customDashboards: () => [
|
|
411
|
-
customDashboard: (e) => [
|
|
410
|
+
customDashboards: (e) => [
|
|
412
411
|
"observability",
|
|
413
412
|
"custom-dashboards",
|
|
413
|
+
{ module: e }
|
|
414
|
+
],
|
|
415
|
+
customDashboard: (e, t) => [
|
|
416
|
+
"observability",
|
|
417
|
+
"custom-dashboards",
|
|
418
|
+
{ module: t },
|
|
414
419
|
e
|
|
415
420
|
],
|
|
416
421
|
filterLabels: (e) => [
|
|
@@ -5082,8 +5087,8 @@ function Pu(e) {
|
|
|
5082
5087
|
return {
|
|
5083
5088
|
apiType: e.apiType,
|
|
5084
5089
|
apiId: e.apiId,
|
|
5085
|
-
planId: e.
|
|
5086
|
-
applicationId: e.
|
|
5090
|
+
planId: e.planId,
|
|
5091
|
+
applicationId: e.applicationId
|
|
5087
5092
|
};
|
|
5088
5093
|
}
|
|
5089
5094
|
function Fu(e) {
|
|
@@ -5147,10 +5152,10 @@ function Ru(e, t) {
|
|
|
5147
5152
|
{
|
|
5148
5153
|
key: "entrypoint",
|
|
5149
5154
|
label: "Entrypoint",
|
|
5150
|
-
value: (e) => e.
|
|
5155
|
+
value: (e) => e.entrypointId,
|
|
5151
5156
|
render: (e) => /* @__PURE__ */ R("span", {
|
|
5152
5157
|
className: "font-mono text-xs text-muted-foreground",
|
|
5153
|
-
children: e.
|
|
5158
|
+
children: e.entrypointId
|
|
5154
5159
|
}),
|
|
5155
5160
|
defaultVisible: !0
|
|
5156
5161
|
},
|
|
@@ -5164,14 +5169,14 @@ function Ru(e, t) {
|
|
|
5164
5169
|
{
|
|
5165
5170
|
key: "application",
|
|
5166
5171
|
label: "Application",
|
|
5167
|
-
value: (e) => e.
|
|
5172
|
+
value: (e) => e.applicationName,
|
|
5168
5173
|
href: (e) => Nu(n, "application", Pu(e), i),
|
|
5169
5174
|
defaultVisible: !1
|
|
5170
5175
|
},
|
|
5171
5176
|
{
|
|
5172
5177
|
key: "plan",
|
|
5173
5178
|
label: "Plan",
|
|
5174
|
-
value: (e) => e.
|
|
5179
|
+
value: (e) => e.planName,
|
|
5175
5180
|
href: (e) => Nu(n, "plan", Pu(e), i),
|
|
5176
5181
|
defaultVisible: !1
|
|
5177
5182
|
},
|
|
@@ -5640,8 +5645,8 @@ function Yu({ log: e, basePath: t, entityLinks: n, extraFields: r, onFilter: i }
|
|
|
5640
5645
|
let a = {
|
|
5641
5646
|
apiType: e.apiType,
|
|
5642
5647
|
apiId: e.apiId,
|
|
5643
|
-
planId: e.
|
|
5644
|
-
applicationId: e.
|
|
5648
|
+
planId: e.planId,
|
|
5649
|
+
applicationId: e.applicationId
|
|
5645
5650
|
}, o = (e) => Nu(t ?? "", e, a, n);
|
|
5646
5651
|
return /* @__PURE__ */ R($, {
|
|
5647
5652
|
items: [
|
|
@@ -5657,20 +5662,20 @@ function Yu({ log: e, basePath: t, entityLinks: n, extraFields: r, onFilter: i }
|
|
|
5657
5662
|
label: "API Type",
|
|
5658
5663
|
value: e.apiType
|
|
5659
5664
|
},
|
|
5660
|
-
...e.
|
|
5665
|
+
...e.planName ? [{
|
|
5661
5666
|
label: "Plan",
|
|
5662
|
-
value: e.
|
|
5667
|
+
value: e.planName,
|
|
5663
5668
|
href: o("plan")
|
|
5664
5669
|
}] : [],
|
|
5665
|
-
...e.
|
|
5670
|
+
...e.applicationName ? [{
|
|
5666
5671
|
label: "Application",
|
|
5667
|
-
value: e.
|
|
5672
|
+
value: e.applicationName,
|
|
5668
5673
|
href: o("application")
|
|
5669
5674
|
}] : [],
|
|
5670
|
-
{
|
|
5675
|
+
...e.entrypointId ? [{
|
|
5671
5676
|
label: "Entrypoint",
|
|
5672
|
-
value: e.
|
|
5673
|
-
},
|
|
5677
|
+
value: e.entrypointId
|
|
5678
|
+
}] : [],
|
|
5674
5679
|
...e.endpoint ? [{
|
|
5675
5680
|
label: "Endpoint",
|
|
5676
5681
|
value: e.endpoint
|
|
@@ -5809,9 +5814,9 @@ function Qu({ log: e }) {
|
|
|
5809
5814
|
e.errorComponentName
|
|
5810
5815
|
]
|
|
5811
5816
|
}),
|
|
5812
|
-
e.
|
|
5817
|
+
e.message && /* @__PURE__ */ R("p", {
|
|
5813
5818
|
className: "text-xs text-muted-foreground mt-1",
|
|
5814
|
-
children: e.
|
|
5819
|
+
children: e.message
|
|
5815
5820
|
})
|
|
5816
5821
|
]
|
|
5817
5822
|
}), e.warnings?.map((e, t) => /* @__PURE__ */ z("div", {
|
|
@@ -5910,17 +5915,17 @@ function td({ log: e, onFilter: t }) {
|
|
|
5910
5915
|
label: "API Type",
|
|
5911
5916
|
value: e.apiType
|
|
5912
5917
|
},
|
|
5913
|
-
{
|
|
5918
|
+
...e.entrypointId ? [{
|
|
5914
5919
|
label: "Entrypoint",
|
|
5915
|
-
value: e.
|
|
5916
|
-
},
|
|
5917
|
-
...e.
|
|
5920
|
+
value: e.entrypointId
|
|
5921
|
+
}] : [],
|
|
5922
|
+
...e.planName ? [{
|
|
5918
5923
|
label: "Plan",
|
|
5919
|
-
value: e.
|
|
5924
|
+
value: e.planName
|
|
5920
5925
|
}] : [],
|
|
5921
|
-
...e.
|
|
5926
|
+
...e.applicationName ? [{
|
|
5922
5927
|
label: "Application",
|
|
5923
|
-
value: e.
|
|
5928
|
+
value: e.applicationName
|
|
5924
5929
|
}] : [],
|
|
5925
5930
|
{
|
|
5926
5931
|
label: "Transaction ID",
|
|
@@ -6181,8 +6186,8 @@ function sd({ log: e, basePath: t, entityLinks: n }) {
|
|
|
6181
6186
|
let r = {
|
|
6182
6187
|
apiType: e.apiType,
|
|
6183
6188
|
apiId: e.apiId,
|
|
6184
|
-
planId: e.
|
|
6185
|
-
applicationId: e.
|
|
6189
|
+
planId: e.planId,
|
|
6190
|
+
applicationId: e.applicationId
|
|
6186
6191
|
}, i = (e) => Nu(t ?? "", e, r, n);
|
|
6187
6192
|
return /* @__PURE__ */ R($, { items: [
|
|
6188
6193
|
{
|
|
@@ -6195,14 +6200,14 @@ function sd({ log: e, basePath: t, entityLinks: n }) {
|
|
|
6195
6200
|
value: e.callbackUrl ?? e.uri,
|
|
6196
6201
|
copyable: !0
|
|
6197
6202
|
},
|
|
6198
|
-
...e.
|
|
6203
|
+
...e.planName ? [{
|
|
6199
6204
|
label: "Plan",
|
|
6200
|
-
value: e.
|
|
6205
|
+
value: e.planName,
|
|
6201
6206
|
href: i("plan")
|
|
6202
6207
|
}] : [],
|
|
6203
|
-
...e.
|
|
6208
|
+
...e.applicationName ? [{
|
|
6204
6209
|
label: "Application",
|
|
6205
|
-
value: e.
|
|
6210
|
+
value: e.applicationName,
|
|
6206
6211
|
href: i("application")
|
|
6207
6212
|
}] : [],
|
|
6208
6213
|
{
|
|
@@ -8252,7 +8257,7 @@ function hp({ error: e, isSuccess: t }) {
|
|
|
8252
8257
|
}
|
|
8253
8258
|
function gp() {
|
|
8254
8259
|
let e = s(), t = at({
|
|
8255
|
-
queryKey: Q.customDashboards(),
|
|
8260
|
+
queryKey: Q.customDashboards(e?.module),
|
|
8256
8261
|
queryFn: ({ signal: t }) => {
|
|
8257
8262
|
if (!e) throw Error("No dashboard persistence configured.");
|
|
8258
8263
|
return e.fetchDashboards(t);
|
|
@@ -8263,7 +8268,7 @@ function gp() {
|
|
|
8263
8268
|
}
|
|
8264
8269
|
function _p(e) {
|
|
8265
8270
|
let t = s(), n = at({
|
|
8266
|
-
queryKey: Q.customDashboard(e ?? ""),
|
|
8271
|
+
queryKey: Q.customDashboard(e ?? "", t?.module),
|
|
8267
8272
|
queryFn: ({ signal: n }) => {
|
|
8268
8273
|
if (!t) throw Error("No dashboard persistence configured.");
|
|
8269
8274
|
if (!e) throw Error("A dashboard id is required but was called with a falsy value.");
|
|
@@ -8286,7 +8291,7 @@ function bp() {
|
|
|
8286
8291
|
function xp() {
|
|
8287
8292
|
let e = s(), t = ot();
|
|
8288
8293
|
return M((n) => {
|
|
8289
|
-
e?.adoptCurrentRevision?.(n.id), t.setQueryData(Q.customDashboard(n.id), r(n)), t.invalidateQueries({ queryKey: Q.customDashboards() });
|
|
8294
|
+
e?.adoptCurrentRevision?.(n.id), t.setQueryData(Q.customDashboard(n.id, e?.module), r(n)), t.invalidateQueries({ queryKey: Q.customDashboards(e?.module) });
|
|
8290
8295
|
}, [e, t]);
|
|
8291
8296
|
}
|
|
8292
8297
|
function Sp() {
|
|
@@ -8300,7 +8305,7 @@ function Cp(e) {
|
|
|
8300
8305
|
return rt({
|
|
8301
8306
|
mutationFn: (n) => t ? e(t, n) : Promise.reject(/* @__PURE__ */ Error("No dashboard persistence configured.")),
|
|
8302
8307
|
onSuccess: (e) => {
|
|
8303
|
-
i("write"), n.setQueryData(Q.customDashboard(e.id), e), n.invalidateQueries({ queryKey: Q.customDashboards() });
|
|
8308
|
+
i("write"), n.setQueryData(Q.customDashboard(e.id, t?.module), e), n.invalidateQueries({ queryKey: Q.customDashboards(t?.module) });
|
|
8304
8309
|
},
|
|
8305
8310
|
onError: (e) => {
|
|
8306
8311
|
a(e) && r("write");
|
|
@@ -8311,8 +8316,8 @@ function wp() {
|
|
|
8311
8316
|
let e = s(), t = ot(), { reportRefused: n, reportGranted: r } = b();
|
|
8312
8317
|
return rt({
|
|
8313
8318
|
mutationFn: (t) => e ? e.deleteDashboard(t) : Promise.reject(/* @__PURE__ */ Error("No dashboard persistence configured.")),
|
|
8314
|
-
onSuccess: (
|
|
8315
|
-
r("write"), t.removeQueries({ queryKey: Q.customDashboard(
|
|
8319
|
+
onSuccess: (n, i) => {
|
|
8320
|
+
r("write"), t.removeQueries({ queryKey: Q.customDashboard(i, e?.module) }), t.invalidateQueries({ queryKey: Q.customDashboards(e?.module) });
|
|
8316
8321
|
},
|
|
8317
8322
|
onError: (e) => {
|
|
8318
8323
|
a(e) && n("write");
|
|
@@ -12076,7 +12081,7 @@ function lg(e) {
|
|
|
12076
12081
|
};
|
|
12077
12082
|
}
|
|
12078
12083
|
function ug(e) {
|
|
12079
|
-
let t = e.description ?? void 0;
|
|
12084
|
+
let t = e.description ?? void 0, n = e.module ?? void 0;
|
|
12080
12085
|
return {
|
|
12081
12086
|
id: e.id,
|
|
12082
12087
|
title: e.title,
|
|
@@ -12085,7 +12090,8 @@ function ug(e) {
|
|
|
12085
12090
|
filters: (e.filters ?? []).map(sg),
|
|
12086
12091
|
timeRange: lg(e.timeRange),
|
|
12087
12092
|
createdAt: e.createdAt ?? 0,
|
|
12088
|
-
updatedAt: e.updatedAt ?? e.createdAt ?? 0
|
|
12093
|
+
updatedAt: e.updatedAt ?? e.createdAt ?? 0,
|
|
12094
|
+
...n === void 0 ? {} : { module: n }
|
|
12089
12095
|
};
|
|
12090
12096
|
}
|
|
12091
12097
|
function dg(e, t) {
|
|
@@ -12102,92 +12108,96 @@ function dg(e, t) {
|
|
|
12102
12108
|
//#region src/data-sources/http-dashboard-persistence.ts
|
|
12103
12109
|
var fg = "/observability/dashboards", pg = 100, mg = "*";
|
|
12104
12110
|
function hg(e, t) {
|
|
12105
|
-
let n = t?.fetch ?? globalThis.fetch.bind(globalThis), r = t?.credentials, i = t?.dashboardsPath ?? fg, a = `${e}${i}`,
|
|
12106
|
-
function
|
|
12111
|
+
let n = t?.fetch ?? globalThis.fetch.bind(globalThis), r = t?.credentials, i = t?.dashboardsPath ?? fg, a = t?.module, o = `${e}${i}`, s = (e) => `${o}/${encodeURIComponent(e)}`, c = a === void 0 ? "" : `module=${encodeURIComponent(a)}`, u = (e) => c ? `${e}?${c}` : e, d = t?.revisionStore ?? rg();
|
|
12112
|
+
function f(e, n) {
|
|
12107
12113
|
let i = {
|
|
12108
12114
|
method: e,
|
|
12109
12115
|
headers: Nr(n?.headers, Mr(t?.headers))
|
|
12110
12116
|
};
|
|
12111
12117
|
return n?.body !== void 0 && (i.body = n.body), n?.signal && (i.signal = n.signal), r && (i.credentials = r), i;
|
|
12112
12118
|
}
|
|
12113
|
-
function
|
|
12114
|
-
return
|
|
12119
|
+
function p(e, t, n, r) {
|
|
12120
|
+
return f(e, {
|
|
12115
12121
|
headers: Nr({ "Content-Type": "application/json" }, r),
|
|
12116
12122
|
body: JSON.stringify(t),
|
|
12117
12123
|
...n ? { signal: n } : {}
|
|
12118
12124
|
});
|
|
12119
12125
|
}
|
|
12120
|
-
function
|
|
12126
|
+
function m(e, t) {
|
|
12121
12127
|
return e ?? (typeof t == "number" ? `"${t}"` : null);
|
|
12122
12128
|
}
|
|
12123
|
-
function
|
|
12124
|
-
|
|
12129
|
+
function h(e, t, n, r) {
|
|
12130
|
+
d[r](e, m(t, n));
|
|
12125
12131
|
}
|
|
12126
|
-
async function
|
|
12132
|
+
async function g(e) {
|
|
12127
12133
|
try {
|
|
12128
12134
|
return await e.json();
|
|
12129
12135
|
} catch {
|
|
12130
12136
|
return null;
|
|
12131
12137
|
}
|
|
12132
12138
|
}
|
|
12133
|
-
async function
|
|
12134
|
-
let r = await
|
|
12139
|
+
async function _(e, t, n) {
|
|
12140
|
+
let r = await g(e), i = r?.message ?? `[gamma-lib-observability] HTTP ${e.status} on ${t}`;
|
|
12135
12141
|
switch (e.status) {
|
|
12136
12142
|
case 403: return new ne(i);
|
|
12137
12143
|
case 404: return n === void 0 ? new D(e.status, i) : new l(n, i);
|
|
12138
12144
|
case 412:
|
|
12139
12145
|
if (r?.dashboard) {
|
|
12140
|
-
let t = r.dashboard, n =
|
|
12141
|
-
return
|
|
12146
|
+
let t = r.dashboard, n = m(e.headers.get("ETag"), r.currentVersion ?? t.version);
|
|
12147
|
+
return d.offer(t.id, n), new ee(i, ug(t), r.currentVersion ?? t.version ?? void 0);
|
|
12142
12148
|
}
|
|
12143
12149
|
return new D(e.status, i);
|
|
12144
12150
|
default: return new D(e.status, i);
|
|
12145
12151
|
}
|
|
12146
12152
|
}
|
|
12147
|
-
async function
|
|
12153
|
+
async function v(e, t) {
|
|
12148
12154
|
let n = await e.json();
|
|
12149
|
-
return
|
|
12155
|
+
return h(n.id, e.headers.get("ETag"), n.version, t), ug(n);
|
|
12150
12156
|
}
|
|
12151
|
-
async function
|
|
12152
|
-
let r = await n(
|
|
12153
|
-
if (!r.ok) throw await
|
|
12154
|
-
return
|
|
12157
|
+
async function y(e, t) {
|
|
12158
|
+
let r = await n(u(s(e)), f("GET", t ? { signal: t } : void 0));
|
|
12159
|
+
if (!r.ok) throw await _(r, `GET ${i}/{dashboardId}`, e);
|
|
12160
|
+
return v(r, "sight");
|
|
12155
12161
|
}
|
|
12156
|
-
async function
|
|
12157
|
-
return
|
|
12162
|
+
async function b(e, t) {
|
|
12163
|
+
return d.current(e) || (console.warn(`[gamma-lib-observability] Saving dashboard "${e}" that this persistence never read. Its current revision is read back first, so an edit saved in between is overwritten without a conflict. Read or create the dashboard through the same instance before saving, or pass a shared \`revisionStore\` if the adapter is being rebuilt.`), await y(e, t), d.current(e) ?? mg);
|
|
12158
12164
|
}
|
|
12159
12165
|
return {
|
|
12160
|
-
|
|
12166
|
+
...a === void 0 ? {} : { module: a },
|
|
12167
|
+
fetchDashboard: y,
|
|
12161
12168
|
adoptCurrentRevision(e) {
|
|
12162
|
-
|
|
12169
|
+
d.adopt(e);
|
|
12163
12170
|
},
|
|
12164
12171
|
takeReadRevision(e) {
|
|
12165
|
-
|
|
12172
|
+
d.take(e);
|
|
12166
12173
|
},
|
|
12167
12174
|
async fetchDashboards(e) {
|
|
12168
12175
|
let t = [];
|
|
12169
12176
|
for (let r = 1;; r += 1) {
|
|
12170
|
-
let
|
|
12171
|
-
if (!
|
|
12172
|
-
let
|
|
12173
|
-
for (let e of
|
|
12174
|
-
let
|
|
12175
|
-
if (
|
|
12177
|
+
let a = c ? `&${c}` : "", s = await n(`${o}?page=${r}&perPage=${pg}${a}`, f("GET", e ? { signal: e } : void 0));
|
|
12178
|
+
if (!s.ok) throw await _(s, `GET ${i}`);
|
|
12179
|
+
let l = await s.json(), u = l.data ?? [];
|
|
12180
|
+
for (let e of u) h(e.id, null, e.version, "seed"), t.push(ug(e));
|
|
12181
|
+
let d = l.pagination?.pageCount ?? 0;
|
|
12182
|
+
if (u.length === 0 || r >= d) return t;
|
|
12176
12183
|
}
|
|
12177
12184
|
},
|
|
12178
12185
|
async createDashboard(e, t) {
|
|
12179
|
-
let r = await n(
|
|
12180
|
-
|
|
12181
|
-
|
|
12186
|
+
let r = await n(o, p("POST", {
|
|
12187
|
+
...dg(e, { includeId: !0 }),
|
|
12188
|
+
...a === void 0 ? {} : { module: a }
|
|
12189
|
+
}, t));
|
|
12190
|
+
if (!r.ok) throw await _(r, `POST ${i}`, e.id);
|
|
12191
|
+
return v(r, "refresh");
|
|
12182
12192
|
},
|
|
12183
12193
|
async updateDashboard(e, t, r) {
|
|
12184
|
-
let a = r?.force ? mg : await
|
|
12185
|
-
if (!
|
|
12186
|
-
return
|
|
12194
|
+
let a = r?.force ? mg : await b(e.id, t), o = await n(s(e.id), p("PUT", dg(e, { includeId: !1 }), t, { "If-Match": a }));
|
|
12195
|
+
if (!o.ok) throw await _(o, `PUT ${i}/{dashboardId}`, e.id);
|
|
12196
|
+
return v(o, "refresh");
|
|
12187
12197
|
},
|
|
12188
12198
|
async deleteDashboard(e, t) {
|
|
12189
|
-
let r = await n(
|
|
12190
|
-
if (
|
|
12199
|
+
let r = await n(s(e), f("DELETE", t ? { signal: t } : void 0));
|
|
12200
|
+
if (d.forget(e), !r.ok && r.status !== 404) throw await _(r, `DELETE ${i}/{dashboardId}`, e);
|
|
12191
12201
|
}
|
|
12192
12202
|
};
|
|
12193
12203
|
}
|
|
@@ -13638,7 +13648,10 @@ function D_({ contextFilters: e, scopeFilterField: t }) {
|
|
|
13638
13648
|
children: /* @__PURE__ */ R(Xh, { scopeFilterField: t })
|
|
13639
13649
|
});
|
|
13640
13650
|
}
|
|
13641
|
-
function O_(
|
|
13651
|
+
function O_(e) {
|
|
13652
|
+
if (e.features.dashboards?.enabled && !e.module) throw Error("[gamma-lib-observability] `module` is required when `features.dashboards` is enabled. Pass your Gamma module id to defineObservabilityFeatures (e.g. `module: 'aim'`): custom dashboards are created in, and listed for, that module.");
|
|
13653
|
+
}
|
|
13654
|
+
function k_({ baseUrl: e, tracesBaseUrl: t, http: n, dataSource: r, filterProviders: a, logsPage: o, logsDataSource: c, logsColumns: l, logsOnRowClick: u, logsGetRowId: f, logsGetApiId: p, logsDetailBasePath: h, tracesDataSource: g, loadTracingApis: _, config: b }) {
|
|
13642
13655
|
let x = Ir(), S = Lr(n ?? x), E = i(), ee = d(), te = P(() => Og(e, S), [e, S]), D = r !== void 0 || ee === null, ne = r ?? ee ?? te, O = P(() => jg(e, S), [e, S]), k = y(), re = P(() => b.features.logs?.enabled ? Ng(e, S) : void 0, [
|
|
13643
13656
|
e,
|
|
13644
13657
|
S,
|
|
@@ -13647,7 +13660,9 @@ function O_({ baseUrl: e, tracesBaseUrl: t, http: n, dataSource: r, filterProvid
|
|
|
13647
13660
|
oe,
|
|
13648
13661
|
S,
|
|
13649
13662
|
b.features.tracing?.enabled
|
|
13650
|
-
]), ce = g ?? ae ?? se, le = g !== void 0 || ae === null, ue = b.features.dashboards
|
|
13663
|
+
]), ce = g ?? ae ?? se, le = g !== void 0 || ae === null, ue = b.features.dashboards;
|
|
13664
|
+
O_(b);
|
|
13665
|
+
let de = s(), [fe, pe] = I(() => ({
|
|
13651
13666
|
baseUrl: e,
|
|
13652
13667
|
store: rg()
|
|
13653
13668
|
}));
|
|
@@ -13657,11 +13672,13 @@ function O_({ baseUrl: e, tracesBaseUrl: t, http: n, dataSource: r, filterProvid
|
|
|
13657
13672
|
});
|
|
13658
13673
|
let me = P(() => ue?.enabled ? hg(e, {
|
|
13659
13674
|
...S,
|
|
13675
|
+
module: b.module,
|
|
13660
13676
|
revisionStore: fe.store
|
|
13661
13677
|
}) : void 0, [
|
|
13662
13678
|
e,
|
|
13663
13679
|
S,
|
|
13664
13680
|
ue?.enabled,
|
|
13681
|
+
b.module,
|
|
13665
13682
|
fe
|
|
13666
13683
|
]), he = de ?? me, ge = de === null, _e = b.features.logs, j = b.features.tracing, ve = b_(ue, b.scopeApiTypes), ye = b_(_e, b.scopeApiTypes), be = !!ue?.enabled && E["observability.dashboards.read"], xe = !!_e?.enabled && E["observability.logs.read"], Se = !!j?.enabled && E["observability.traces.read"] && !!ce, Ce = _e?.enabled, we = _e?.logDetail, Te = _e?.entityLinks, Ee = P(() => {
|
|
13667
13684
|
if (Ce) return we || gd({
|
|
@@ -13755,7 +13772,7 @@ function O_({ baseUrl: e, tracesBaseUrl: t, http: n, dataSource: r, filterProvid
|
|
|
13755
13772
|
path: "logs/:logId",
|
|
13756
13773
|
element: /* @__PURE__ */ R($r, {
|
|
13757
13774
|
filters: ye.contextFilters,
|
|
13758
|
-
children: x_(ie, A, /* @__PURE__ */ R(
|
|
13775
|
+
children: x_(ie, A, /* @__PURE__ */ R(A_, { config: Ee }))
|
|
13759
13776
|
})
|
|
13760
13777
|
}),
|
|
13761
13778
|
Se && j && ce && /* @__PURE__ */ z(L, { children: [
|
|
@@ -13795,7 +13812,7 @@ function O_({ baseUrl: e, tracesBaseUrl: t, http: n, dataSource: r, filterProvid
|
|
|
13795
13812
|
children: Pe
|
|
13796
13813
|
}) : Pe });
|
|
13797
13814
|
}
|
|
13798
|
-
function
|
|
13815
|
+
function A_({ config: e }) {
|
|
13799
13816
|
let t = ar(), { filters: n, timeRange: r } = Jl();
|
|
13800
13817
|
return /* @__PURE__ */ R(Ud, {
|
|
13801
13818
|
config: e,
|
|
@@ -13813,7 +13830,7 @@ function k_({ config: e }) {
|
|
|
13813
13830
|
}
|
|
13814
13831
|
//#endregion
|
|
13815
13832
|
//#region src/routing/define-observability-features.ts
|
|
13816
|
-
var
|
|
13833
|
+
var j_ = {
|
|
13817
13834
|
dashboards: {
|
|
13818
13835
|
icon: de,
|
|
13819
13836
|
title: "Dashboards",
|
|
@@ -13833,10 +13850,10 @@ var A_ = {
|
|
|
13833
13850
|
showInNav: !0
|
|
13834
13851
|
}
|
|
13835
13852
|
};
|
|
13836
|
-
function
|
|
13837
|
-
let t = e.basePath ?? "observe", n =
|
|
13853
|
+
function M_(e) {
|
|
13854
|
+
let t = e.basePath ?? "observe", n = N_(e), r = P_(e, n, t), i = n.map((e) => `${t}/${e}`), a = F_(n, t);
|
|
13838
13855
|
function o(t) {
|
|
13839
|
-
return qe(
|
|
13856
|
+
return qe(k_, {
|
|
13840
13857
|
...t,
|
|
13841
13858
|
config: e
|
|
13842
13859
|
});
|
|
@@ -13865,13 +13882,13 @@ function j_(e) {
|
|
|
13865
13882
|
breadcrumbSegments: c
|
|
13866
13883
|
};
|
|
13867
13884
|
}
|
|
13868
|
-
function
|
|
13885
|
+
function N_(e) {
|
|
13869
13886
|
let t = [];
|
|
13870
|
-
return e.features.dashboards?.enabled && t.push("dashboards"), e.features.logs?.enabled && t.push("logs"), e.features.tracing?.enabled && t.push("tracing"), t.sort((e, t) =>
|
|
13887
|
+
return e.features.dashboards?.enabled && t.push("dashboards"), e.features.logs?.enabled && t.push("logs"), e.features.tracing?.enabled && t.push("tracing"), t.sort((e, t) => j_[e].order - j_[t].order);
|
|
13871
13888
|
}
|
|
13872
|
-
function
|
|
13873
|
-
let r = t.filter((e) =>
|
|
13874
|
-
let r =
|
|
13889
|
+
function P_(e, t, n) {
|
|
13890
|
+
let r = t.filter((e) => j_[e].showInNav).map((t) => {
|
|
13891
|
+
let r = j_[t], i = e.nav.overrides?.[t];
|
|
13875
13892
|
return {
|
|
13876
13893
|
key: `${n}/${t}`,
|
|
13877
13894
|
title: i?.title ?? r.title,
|
|
@@ -13883,10 +13900,10 @@ function N_(e, t, n) {
|
|
|
13883
13900
|
items: r
|
|
13884
13901
|
};
|
|
13885
13902
|
}
|
|
13886
|
-
function
|
|
13903
|
+
function F_(e, t) {
|
|
13887
13904
|
let n = {};
|
|
13888
13905
|
for (let r of e) {
|
|
13889
|
-
let e =
|
|
13906
|
+
let e = j_[r], i = `${t}/${r}`;
|
|
13890
13907
|
n[i] = {
|
|
13891
13908
|
path: `${t}/${r}`,
|
|
13892
13909
|
label: e.title
|
|
@@ -13896,7 +13913,7 @@ function P_(e, t) {
|
|
|
13896
13913
|
}
|
|
13897
13914
|
//#endregion
|
|
13898
13915
|
//#region src/build-observability-base-url.ts
|
|
13899
|
-
function
|
|
13916
|
+
function I_(e, t, n, r) {
|
|
13900
13917
|
let i = e;
|
|
13901
13918
|
if (r?.useDevProxy) try {
|
|
13902
13919
|
i = new URL(i).pathname;
|
|
@@ -13905,81 +13922,87 @@ function F_(e, t, n, r) {
|
|
|
13905
13922
|
}
|
|
13906
13923
|
//#endregion
|
|
13907
13924
|
//#region src/build-traces-base-url.ts
|
|
13908
|
-
function
|
|
13909
|
-
return
|
|
13925
|
+
function L_(e, t, n, r) {
|
|
13926
|
+
return I_(e, t, n, r);
|
|
13910
13927
|
}
|
|
13911
13928
|
//#endregion
|
|
13912
13929
|
//#region src/persistence/local-storage-dashboard-persistence.ts
|
|
13913
|
-
var
|
|
13914
|
-
function
|
|
13915
|
-
let t = e.storageKey ??
|
|
13930
|
+
var R_ = "observability.custom-dashboards", z_ = 1;
|
|
13931
|
+
function B_(e = {}) {
|
|
13932
|
+
let t = e.storageKey ?? R_, n = e.module, r = (e) => n === void 0 || e.module === n, i = (e, t) => {
|
|
13933
|
+
let n = e.dashboards[t];
|
|
13934
|
+
return n && r(n) ? n : void 0;
|
|
13935
|
+
}, a = () => {
|
|
13916
13936
|
if (e.storage) return e.storage;
|
|
13917
13937
|
if (typeof window > "u" || !window.localStorage) throw Error("[gamma-lib-observability] localStorage is not available in this environment.");
|
|
13918
13938
|
return window.localStorage;
|
|
13919
|
-
},
|
|
13920
|
-
let e =
|
|
13939
|
+
}, o = () => {
|
|
13940
|
+
let e = a().getItem(t);
|
|
13921
13941
|
if (!e) return {
|
|
13922
|
-
version:
|
|
13942
|
+
version: z_,
|
|
13923
13943
|
dashboards: {}
|
|
13924
13944
|
};
|
|
13925
|
-
let
|
|
13926
|
-
if (typeof
|
|
13927
|
-
return
|
|
13928
|
-
},
|
|
13929
|
-
|
|
13945
|
+
let n = JSON.parse(e);
|
|
13946
|
+
if (typeof n != "object" || !n || typeof n.version != "number" || typeof n.dashboards != "object") throw Error(`[gamma-lib-observability] Corrupted dashboard storage under "${t}".`);
|
|
13947
|
+
return n;
|
|
13948
|
+
}, s = (e) => {
|
|
13949
|
+
a().setItem(t, JSON.stringify(e));
|
|
13930
13950
|
};
|
|
13931
13951
|
return {
|
|
13952
|
+
...n === void 0 ? {} : { module: n },
|
|
13932
13953
|
fetchDashboards: async () => {
|
|
13933
|
-
let { dashboards: e } =
|
|
13934
|
-
return Object.values(e).sort((e, t) => t.updatedAt - e.updatedAt);
|
|
13954
|
+
let { dashboards: e } = o();
|
|
13955
|
+
return Object.values(e).filter(r).sort((e, t) => t.updatedAt - e.updatedAt);
|
|
13935
13956
|
},
|
|
13936
13957
|
fetchDashboard: async (e) => {
|
|
13937
|
-
let t =
|
|
13958
|
+
let t = i(o(), e);
|
|
13938
13959
|
if (!t) throw new l(e, `Dashboard "${e}" was not found.`);
|
|
13939
13960
|
return t;
|
|
13940
13961
|
},
|
|
13941
13962
|
createDashboard: async (e) => {
|
|
13942
|
-
let t =
|
|
13963
|
+
let t = o();
|
|
13943
13964
|
if (t.dashboards[e.id]) throw Error(`Dashboard "${e.id}" already exists.`);
|
|
13944
|
-
let
|
|
13945
|
-
...
|
|
13946
|
-
createdAt:
|
|
13947
|
-
updatedAt:
|
|
13965
|
+
let r = Date.now(), { module: i, ...a } = e, c = {
|
|
13966
|
+
...a,
|
|
13967
|
+
createdAt: r,
|
|
13968
|
+
updatedAt: r,
|
|
13969
|
+
...n === void 0 ? {} : { module: n }
|
|
13948
13970
|
};
|
|
13949
|
-
return
|
|
13971
|
+
return s({
|
|
13950
13972
|
...t,
|
|
13951
13973
|
dashboards: {
|
|
13952
13974
|
...t.dashboards,
|
|
13953
|
-
[e.id]:
|
|
13975
|
+
[e.id]: c
|
|
13954
13976
|
}
|
|
13955
|
-
}),
|
|
13977
|
+
}), c;
|
|
13956
13978
|
},
|
|
13957
13979
|
updateDashboard: async (e) => {
|
|
13958
|
-
let t =
|
|
13980
|
+
let t = o(), n = i(t, e.id);
|
|
13959
13981
|
if (!n) throw new l(e.id, `Dashboard "${e.id}" was not found.`);
|
|
13960
|
-
let a = {
|
|
13961
|
-
...
|
|
13982
|
+
let { module: r, ...a } = e, c = {
|
|
13983
|
+
...a,
|
|
13962
13984
|
createdAt: n.createdAt,
|
|
13963
|
-
updatedAt: Date.now()
|
|
13985
|
+
updatedAt: Date.now(),
|
|
13986
|
+
...n.module === void 0 ? {} : { module: n.module }
|
|
13964
13987
|
};
|
|
13965
|
-
return
|
|
13988
|
+
return s({
|
|
13966
13989
|
...t,
|
|
13967
13990
|
dashboards: {
|
|
13968
13991
|
...t.dashboards,
|
|
13969
|
-
[e.id]:
|
|
13992
|
+
[e.id]: c
|
|
13970
13993
|
}
|
|
13971
|
-
}),
|
|
13994
|
+
}), c;
|
|
13972
13995
|
},
|
|
13973
13996
|
deleteDashboard: async (e) => {
|
|
13974
|
-
let t =
|
|
13975
|
-
if (!t
|
|
13976
|
-
let { [e]: n, ...
|
|
13977
|
-
|
|
13997
|
+
let t = o();
|
|
13998
|
+
if (!i(t, e)) return;
|
|
13999
|
+
let { [e]: n, ...r } = t.dashboards;
|
|
14000
|
+
s({
|
|
13978
14001
|
...t,
|
|
13979
|
-
dashboards:
|
|
14002
|
+
dashboards: r
|
|
13980
14003
|
});
|
|
13981
14004
|
}
|
|
13982
14005
|
};
|
|
13983
14006
|
}
|
|
13984
14007
|
//#endregion
|
|
13985
|
-
export { cr as API_TYPE_REGISTRY, fl as AnalyticsTable, Jo as BarPresentation, Pi as CODEC_VERSION, n as CapabilityProvider, $s as CartesianPresentation, $r as ContextFiltersProvider, Js as DASHBOARD_BUCKET_TARGET, e as DEFAULT_CAPABILITIES, Sr as DEFAULT_MEASURE, Di as DEFAULT_PERIOD, wr as DEFAULT_REFRESH_INTERVAL_MS, Rr as DEFAULT_STALE_TIME, Fi as DEFAULT_TIME_RANGE, ee as DashboardConflictError, ne as DashboardForbiddenError, l as DashboardNotFoundError, D as DashboardPersistenceError, m as DashboardPersistenceProvider, Hl as DashboardTemplatesProvider, Pl as DashboardView, oc as DoughnutPresentation, Rc as ExplorerTable, g as FILTER_OPERATORS, ra as FILTER_SCOPES, fo as FilterBar, Qa as FilterChip, Ha as FilterPopoverForm, ha as FilterPropertyCombobox, C as FilterProvidersProvider, te as GRID_COLS, o as GRID_VERSION, Do as HTTP_STATUS_PALETTE, Fr as HttpProvider, ql as LiveIndicator, Er as LiveRefreshProvider, Bu as LogDetailCodeBlock, xd as LogDetailContextChart, Vd as LogDetailDrawer, kd as LogDetailDrawerShell, Hu as LogDetailEmptyField, Nd as LogDetailHeader, Uu as LogDetailHeadersTable, Wu as LogDetailJsonTree, $ as LogDetailKeyValueGrid, Pd as LogDetailMetrics, Ud as LogDetailPage, Ld as LogDetailSection, Id as LogDetailSections, pu as LogSeverityBadge, Cu as LogTable, f as LogsDataSourceProvider, Du as LogsExplorerPage, dc as MetricGroupPresentation, gc as MetricPresentation, v as MetricsDataSourceProvider, ji as PERIOD_DISPLAY_LABELS, Ai as PERIOD_LABELS, Tf as POLICY_POST_EVENT, wf as POLICY_PRE_EVENT, Oi as PRESET_CATEGORIES, xf as PolicyAttributeDiff, Gl as QueryErrorBanner, ki as RELATIVE_PERIODS, na as SCOPE_COMMON, ta as SIGNAL_DATA_TYPES, pr as SIGNAL_REGISTRY, Nf as SpanDetailPanel, _l as TablePresentation, Xi as TimeRangePicker, Zi as TimeRangeZoomReset, rp as TraceDetailDrawer, np as TraceDetailPage, Zf as TraceDetailShell, $d as TraceExplorerPage, Uf as TraceLineage, Gd as TraceStatusBadge, Zd as TraceTable, Yf as TraceTimeline, x as TracesDataSourceProvider, uf as TracingApiSelector, v_ as TracingScreen, Ll as WidgetGroup, yo as WidgetInteractionProvider, Ol as WidgetItem, Lu as buildApiTypeLink, Ja as buildChipLabel, Ya as buildChipLabelParts, Xa as buildChipTooltip, po as buildDashboardDeepLink, Ru as buildDefaultConnectionLogColumns, gd as buildDefaultLogDetailConfig, da as buildFilterScopes, Ou as buildLogsDeepLink,
|
|
14008
|
+
export { cr as API_TYPE_REGISTRY, fl as AnalyticsTable, Jo as BarPresentation, Pi as CODEC_VERSION, n as CapabilityProvider, $s as CartesianPresentation, $r as ContextFiltersProvider, Js as DASHBOARD_BUCKET_TARGET, e as DEFAULT_CAPABILITIES, Sr as DEFAULT_MEASURE, Di as DEFAULT_PERIOD, wr as DEFAULT_REFRESH_INTERVAL_MS, Rr as DEFAULT_STALE_TIME, Fi as DEFAULT_TIME_RANGE, ee as DashboardConflictError, ne as DashboardForbiddenError, l as DashboardNotFoundError, D as DashboardPersistenceError, m as DashboardPersistenceProvider, Hl as DashboardTemplatesProvider, Pl as DashboardView, oc as DoughnutPresentation, Rc as ExplorerTable, g as FILTER_OPERATORS, ra as FILTER_SCOPES, fo as FilterBar, Qa as FilterChip, Ha as FilterPopoverForm, ha as FilterPropertyCombobox, C as FilterProvidersProvider, te as GRID_COLS, o as GRID_VERSION, Do as HTTP_STATUS_PALETTE, Fr as HttpProvider, ql as LiveIndicator, Er as LiveRefreshProvider, Bu as LogDetailCodeBlock, xd as LogDetailContextChart, Vd as LogDetailDrawer, kd as LogDetailDrawerShell, Hu as LogDetailEmptyField, Nd as LogDetailHeader, Uu as LogDetailHeadersTable, Wu as LogDetailJsonTree, $ as LogDetailKeyValueGrid, Pd as LogDetailMetrics, Ud as LogDetailPage, Ld as LogDetailSection, Id as LogDetailSections, pu as LogSeverityBadge, Cu as LogTable, f as LogsDataSourceProvider, Du as LogsExplorerPage, dc as MetricGroupPresentation, gc as MetricPresentation, v as MetricsDataSourceProvider, ji as PERIOD_DISPLAY_LABELS, Ai as PERIOD_LABELS, Tf as POLICY_POST_EVENT, wf as POLICY_PRE_EVENT, Oi as PRESET_CATEGORIES, xf as PolicyAttributeDiff, Gl as QueryErrorBanner, ki as RELATIVE_PERIODS, na as SCOPE_COMMON, ta as SIGNAL_DATA_TYPES, pr as SIGNAL_REGISTRY, Nf as SpanDetailPanel, _l as TablePresentation, Xi as TimeRangePicker, Zi as TimeRangeZoomReset, rp as TraceDetailDrawer, np as TraceDetailPage, Zf as TraceDetailShell, $d as TraceExplorerPage, Uf as TraceLineage, Gd as TraceStatusBadge, Zd as TraceTable, Yf as TraceTimeline, x as TracesDataSourceProvider, uf as TracingApiSelector, v_ as TracingScreen, Ll as WidgetGroup, yo as WidgetInteractionProvider, Ol as WidgetItem, Lu as buildApiTypeLink, Ja as buildChipLabel, Ya as buildChipLabelParts, Xa as buildChipTooltip, po as buildDashboardDeepLink, Ru as buildDefaultConnectionLogColumns, gd as buildDefaultLogDetailConfig, da as buildFilterScopes, Ou as buildLogsDeepLink, I_ as buildObservabilityBaseUrl, aa as buildScopeFromId, Dc as buildTableMetrics, L_ as buildTracesBaseUrl, gf as buildTracesDeepLink, wl as clearWidgetRenderers, Ys as computeBucketInterval, Af as computePolicyAttributeDiff, is as computePreviousTimeRange, Qo as computeTrend, Ju as connectionLogPreset, rg as createDashboardRevisionStore, hg as createHttpDashboardPersistence, Og as createHttpDataSource, jg as createHttpFilterSource, Ng as createHttpLogsSource, d_ as createHttpTracesFilterSource, Ug as createHttpTracesSource, B_ as createLocalStorageDashboardPersistence, Vi as decodeObservabilityState, Rl as defineDashboardTemplate, $i as defineFilterProvider, pd as defineLogDetail, M_ as defineObservabilityFeatures, Bi as encodeObservabilityState, Xo as extractMeasureValue, $o as extractSparklineData, Eo as facetsToBar, wo as facetsToDoughnut, qd as formatDuration, Wc as formatTableValue, Kd as formatTraceTime, ur as getApiType, fr as getApiTypeOrFallback, ti as getLocaleWeekStart, hr as getSignal, Cl as getWidgetRenderer, vr as isBarWidget, gr as isCartesianWidget, a as isDashboardForbidden, t as isDashboardGone, _r as isDoughnutWidget, br as isMetricGroupWidget, yr as isMetricWidget, Ma as isMultiSelectForFilter, ko as isStatusFacetField, xr as isTableWidget, pf as isTracingApiLegacyLoader, hf as isTracingApiPaginatedLoad, ff as isTracingApiPaginatedLoader, df as isTracingApiPaginatedLoaderConfig, Zo as measureResultToMetric, Yr as mergeFilters, js as mergeTimeSeries, Ms as mergeTimeSeriesToCartesian, ed as messageLogPreset, r as migrateDashboardLayout, Na as normalizeMembershipOperatorForValues, Ao as normalizeStatusGroupKey, Q as observabilityQueryKeys, Da as operatorLabel, Oa as operatorNeedsValue, cm as parseDashboardJson, $c as planColumns, El as registerDefaultRenderers, Sl as registerWidgetRenderer, zl as resolveDashboardFromTemplate, ma as resolveDataTypeIds, Po as resolveGroupColor, md as resolveLogDetailVariant, Nu as resolveLogEntityLink, Cr as resolveMeasure, hd as resolvePreset, ci as resolveRelativePeriod, ui as resolveStableTimeRange, jo as resolveStatusPaletteColor, xc as resolveTableColumns, Sc as resolveTableSort, mf as resolveTracingApiPaginatedLoader, el as rowsThatFit, sm as serializeDashboard, vc as tableColumnId, fa as toFilterItems, xp as useAdoptServerDashboard, Ac as useAnalyticsTableQuery, i as useCapabilities, _ as useCapability, ei as useContextFilters, vp as useCreateDashboardMutation, _p as useCustomDashboardQuery, gp as useCustomDashboardsQuery, p as useDashboardPersistence, Wl as useDashboardTemplate, Ul as useDashboardTemplates, wp as useDeleteDashboardMutation, mi as useFacetsQuery, h as useFilterProvider, c as useFilterProviders, Ir as useHttpOptions, Gr as useInfiniteOptions, Dr as useLiveRefresh, wd as useLogDetailDrawerExpand, hi as useLogDetailQuery, S as useLogsDataSource, yi as useLogsPagedQuery, gi as useLogsQuery, bi as useMeasuresQuery, Io as useMergedWidgetFilters, E as useMetricsDataSource, s as useOptionalDashboardPersistence, Or as useOptionalLiveRefresh, y as useOptionalLogsDataSource, d as useOptionalMetricsDataSource, w as useOptionalTracesDataSource, bp as useOverwriteDashboardMutation, Lr as useStableHttpOptions, fi as useStableTimeRange, Sp as useTakeReadDashboardRevision, Qi as useTimeRangeZoom, Si as useTimeSeriesQuery, Ci as useTraceDetailQuery, u as useTracesDataSource, Ei as useTracesPagedQuery, yp as useUpdateDashboardMutation, _o as useWidgetGroupContext, bo as useWidgetInteractionContext, od as webhookLogPreset };
|
|
@@ -5,7 +5,6 @@ import { LogDetailVariant } from '../types';
|
|
|
5
5
|
* Consumers implementing `getById` should return an object matching this interface.
|
|
6
6
|
*/
|
|
7
7
|
export interface ConnectionLogDetailData {
|
|
8
|
-
id: string;
|
|
9
8
|
requestId: string;
|
|
10
9
|
transactionId: string;
|
|
11
10
|
apiId: string;
|
|
@@ -17,7 +16,7 @@ export interface ConnectionLogDetailData {
|
|
|
17
16
|
status: number;
|
|
18
17
|
uri: string;
|
|
19
18
|
endpoint?: string;
|
|
20
|
-
|
|
19
|
+
entrypointId?: string;
|
|
21
20
|
gatewayResponseTime: number;
|
|
22
21
|
gatewayLatency?: number;
|
|
23
22
|
endpointResponseTime?: number;
|
|
@@ -25,20 +24,16 @@ export interface ConnectionLogDetailData {
|
|
|
25
24
|
gatewayHostname?: string;
|
|
26
25
|
gatewayIp?: string;
|
|
27
26
|
clientIdentifier?: string;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
application?: {
|
|
33
|
-
id: string;
|
|
34
|
-
name: string;
|
|
35
|
-
};
|
|
27
|
+
planId?: string;
|
|
28
|
+
planName?: string;
|
|
29
|
+
applicationId?: string;
|
|
30
|
+
applicationName?: string;
|
|
36
31
|
mcpMethod?: string;
|
|
37
32
|
apiProductName?: string;
|
|
38
33
|
errorKey?: string;
|
|
39
34
|
errorComponentName?: string;
|
|
40
35
|
errorComponentType?: string;
|
|
41
|
-
|
|
36
|
+
message?: string;
|
|
42
37
|
warnings?: Array<{
|
|
43
38
|
key: string;
|
|
44
39
|
componentType?: string;
|