@gravitee/gamma-lib-observability 3.3.0-beta.4-feat-rule-api-types.9b8cfeb → 3.3.0-beta.5
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/dist/index.js
CHANGED
|
@@ -15053,10 +15053,10 @@ function hy(e, t) {
|
|
|
15053
15053
|
return Math.min(288, my(e, t));
|
|
15054
15054
|
}
|
|
15055
15055
|
function gy(e, t, n = Date.now()) {
|
|
15056
|
-
let r = my(e, t);
|
|
15056
|
+
let r = my(e, t), i = Math.max(1, t) * 1e3, a = Math.floor(n / i) * i + i;
|
|
15057
15057
|
return {
|
|
15058
|
-
from:
|
|
15059
|
-
to:
|
|
15058
|
+
from: a - r * i,
|
|
15059
|
+
to: a,
|
|
15060
15060
|
intervalSeconds: t,
|
|
15061
15061
|
slots: r
|
|
15062
15062
|
};
|
|
@@ -14,14 +14,18 @@ export declare function spanWindows(range: HistoryRange, intervalSeconds: number
|
|
|
14
14
|
export declare function windowsFor(range: HistoryRange, intervalSeconds: number): number;
|
|
15
15
|
/**
|
|
16
16
|
* The time the history is drawn against: `slots` consecutive windows of the
|
|
17
|
-
* target's interval
|
|
18
|
-
*
|
|
19
|
-
*
|
|
17
|
+
* target's interval, the last one being the window `now` falls in. Windows are
|
|
18
|
+
* cut on the epoch, the way the scheduler cuts them, so the one evaluation the
|
|
19
|
+
* scheduler stores per window lands in one cell: a strip with no hole is a
|
|
20
|
+
* target evaluated every window, and a hole is a window nothing evaluated.
|
|
21
|
+
* Evaluations are placed by their timestamp, so a stretch the scheduler
|
|
22
|
+
* skipped stays empty instead of being squeezed away, and a range means the
|
|
23
|
+
* time it names.
|
|
20
24
|
*/
|
|
21
25
|
export interface TimeAxis {
|
|
22
26
|
/** Epoch milliseconds of the first slot's start. */
|
|
23
27
|
readonly from: number;
|
|
24
|
-
/** Epoch milliseconds the last slot ends at. */
|
|
28
|
+
/** Epoch milliseconds the last slot ends at; a little ahead of now, since the last slot is the current one. */
|
|
25
29
|
readonly to: number;
|
|
26
30
|
readonly intervalSeconds: number;
|
|
27
31
|
readonly slots: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-range.d.ts","sourceRoot":"","sources":["../../src/targets/history-range.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,4EAA4E;AAC5E,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAE/C,eAAO,MAAM,cAAc,EAAE,SAAS;IACpC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,EAIA,CAAC;AAEF,mGAAmG;AACnG,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC,yGAAyG;AACzG,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAGhF;AAED,2GAA2G;AAC3G,wBAAgB,UAAU,CAAC,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAE/E;AAED
|
|
1
|
+
{"version":3,"file":"history-range.d.ts","sourceRoot":"","sources":["../../src/targets/history-range.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,4EAA4E;AAC5E,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAE/C,eAAO,MAAM,cAAc,EAAE,SAAS;IACpC,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,EAIA,CAAC;AAEF,mGAAmG;AACnG,eAAO,MAAM,iBAAiB,MAAM,CAAC;AAErC,yGAAyG;AACzG,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAGhF;AAED,2GAA2G;AAC3G,wBAAgB,UAAU,CAAC,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAE/E;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,QAAQ;IACvB,oDAAoD;IACpD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,+GAA+G;IAC/G,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,EAAE,GAAG,GAAE,MAAmB,GAAG,QAAQ,CAKzG;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAMrE;AAED,uCAAuC;AACvC,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CACzB,WAAW,EAAE,SAAS,gBAAgB,EAAE,EACxC,IAAI,EAAE,QAAQ,GACb,SAAS,CAAC,gBAAgB,GAAG,SAAS,CAAC,EAAE,CAS3C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravitee/gamma-lib-observability",
|
|
3
|
-
"version": "3.3.0-beta.
|
|
3
|
+
"version": "3.3.0-beta.5",
|
|
4
4
|
"description": "Shared observability library for Gamma modules — dashboards, logs, tracing UI components and integration with business rules.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "yarn@4.14.1",
|