@dx-do/client 7.15.0 → 7.16.0
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.cjs.js +607 -169
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +596 -170
- package/dist/index.esm.js.map +1 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lib/model/alarm/alarm-record.d.ts +53 -0
- package/dist/src/lib/model/alarm/alarm-record.d.ts.map +1 -0
- package/dist/src/lib/model/datastore/tas/filters.d.ts +11 -10
- package/dist/src/lib/model/datastore/tas/filters.d.ts.map +1 -1
- package/dist/src/lib/model/oi/alarms.d.ts +12 -0
- package/dist/src/lib/model/oi/alarms.d.ts.map +1 -1
- package/dist/src/lib/model/oi/services.d.ts +2 -0
- package/dist/src/lib/model/oi/services.d.ts.map +1 -1
- package/dist/src/lib/services/alarm-export.d.ts +85 -0
- package/dist/src/lib/services/alarm-export.d.ts.map +1 -0
- package/dist/src/lib/services/alarm-window-search.d.ts +59 -0
- package/dist/src/lib/services/alarm-window-search.d.ts.map +1 -0
- package/dist/src/lib/services/alarm.service.d.ts +57 -4
- package/dist/src/lib/services/alarm.service.d.ts.map +1 -1
- package/dist/src/lib/services/dxoi.service.d.ts +15 -3
- package/dist/src/lib/services/dxoi.service.d.ts.map +1 -1
- package/dist/src/lib/services/lifecycle-pages.d.ts +20 -0
- package/dist/src/lib/services/lifecycle-pages.d.ts.map +1 -0
- package/dist/src/lib/services/service.service.d.ts +18 -4
- package/dist/src/lib/services/service.service.d.ts.map +1 -1
- package/dist/src/lib/services/situation.service.d.ts +9 -2
- package/dist/src/lib/services/situation.service.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2071,6 +2071,65 @@ function buildAlarmFilterUpdateBody(existing, patch) {
|
|
|
2071
2071
|
return { body, changes };
|
|
2072
2072
|
}
|
|
2073
2073
|
|
|
2074
|
+
/**
|
|
2075
|
+
* One alarm as stored in the alarms analytics index
|
|
2076
|
+
* (`GET oi/v2/aoanalytics/alarms/alarms_all/_search`): one record per alarm,
|
|
2077
|
+
* updated in place. Times are ISO strings with a `+0000` offset, whole seconds.
|
|
2078
|
+
* Fields vary by source product; the declared ones were present on every
|
|
2079
|
+
* sampled record unless marked optional (demo-dev, 2026-10-22).
|
|
2080
|
+
*/
|
|
2081
|
+
const AlarmRecordSchema = z.looseObject({
|
|
2082
|
+
alarm_unique_id: z
|
|
2083
|
+
.string()
|
|
2084
|
+
.describe('The alarm id; the same value the alarm search returns as `alarmId`'),
|
|
2085
|
+
status: z.string().describe('Current status: NEW, UPDATED or CLOSED'),
|
|
2086
|
+
severity: z.string().optional().describe('Current severity, as the source sent it'),
|
|
2087
|
+
startTime: z
|
|
2088
|
+
.string()
|
|
2089
|
+
.describe('When the alarm opened (the search\'s `timeOrigin`), ISO `+0000`'),
|
|
2090
|
+
closedTime: z
|
|
2091
|
+
.string()
|
|
2092
|
+
.optional()
|
|
2093
|
+
.describe('When the alarm closed, ISO `+0000`; present exactly when status is CLOSED'),
|
|
2094
|
+
timestamp: z
|
|
2095
|
+
.string()
|
|
2096
|
+
.optional()
|
|
2097
|
+
.describe('Time of the last document the source sent for this alarm (last update), ISO `+0000` — not the open time'),
|
|
2098
|
+
product: z.string().optional().describe('Source product that raised the alarm'),
|
|
2099
|
+
host: z.string().optional().describe('Host the alarm is about'),
|
|
2100
|
+
alarmType: z.string().optional().describe('Alarm type'),
|
|
2101
|
+
message: z.string().optional().describe('Current alarm message'),
|
|
2102
|
+
external_ids: z
|
|
2103
|
+
.array(z.string())
|
|
2104
|
+
.nullable()
|
|
2105
|
+
.optional()
|
|
2106
|
+
.describe('TAS external ids of the entities the alarm is about; null on some records (demo-dev: 4828 of 72747)'),
|
|
2107
|
+
services_impacted: z
|
|
2108
|
+
.array(z.string())
|
|
2109
|
+
.optional()
|
|
2110
|
+
.describe('Names of the services the alarm impacts (from enrichment)'),
|
|
2111
|
+
'@timestamp': z.number().optional().describe('When the record was last indexed, epoch ms'),
|
|
2112
|
+
});
|
|
2113
|
+
/** The analytics search response: Elasticsearch-shaped hits. */
|
|
2114
|
+
const AlarmRecordSearchResponseSchema = z.looseObject({
|
|
2115
|
+
hits: z.looseObject({
|
|
2116
|
+
total: z
|
|
2117
|
+
.looseObject({
|
|
2118
|
+
value: z.number().describe('Number of matching records'),
|
|
2119
|
+
relation: z
|
|
2120
|
+
.string()
|
|
2121
|
+
.describe('`eq` when `value` is exact, `gte` when it is a lower bound (more than 10000)'),
|
|
2122
|
+
})
|
|
2123
|
+
.describe('Match count for the query'),
|
|
2124
|
+
hits: z
|
|
2125
|
+
.array(z.looseObject({
|
|
2126
|
+
_id: z.string().optional().describe('Index id: tenant id + alarm id'),
|
|
2127
|
+
_source: AlarmRecordSchema,
|
|
2128
|
+
}))
|
|
2129
|
+
.describe('The requested page of records'),
|
|
2130
|
+
}),
|
|
2131
|
+
});
|
|
2132
|
+
|
|
2074
2133
|
var AlertDefinitionResponse;
|
|
2075
2134
|
(function (AlertDefinitionResponse) {
|
|
2076
2135
|
(function (AlertComparisonOperator) {
|
|
@@ -20394,6 +20453,15 @@ RedirectableRequest.prototype._sanitizeOptions = function (options) {
|
|
|
20394
20453
|
if (!options.headers) {
|
|
20395
20454
|
options.headers = {};
|
|
20396
20455
|
}
|
|
20456
|
+
// Convert [header1, value1, header2, value2, …] to object
|
|
20457
|
+
else if (Array.isArray(options.headers)) {
|
|
20458
|
+
var headerList = options.headers;
|
|
20459
|
+
options.headers = {};
|
|
20460
|
+
for (var i = 0; i < headerList.length; i += 2) {
|
|
20461
|
+
options.headers[headerList[i]] = headerList[i + 1];
|
|
20462
|
+
}
|
|
20463
|
+
}
|
|
20464
|
+
// Ensure sensitive headers are always present
|
|
20397
20465
|
if (!isArray$3(options.sensitiveHeaders)) {
|
|
20398
20466
|
options.sensitiveHeaders = [];
|
|
20399
20467
|
}
|
|
@@ -20793,7 +20861,7 @@ function isURL(value) {
|
|
|
20793
20861
|
}
|
|
20794
20862
|
|
|
20795
20863
|
function escapeRegex(regex) {
|
|
20796
|
-
return regex.replace(/[\]\\/()
|
|
20864
|
+
return regex.replace(/[[\]\\/()*+?.^$|]/g, "\\$&");
|
|
20797
20865
|
}
|
|
20798
20866
|
|
|
20799
20867
|
// Exports
|
|
@@ -48708,6 +48776,10 @@ const SENSITIVE_KEYS = new Set([
|
|
|
48708
48776
|
'revoketoken',
|
|
48709
48777
|
'password',
|
|
48710
48778
|
'apikey',
|
|
48779
|
+
// Legacy (pre-v3) dx-do profile secrets.
|
|
48780
|
+
'dashboardapikey',
|
|
48781
|
+
'camanagementcookie',
|
|
48782
|
+
'oiuserkey',
|
|
48711
48783
|
'x-api-key',
|
|
48712
48784
|
// Notification-channel write bodies (webhook auth, ServiceNow OAuth).
|
|
48713
48785
|
'tokenvalue',
|
|
@@ -49378,6 +49450,7 @@ const AttributeExpressionSchema = z.looseObject({
|
|
|
49378
49450
|
operator: AttributeExpressionOperatorSchema.optional().describe('Comparison operator; defaults to IN'),
|
|
49379
49451
|
layer: z
|
|
49380
49452
|
.string()
|
|
49453
|
+
.nullable()
|
|
49381
49454
|
.optional()
|
|
49382
49455
|
.describe('Restrict the expression to attributes on a specific layer (overlays the filter-level layer if both set)'),
|
|
49383
49456
|
comparator: AttributeExpressionComparatorSchema.optional().describe('Value-parsing mode for ordered comparisons; only consulted by GE/GT/LE/LT'),
|
|
@@ -49421,7 +49494,7 @@ const TraversalVertexFilterSchema = z.looseObject({
|
|
|
49421
49494
|
op: z.string().optional().describe('Op discriminator (ALL/NONE/AND/OR/NOT/ATTRIBUTE/LAYER/VERTEX)'),
|
|
49422
49495
|
input: z.lazy(() => z.array(TraversalVertexFilterSchema)).optional(),
|
|
49423
49496
|
expressions: z.array(AttributeExpressionSchema).optional(),
|
|
49424
|
-
layer: z.string().optional(),
|
|
49497
|
+
layer: z.string().nullable().optional(),
|
|
49425
49498
|
values: z.array(z.string()).optional(),
|
|
49426
49499
|
vertexId: z.array(z.number()).optional(),
|
|
49427
49500
|
});
|
|
@@ -49659,6 +49732,7 @@ const TasAttributeFilterSchema = z.looseObject({
|
|
|
49659
49732
|
.describe('Attribute expressions; all must match (AND)'),
|
|
49660
49733
|
layer: z
|
|
49661
49734
|
.string()
|
|
49735
|
+
.nullable()
|
|
49662
49736
|
.optional()
|
|
49663
49737
|
.describe('Restrict to attributes on a single layer (overlays per-expression layer)'),
|
|
49664
49738
|
mode: TasAttributeFilterModeSchema.optional().describe('How vertex/edge matching propagates; defaults to VERTEX_AND_RELATED_EDGES'),
|
|
@@ -49713,17 +49787,22 @@ const TasVertexIdFilterSchema = z.looseObject({
|
|
|
49713
49787
|
* hierarchy as defined in the Service Definition).
|
|
49714
49788
|
*
|
|
49715
49789
|
* Toggle `excludeSubServices=true` for an exact-service-only match;
|
|
49716
|
-
* `includeServiceHierarchy=true`
|
|
49717
|
-
*
|
|
49790
|
+
* `includeServiceHierarchy=true` adds the `saService` vertices themselves
|
|
49791
|
+
* (the named services and, unless excluded, their sub-services) to the
|
|
49792
|
+
* member entities. It does not add ancestors (measured 2026-10-21).
|
|
49718
49793
|
*/
|
|
49719
49794
|
const TasServiceFilterSchema = z.looseObject({
|
|
49720
49795
|
op: z.literal('SERVICE'),
|
|
49721
49796
|
input: TasFilterLazy.optional().describe('Optional input filter; defaults to ALL'),
|
|
49722
|
-
values: z
|
|
49797
|
+
values: z
|
|
49798
|
+
.array(z.string())
|
|
49799
|
+
.optional()
|
|
49800
|
+
.describe('Service names to match; required by the server (missing or empty is a 400), and no wildcard'),
|
|
49723
49801
|
includeServiceHierarchy: z
|
|
49724
49802
|
.boolean()
|
|
49725
49803
|
.optional()
|
|
49726
|
-
.describe('
|
|
49804
|
+
.describe('Also return the saService vertices of the matched services (named + sub-services, never ancestors); ' +
|
|
49805
|
+
'the only way a direct TAS query reaches service vertices; defaults to false'),
|
|
49727
49806
|
excludeSubServices: z
|
|
49728
49807
|
.boolean()
|
|
49729
49808
|
.optional()
|
|
@@ -49976,6 +50055,7 @@ const TasCollectAttributesFilterSchema = z.looseObject({
|
|
|
49976
50055
|
.describe('Name of the vertex attribute whose values to collect (e.g. "type", "name")'),
|
|
49977
50056
|
layer: z
|
|
49978
50057
|
.string()
|
|
50058
|
+
.nullable()
|
|
49979
50059
|
.optional()
|
|
49980
50060
|
.describe('Restrict collection to this layer; omit or null for all layers'),
|
|
49981
50061
|
includeIds: z
|
|
@@ -50010,6 +50090,7 @@ const TasCollectAttributeNamesFilterSchema = z.looseObject({
|
|
|
50010
50090
|
.describe('Unique key; result appears in analytics[] under this id'),
|
|
50011
50091
|
layer: z
|
|
50012
50092
|
.string()
|
|
50093
|
+
.nullable()
|
|
50013
50094
|
.optional()
|
|
50014
50095
|
.describe('Restrict to this layer; omit or null for all layers'),
|
|
50015
50096
|
});
|
|
@@ -50050,6 +50131,7 @@ const TasCollectVertexIdFilterSchema = z.looseObject({
|
|
|
50050
50131
|
.describe('Unique key; result appears in analytics[] under this id'),
|
|
50051
50132
|
layer: z
|
|
50052
50133
|
.string()
|
|
50134
|
+
.nullable()
|
|
50053
50135
|
.optional()
|
|
50054
50136
|
.describe('Restrict to this layer; omit or null for all layers'),
|
|
50055
50137
|
skipBackends: z
|
|
@@ -50134,6 +50216,7 @@ const TasCollectExperienceAttributesFilterSchema = z.looseObject({
|
|
|
50134
50216
|
.describe('Attribute whose values to collect'),
|
|
50135
50217
|
layer: z
|
|
50136
50218
|
.string()
|
|
50219
|
+
.nullable()
|
|
50137
50220
|
.optional()
|
|
50138
50221
|
.describe('Restrict to this layer; omit or null for all'),
|
|
50139
50222
|
caseInsensitive: z
|
|
@@ -63631,6 +63714,10 @@ var NASS;
|
|
|
63631
63714
|
|
|
63632
63715
|
var OIAlarm;
|
|
63633
63716
|
(function (OIAlarm) {
|
|
63717
|
+
/**
|
|
63718
|
+
* @deprecated Its `timeFrom`/`timeTo` are fixed when the module loads and it is a shared,
|
|
63719
|
+
* mutable object; build a fresh body per request instead.
|
|
63720
|
+
*/
|
|
63634
63721
|
OIAlarm.DEFAULT_SITUATIONS_REQUEST_BODY = {
|
|
63635
63722
|
pageNumber: 0,
|
|
63636
63723
|
pageSize: 50,
|
|
@@ -63652,6 +63739,10 @@ var OIAlarm;
|
|
|
63652
63739
|
showMaintenanceAlarms: false,
|
|
63653
63740
|
customFilter: {},
|
|
63654
63741
|
};
|
|
63742
|
+
/**
|
|
63743
|
+
* @deprecated Its `timeFrom`/`timeTo` are fixed when the module loads and it is a shared,
|
|
63744
|
+
* mutable object; use {@link newAlarmSearchBody}.
|
|
63745
|
+
*/
|
|
63655
63746
|
OIAlarm.DEFAULT_ALARMS_REQUEST_BODY = {
|
|
63656
63747
|
deviceNames: [],
|
|
63657
63748
|
includeDeviceTypes: [],
|
|
@@ -63671,6 +63762,30 @@ var OIAlarm;
|
|
|
63671
63762
|
showMaintenanceAlarms: false,
|
|
63672
63763
|
customFilter: {},
|
|
63673
63764
|
};
|
|
63765
|
+
/** A fresh `oi/v2/api/alarms/_search` body for `[timeFrom, timeTo]`, first page, nothing filtered. */
|
|
63766
|
+
function newAlarmSearchBody(timeFrom, timeTo, overrides = {}) {
|
|
63767
|
+
return {
|
|
63768
|
+
deviceNames: [],
|
|
63769
|
+
includeDeviceTypes: [],
|
|
63770
|
+
excludeDeviceTypes: [],
|
|
63771
|
+
groups: [],
|
|
63772
|
+
like: '',
|
|
63773
|
+
timeFrom,
|
|
63774
|
+
timeTo,
|
|
63775
|
+
pageNumber: 0,
|
|
63776
|
+
pageSize: 50,
|
|
63777
|
+
services: [],
|
|
63778
|
+
includeSeverity: [],
|
|
63779
|
+
allOtherSeverity: false,
|
|
63780
|
+
includeAlarmTypes: [],
|
|
63781
|
+
excludeAlarmTypes: [],
|
|
63782
|
+
includeClosedAlarms: false,
|
|
63783
|
+
showMaintenanceAlarms: false,
|
|
63784
|
+
customFilter: {},
|
|
63785
|
+
...overrides,
|
|
63786
|
+
};
|
|
63787
|
+
}
|
|
63788
|
+
OIAlarm.newAlarmSearchBody = newAlarmSearchBody;
|
|
63674
63789
|
})(OIAlarm || (OIAlarm = {}));
|
|
63675
63790
|
|
|
63676
63791
|
var CreateServices;
|
|
@@ -64209,7 +64324,7 @@ var OIService;
|
|
|
64209
64324
|
OIService.DEFAULT_SERVICE_REQUEST_PROJECTION_FILTER = ["maintenance", "availability_lastday", "availability", "health", "extId", "name", "risk", "trend", "healthBucket"];
|
|
64210
64325
|
OIService.TYPICAL_SERVICE_REQUEST_PROJECTION_FILTER = ["rollupFilteredAlarmCount", "situationCount", "availability", "filteredParent", "availability_lastday",
|
|
64211
64326
|
"immediateFilteredChildren", "immediateFilterChildrenCount", "health", "extId", "location", "maintenance",
|
|
64212
|
-
"name", "risk", "status", "tags", "serviceMetricGroups", "healthBucket"];
|
|
64327
|
+
"name", "risk", "status", "tags", "serviceMetricGroups", "healthBucket", "customProperties"];
|
|
64213
64328
|
/** @internal */
|
|
64214
64329
|
OIService.DEFAULT_SERVICE_REQUEST_BODY = {
|
|
64215
64330
|
"time": DateTime.now().toMillis(),
|
|
@@ -70640,7 +70755,283 @@ class AgentService {
|
|
|
70640
70755
|
}
|
|
70641
70756
|
}
|
|
70642
70757
|
|
|
70643
|
-
|
|
70758
|
+
/**
|
|
70759
|
+
* Most alarms one `oi/v2/api/alarms/_search` request returns, whatever
|
|
70760
|
+
* `pageSize` asks for (1001, 2000 and 5000 all answered 1000; measured on
|
|
70761
|
+
* demo-dev 2026-10-22). `pageNumber` > 0 answers an empty page, so a range
|
|
70762
|
+
* holding more alarms can only be read by splitting it.
|
|
70763
|
+
*/
|
|
70764
|
+
const ALARM_SEARCH_PAGE_CAP = 1000;
|
|
70765
|
+
/**
|
|
70766
|
+
* A complete read of an alarm range was not possible. Thrown instead of
|
|
70767
|
+
* returning a partial set, so a caller never mistakes a short list for the
|
|
70768
|
+
* whole range.
|
|
70769
|
+
*/
|
|
70770
|
+
class IncompleteAlarmSearchError extends Error {
|
|
70771
|
+
reason;
|
|
70772
|
+
expected;
|
|
70773
|
+
retrieved;
|
|
70774
|
+
constructor(reason, expected, retrieved, detail) {
|
|
70775
|
+
super(`Alarm search incomplete (${reason}): ${detail}`);
|
|
70776
|
+
this.reason = reason;
|
|
70777
|
+
this.expected = expected;
|
|
70778
|
+
this.retrieved = retrieved;
|
|
70779
|
+
this.name = 'IncompleteAlarmSearchError';
|
|
70780
|
+
}
|
|
70781
|
+
}
|
|
70782
|
+
const updatedAt = (alarm) => Number(alarm.lastUpdateTime ?? 0);
|
|
70783
|
+
/**
|
|
70784
|
+
* Reads every alarm in `[from, to]`, splitting the range until each window
|
|
70785
|
+
* fits in one response.
|
|
70786
|
+
*
|
|
70787
|
+
* A window holds every alarm whose lifetime (`timeOrigin` to `closedTime`, or
|
|
70788
|
+
* now) overlaps it, so windows overlap and their counts do not add up; their
|
|
70789
|
+
* union is the range (measured: 448 of 448, 300 of them in both halves). The
|
|
70790
|
+
* merge keys on `alarmId` and keeps the copy with the later `lastUpdateTime`.
|
|
70791
|
+
*
|
|
70792
|
+
* Fails with {@link IncompleteAlarmSearchError} instead of returning less:
|
|
70793
|
+
* - `unsplittable` — more alarms than one response holds are present at a
|
|
70794
|
+
* single instant (every window containing it is over the cap);
|
|
70795
|
+
* - `changed` — the range's count moved during the read, or the merged set
|
|
70796
|
+
* does not match it (alarms arriving or backdated into the range);
|
|
70797
|
+
* - `request-budget` — `maxRequests` ran out.
|
|
70798
|
+
*/
|
|
70799
|
+
async function searchAlarmWindows(search, from, to, options = {}) {
|
|
70800
|
+
const concurrency = options.concurrency ?? 4;
|
|
70801
|
+
const maxRequests = options.maxRequests ?? 2000;
|
|
70802
|
+
const log = options.log ?? new Logging.NullSimpleLog();
|
|
70803
|
+
const alarms = new Map();
|
|
70804
|
+
let requests = 0;
|
|
70805
|
+
let windows = 0;
|
|
70806
|
+
let expected = 0;
|
|
70807
|
+
const merge = (page) => {
|
|
70808
|
+
for (const alarm of page.alarms) {
|
|
70809
|
+
const seen = alarms.get(alarm.alarmId);
|
|
70810
|
+
if (!seen || updatedAt(alarm) > updatedAt(seen))
|
|
70811
|
+
alarms.set(alarm.alarmId, alarm);
|
|
70812
|
+
}
|
|
70813
|
+
};
|
|
70814
|
+
const complete = (page) => page.count <= page.alarms.length;
|
|
70815
|
+
const request = async (w) => {
|
|
70816
|
+
if (requests >= maxRequests) {
|
|
70817
|
+
throw new IncompleteAlarmSearchError('request-budget', expected, alarms.size, `${maxRequests} requests made, ${alarms.size} of ${expected} alarms read`);
|
|
70818
|
+
}
|
|
70819
|
+
requests++;
|
|
70820
|
+
return search(w.from, w.to);
|
|
70821
|
+
};
|
|
70822
|
+
const first = await request({ from, to });
|
|
70823
|
+
expected = first.count;
|
|
70824
|
+
if (complete(first)) {
|
|
70825
|
+
merge(first);
|
|
70826
|
+
return { alarms, expected, requests, windows: 1 };
|
|
70827
|
+
}
|
|
70828
|
+
log.info(`${expected} alarms in range; reading it in windows of at most ${ALARM_SEARCH_PAGE_CAP}`);
|
|
70829
|
+
const pending = [{ from, to }];
|
|
70830
|
+
const split = (w) => {
|
|
70831
|
+
const mid = Math.floor((w.from + w.to) / 2);
|
|
70832
|
+
return [
|
|
70833
|
+
{ from: w.from, to: mid },
|
|
70834
|
+
{ from: mid, to: w.to },
|
|
70835
|
+
];
|
|
70836
|
+
};
|
|
70837
|
+
const readWindow = async (w) => {
|
|
70838
|
+
if (w.to - w.from <= 1) {
|
|
70839
|
+
const page = await request(w);
|
|
70840
|
+
if (complete(page)) {
|
|
70841
|
+
merge(page);
|
|
70842
|
+
windows++;
|
|
70843
|
+
return [];
|
|
70844
|
+
}
|
|
70845
|
+
throw new IncompleteAlarmSearchError('unsplittable', expected, alarms.size, `${page.count} alarms are present at ${new Date(w.from).toISOString()}; ` +
|
|
70846
|
+
`one response holds at most ${page.alarms.length}`);
|
|
70847
|
+
}
|
|
70848
|
+
const page = await request(w);
|
|
70849
|
+
if (complete(page)) {
|
|
70850
|
+
merge(page);
|
|
70851
|
+
windows++;
|
|
70852
|
+
return [];
|
|
70853
|
+
}
|
|
70854
|
+
const mid = Math.floor((w.from + w.to) / 2);
|
|
70855
|
+
const instant = await request({ from: mid, to: mid + 1 });
|
|
70856
|
+
if (!complete(instant)) {
|
|
70857
|
+
throw new IncompleteAlarmSearchError('unsplittable', expected, alarms.size, `${instant.count} alarms are present at ${new Date(mid).toISOString()}; ` +
|
|
70858
|
+
`one response holds at most ${instant.alarms.length}`);
|
|
70859
|
+
}
|
|
70860
|
+
return split(w);
|
|
70861
|
+
};
|
|
70862
|
+
// Split the root once without re-reading it.
|
|
70863
|
+
pending.splice(0, 1, ...split({ from, to }));
|
|
70864
|
+
while (pending.length > 0) {
|
|
70865
|
+
const batch = pending.splice(0, concurrency);
|
|
70866
|
+
const next = await Promise.all(batch.map(readWindow));
|
|
70867
|
+
pending.push(...next.flat());
|
|
70868
|
+
}
|
|
70869
|
+
const last = await request({ from, to });
|
|
70870
|
+
if (last.count !== expected || alarms.size !== expected) {
|
|
70871
|
+
throw new IncompleteAlarmSearchError('changed', expected, alarms.size, `the range held ${expected} alarms at the start, ${last.count} at the end, ` +
|
|
70872
|
+
`and ${alarms.size} were read; alarms arrived or changed during the read`);
|
|
70873
|
+
}
|
|
70874
|
+
log.info(`Read ${alarms.size} alarms in ${windows} windows (${requests} requests)`);
|
|
70875
|
+
return { alarms, expected, requests, windows };
|
|
70876
|
+
}
|
|
70877
|
+
|
|
70878
|
+
/**
|
|
70879
|
+
* Most records one analytics query can reach: `from + size` over 10000 is
|
|
70880
|
+
* rejected ("Result window is too large"), and a count above it comes back as
|
|
70881
|
+
* a lower bound (`relation: gte`).
|
|
70882
|
+
*/
|
|
70883
|
+
const ALARM_RECORD_WINDOW_CAP = 10_000;
|
|
70884
|
+
const ALARM_RECORD_PAGE_SIZE = 1000;
|
|
70885
|
+
/** An instant as the index's query syntax wants it: whole seconds, `+0000` (`Z` matches nothing). */
|
|
70886
|
+
const alarmRecordTime = (ms) => new Date(ms).toISOString().replace(/\.\d{3}Z$/, '+0000');
|
|
70887
|
+
/** Epoch ms of an index time such as `2026-10-22T06:17:39+0000`. */
|
|
70888
|
+
const parseAlarmRecordTime = (value) => Date.parse(value.replace(/([+-]\d{2})(\d{2})$/, '$1:$2'));
|
|
70889
|
+
const windowQuery = (segment, from, to) => {
|
|
70890
|
+
const range = `${segment.field}:[${alarmRecordTime(from)} TO ${alarmRecordTime(to)}}`;
|
|
70891
|
+
return segment.extra ? `${range} AND (${segment.extra})` : range;
|
|
70892
|
+
};
|
|
70893
|
+
/**
|
|
70894
|
+
* Streams every alarm record that `match` selects in `[from, to)`, in open-time
|
|
70895
|
+
* order, reading the analytics index in windows of at most
|
|
70896
|
+
* {@link ALARM_RECORD_WINDOW_CAP} records.
|
|
70897
|
+
*
|
|
70898
|
+
* First the range is planned: count-only requests split it until each window
|
|
70899
|
+
* holds at most the cap, which gives the exact total (the index itself reports
|
|
70900
|
+
* any total over 10000 as "at least 10000"). Then each window is paged with a
|
|
70901
|
+
* fixed sort and checked: the records read must be exactly its planned count. Otherwise it throws
|
|
70902
|
+
* {@link IncompleteAlarmSearchError} rather than yielding a partial export:
|
|
70903
|
+
* - `changed` — the window's count or contents moved during the read;
|
|
70904
|
+
* - `unsplittable` — more than 10000 records share one second;
|
|
70905
|
+
* - `request-budget` — `maxRequests` ran out.
|
|
70906
|
+
* Records already yielded stay valid; the error says where the export stopped.
|
|
70907
|
+
*/
|
|
70908
|
+
async function* exportAlarmRecords(source, from, to, match, options = {}) {
|
|
70909
|
+
const maxRequests = options.maxRequests ?? 20_000;
|
|
70910
|
+
const windowCap = options.windowCap ?? ALARM_RECORD_WINDOW_CAP;
|
|
70911
|
+
const pageSize = options.pageSize ?? ALARM_RECORD_PAGE_SIZE;
|
|
70912
|
+
const log = options.log ?? new Logging.NullSimpleLog();
|
|
70913
|
+
const start = Math.floor(from / 1000) * 1000;
|
|
70914
|
+
const end = Math.ceil(to / 1000) * 1000;
|
|
70915
|
+
let requests = 0;
|
|
70916
|
+
let exported = 0;
|
|
70917
|
+
const call = async (fn) => {
|
|
70918
|
+
if (requests >= maxRequests) {
|
|
70919
|
+
throw new IncompleteAlarmSearchError('request-budget', exported, exported, `${maxRequests} requests made; ${exported} alarms exported before stopping`);
|
|
70920
|
+
}
|
|
70921
|
+
requests++;
|
|
70922
|
+
return fn();
|
|
70923
|
+
};
|
|
70924
|
+
const segments = [];
|
|
70925
|
+
if (match === 'opened')
|
|
70926
|
+
segments.push({ field: 'startTime', from: start, to: end });
|
|
70927
|
+
if (match === 'closed')
|
|
70928
|
+
segments.push({ field: 'closedTime', from: start, to: end });
|
|
70929
|
+
if (match === 'active') {
|
|
70930
|
+
segments.push({ field: 'startTime', from: start, to: end });
|
|
70931
|
+
// Opened earlier and still open at `from`: closed after it, or not closed.
|
|
70932
|
+
const stillOpen = `closedTime:{${alarmRecordTime(start)} TO *] OR (*:* -_exists_:closedTime)`;
|
|
70933
|
+
const earlier = `startTime:[* TO ${alarmRecordTime(start)}} AND (${stillOpen})`;
|
|
70934
|
+
const [first] = await call(() => source.page(earlier, 0, 1));
|
|
70935
|
+
if (first) {
|
|
70936
|
+
const earliest = Math.floor(parseAlarmRecordTime(first.startTime) / 1000) * 1000;
|
|
70937
|
+
segments.unshift({ field: 'startTime', from: earliest, to: start, extra: stillOpen });
|
|
70938
|
+
}
|
|
70939
|
+
}
|
|
70940
|
+
const startedAt = Date.now();
|
|
70941
|
+
// Plan: split until every window's count is exact and within the cap.
|
|
70942
|
+
const plan = async (segment, a, b, out) => {
|
|
70943
|
+
const count = await call(() => source.count(windowQuery(segment, a, b)));
|
|
70944
|
+
if (count.exact && count.total <= windowCap) {
|
|
70945
|
+
if (count.total > 0)
|
|
70946
|
+
out.push({ segment, from: a, to: b, count: count.total });
|
|
70947
|
+
return;
|
|
70948
|
+
}
|
|
70949
|
+
if (b - a <= 1000) {
|
|
70950
|
+
throw new IncompleteAlarmSearchError('unsplittable', count.total, 0, `more than ${windowCap} alarms at ${alarmRecordTime(a)}; nothing was exported`);
|
|
70951
|
+
}
|
|
70952
|
+
const mid = a + Math.floor((b - a) / 2000) * 1000;
|
|
70953
|
+
await plan(segment, a, mid, out);
|
|
70954
|
+
await plan(segment, mid, b, out);
|
|
70955
|
+
};
|
|
70956
|
+
const windows = [];
|
|
70957
|
+
for (const segment of segments) {
|
|
70958
|
+
if (segment.to > segment.from)
|
|
70959
|
+
await plan(segment, segment.from, segment.to, windows);
|
|
70960
|
+
}
|
|
70961
|
+
const total = windows.reduce((sum, w) => sum + w.count, 0);
|
|
70962
|
+
options.onPlan?.({ total, windows: windows.length, elapsedMs: Date.now() - startedAt });
|
|
70963
|
+
// Read: page each window with a fixed sort; it must still hold its planned count.
|
|
70964
|
+
for (const [i, w] of windows.entries()) {
|
|
70965
|
+
const query = windowQuery(w.segment, w.from, w.to);
|
|
70966
|
+
const records = [];
|
|
70967
|
+
const ids = new Set();
|
|
70968
|
+
for (let offset = 0; offset < w.count; offset += pageSize) {
|
|
70969
|
+
const page = await call(() => source.page(query, offset, pageSize));
|
|
70970
|
+
if (page.length === 0)
|
|
70971
|
+
break;
|
|
70972
|
+
for (const record of page) {
|
|
70973
|
+
if (!ids.has(record.alarm_unique_id)) {
|
|
70974
|
+
ids.add(record.alarm_unique_id);
|
|
70975
|
+
records.push(record);
|
|
70976
|
+
}
|
|
70977
|
+
}
|
|
70978
|
+
}
|
|
70979
|
+
const recount = await call(() => source.count(query));
|
|
70980
|
+
if (ids.size !== w.count || recount.total !== w.count) {
|
|
70981
|
+
throw new IncompleteAlarmSearchError('changed', total, exported, `window ${alarmRecordTime(w.from)} – ${alarmRecordTime(w.to)} held ${w.count} alarms when planned, ` +
|
|
70982
|
+
`${recount.total} after reading, and ${ids.size} distinct were read; ` +
|
|
70983
|
+
`${exported} of ${total} exported before it. Alarms changed during the read — retry, or end the range further in the past`);
|
|
70984
|
+
}
|
|
70985
|
+
for (const record of records) {
|
|
70986
|
+
exported++;
|
|
70987
|
+
yield record;
|
|
70988
|
+
}
|
|
70989
|
+
options.onWindow?.({
|
|
70990
|
+
from: w.from,
|
|
70991
|
+
to: w.to,
|
|
70992
|
+
records: records.length,
|
|
70993
|
+
index: i + 1,
|
|
70994
|
+
windows: windows.length,
|
|
70995
|
+
exported,
|
|
70996
|
+
total,
|
|
70997
|
+
elapsedMs: Date.now() - startedAt,
|
|
70998
|
+
});
|
|
70999
|
+
}
|
|
71000
|
+
log.info(`Exported ${exported} alarms (${requests} requests)`);
|
|
71001
|
+
}
|
|
71002
|
+
|
|
71003
|
+
/**
|
|
71004
|
+
* Events per `oi/v2/api/alarms/lifecycle/_search` request. The endpoint
|
|
71005
|
+
* reports `totalCount` and pages exactly: for an alarm with 54 events and a
|
|
71006
|
+
* situation with 69, pages of 10 or 20 equalled one read of 1000, same set
|
|
71007
|
+
* and order (THE_LABORATORY and demo-dev, 2026-10-22).
|
|
71008
|
+
*/
|
|
71009
|
+
const LIFECYCLE_PAGE_SIZE = 1000;
|
|
71010
|
+
/**
|
|
71011
|
+
* Reads every page of a lifecycle (alarm or situation) until the server's
|
|
71012
|
+
* `totalCount` is reached. `totalCount` is returned as the server reported
|
|
71013
|
+
* it; if a page comes back empty first, the result holds fewer events and a
|
|
71014
|
+
* warning is logged, so a short read stays visible.
|
|
71015
|
+
*/
|
|
71016
|
+
async function readLifecyclePages(fetchPage, label, log) {
|
|
71017
|
+
const events = [];
|
|
71018
|
+
let totalCount = '0';
|
|
71019
|
+
for (let pageNumber = 0;; pageNumber++) {
|
|
71020
|
+
const page = await fetchPage(pageNumber, LIFECYCLE_PAGE_SIZE);
|
|
71021
|
+
totalCount = page.totalCount ?? totalCount;
|
|
71022
|
+
const pageEvents = page.lifecycle_events ?? [];
|
|
71023
|
+
events.push(...pageEvents);
|
|
71024
|
+
if (events.length >= Number(totalCount))
|
|
71025
|
+
break;
|
|
71026
|
+
if (pageEvents.length === 0) {
|
|
71027
|
+
log.warn(`Lifecycle of ${label} stopped at ${events.length} of ${totalCount} events: page ${pageNumber} was empty`);
|
|
71028
|
+
break;
|
|
71029
|
+
}
|
|
71030
|
+
}
|
|
71031
|
+
return { totalCount, lifecycle_events: events };
|
|
71032
|
+
}
|
|
71033
|
+
|
|
71034
|
+
var newAlarmSearchBody = OIAlarm.newAlarmSearchBody;
|
|
70644
71035
|
/**
|
|
70645
71036
|
* Service for OI alarms: get, search, assign, acknowledge, clear, lifecycle,
|
|
70646
71037
|
* enrichment rules, alarm queues, and related alarms.
|
|
@@ -70673,11 +71064,7 @@ class AlarmService {
|
|
|
70673
71064
|
*/
|
|
70674
71065
|
async findAlarm(alarmId, lookbackMs, requestOverrides = {}) {
|
|
70675
71066
|
const now = Date.now();
|
|
70676
|
-
const body = {
|
|
70677
|
-
...DEFAULT_ALARMS_REQUEST_BODY$1,
|
|
70678
|
-
timeFrom: now - lookbackMs,
|
|
70679
|
-
timeTo: now,
|
|
70680
|
-
pageNumber: 0,
|
|
71067
|
+
const body = newAlarmSearchBody(now - lookbackMs, now, {
|
|
70681
71068
|
pageSize: 10,
|
|
70682
71069
|
includeClosedAlarms: true,
|
|
70683
71070
|
customFilter: {
|
|
@@ -70698,30 +71085,20 @@ class AlarmService {
|
|
|
70698
71085
|
],
|
|
70699
71086
|
},
|
|
70700
71087
|
},
|
|
70701
|
-
};
|
|
71088
|
+
});
|
|
70702
71089
|
const response = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', body, undefined, undefined, requestOverrides);
|
|
70703
71090
|
return (response.alarms ?? []).find((alarm) => alarm.alarmId === alarmId);
|
|
70704
71091
|
}
|
|
70705
|
-
/**
|
|
71092
|
+
/**
|
|
71093
|
+
* Returns an open alarm of the last 30 days by its ID (the payload a channel
|
|
71094
|
+
* notification sends).
|
|
71095
|
+
*
|
|
71096
|
+
* @throws Error when no open alarm has that ID.
|
|
71097
|
+
*/
|
|
70706
71098
|
async getAlarmOverview(alarmId) {
|
|
70707
|
-
const
|
|
70708
|
-
|
|
70709
|
-
includeDeviceTypes: [],
|
|
70710
|
-
excludeDeviceTypes: [],
|
|
70711
|
-
groups: [],
|
|
70712
|
-
like: '',
|
|
70713
|
-
timeFrom: Date.now(),
|
|
70714
|
-
timeTo: Date.now() - 30 * 24 * 60 * 60 * 1000,
|
|
70715
|
-
pageNumber: 0,
|
|
70716
|
-
pageSize: 50,
|
|
70717
|
-
services: [],
|
|
70718
|
-
includeSeverity: [],
|
|
70719
|
-
allOtherSeverity: false,
|
|
71099
|
+
const now = Date.now();
|
|
71100
|
+
const singleAlarmQuery = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', newAlarmSearchBody(now - 30 * 24 * 60 * 60 * 1000, now, {
|
|
70720
71101
|
sortCol: '',
|
|
70721
|
-
includeAlarmTypes: [],
|
|
70722
|
-
excludeAlarmTypes: [],
|
|
70723
|
-
includeClosedAlarms: false,
|
|
70724
|
-
showMaintenanceAlarms: false,
|
|
70725
71102
|
showAlarmsPartOfSituations: false,
|
|
70726
71103
|
customFilter: {
|
|
70727
71104
|
and: {
|
|
@@ -70741,13 +71118,12 @@ class AlarmService {
|
|
|
70741
71118
|
],
|
|
70742
71119
|
},
|
|
70743
71120
|
},
|
|
70744
|
-
});
|
|
70745
|
-
|
|
70746
|
-
|
|
70747
|
-
|
|
70748
|
-
else {
|
|
70749
|
-
throw new Error('Bad Alarm Query');
|
|
71121
|
+
}));
|
|
71122
|
+
const alarm = singleAlarmQuery.alarms?.[0];
|
|
71123
|
+
if (Number(singleAlarmQuery.alarmCount) > 0 && alarm) {
|
|
71124
|
+
return alarm;
|
|
70750
71125
|
}
|
|
71126
|
+
throw new Error(`No open alarm ${alarmId} in the last 30 days`);
|
|
70751
71127
|
}
|
|
70752
71128
|
/** Sends a notification for an alarm to the specified channel with optional template/locale. */
|
|
70753
71129
|
async triggerNotification(alarmId, notificationChannelName, template = '', locale = 'en-US') {
|
|
@@ -70864,12 +71240,20 @@ class AlarmService {
|
|
|
70864
71240
|
this.simpleLog.debug('update request body', JSON.stringify(body, null, 2));
|
|
70865
71241
|
return this.dxSaaSService.tenantPost('jarvis/v2/ingestion', body, {}, headers);
|
|
70866
71242
|
}
|
|
70867
|
-
/**
|
|
71243
|
+
/**
|
|
71244
|
+
* Returns an alarm's whole lifecycle event history, newest first.
|
|
71245
|
+
*
|
|
71246
|
+
* @remarks Reads pages of 1000 until the server's `totalCount` is reached
|
|
71247
|
+
* (it used to ask for 20 and stop, dropping the oldest events, "Alarm
|
|
71248
|
+
* Opened" first). `totalCount` is returned as the server reported it; if a
|
|
71249
|
+
* page comes back empty early, the result holds fewer events and a warning
|
|
71250
|
+
* is logged.
|
|
71251
|
+
*/
|
|
70868
71252
|
async getAlarmLifeCycle(alarmId) {
|
|
70869
|
-
|
|
70870
|
-
alarmId
|
|
70871
|
-
pageSize:
|
|
70872
|
-
pageNumber:
|
|
71253
|
+
return readLifecyclePages((pageNumber, pageSize) => this.dxSaaSService.oiPost('oi/v2/api/alarms/lifecycle/_search', {
|
|
71254
|
+
alarmId,
|
|
71255
|
+
pageSize: String(pageSize),
|
|
71256
|
+
pageNumber: String(pageNumber),
|
|
70873
71257
|
sortCol: 'timestamp:desc',
|
|
70874
71258
|
excludeFields: [
|
|
70875
71259
|
'isolation_view_link',
|
|
@@ -70877,38 +71261,101 @@ class AlarmService {
|
|
|
70877
71261
|
'alert_definition_link',
|
|
70878
71262
|
'occurrence',
|
|
70879
71263
|
],
|
|
70880
|
-
};
|
|
70881
|
-
return this.dxSaaSService.oiPost('oi/v2/api/alarms/lifecycle/_search', alarmLifeCycleRequestBody);
|
|
71264
|
+
}), `alarm ${alarmId}`, this.simpleLog);
|
|
70882
71265
|
}
|
|
70883
|
-
/**
|
|
70884
|
-
|
|
70885
|
-
|
|
70886
|
-
|
|
70887
|
-
|
|
70888
|
-
|
|
70889
|
-
|
|
70890
|
-
|
|
70891
|
-
|
|
70892
|
-
|
|
70893
|
-
|
|
70894
|
-
|
|
70895
|
-
|
|
70896
|
-
|
|
70897
|
-
|
|
70898
|
-
|
|
70899
|
-
|
|
70900
|
-
|
|
70901
|
-
|
|
70902
|
-
|
|
71266
|
+
/**
|
|
71267
|
+
* One alarm search over `[startTime, endTime]`: the exact number of alarms
|
|
71268
|
+
* in the range and the first `pageSize` of them (at most
|
|
71269
|
+
* {@link ALARM_SEARCH_PAGE_CAP}, whatever is asked). Use it where a sample
|
|
71270
|
+
* plus the true total is enough; {@link getAlarms} reads the whole range.
|
|
71271
|
+
*/
|
|
71272
|
+
async searchAlarmPage(startTime, endTime, includedAlarmTypes = [], includeClosed = false, pageSize = ALARM_SEARCH_PAGE_CAP, alarmFilter) {
|
|
71273
|
+
return this.searchPage(startTime.toMillis(), endTime.toMillis(), {
|
|
71274
|
+
includedAlarmTypes,
|
|
71275
|
+
includeClosed,
|
|
71276
|
+
pageSize,
|
|
71277
|
+
alarmFilter,
|
|
71278
|
+
});
|
|
71279
|
+
}
|
|
71280
|
+
/**
|
|
71281
|
+
* Returns every alarm in `[startTime, endTime]`, keyed by `alarmId`.
|
|
71282
|
+
*
|
|
71283
|
+
* One search returns at most {@link ALARM_SEARCH_PAGE_CAP} alarms and cannot
|
|
71284
|
+
* be paged, so a larger range is read in windows and merged
|
|
71285
|
+
* (`searchAlarmWindows`). A window holds every alarm whose lifetime overlaps
|
|
71286
|
+
* it, so long-open alarms appear in all of them; the merge keeps one copy.
|
|
71287
|
+
*
|
|
71288
|
+
* @param pageSize - Ignored: each request asks for the server's
|
|
71289
|
+
* maximum. Kept for signature compatibility.
|
|
71290
|
+
* @throws IncompleteAlarmSearchError when the whole range cannot be read:
|
|
71291
|
+
* more alarms than one response holds at a single instant, alarms arriving
|
|
71292
|
+
* or backdated into the range during the read, or the request budget spent.
|
|
71293
|
+
* A partial set is never returned.
|
|
71294
|
+
*/
|
|
71295
|
+
async getAlarms(startTime, endTime, includedAlarmTypes = [], includeClosed = false,
|
|
71296
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
71297
|
+
pageSize = 100, alarmFilter, options = {}) {
|
|
71298
|
+
const result = await searchAlarmWindows((from, to) => this.searchPage(from, to, {
|
|
71299
|
+
includedAlarmTypes,
|
|
71300
|
+
includeClosed,
|
|
71301
|
+
pageSize: ALARM_SEARCH_PAGE_CAP,
|
|
71302
|
+
alarmFilter,
|
|
71303
|
+
}), startTime.toMillis(), endTime.toMillis(), { log: this.simpleLog, ...options });
|
|
71304
|
+
this.simpleLog.info(`Retrieved ${result.alarms.size} of ${result.expected} alarms`);
|
|
71305
|
+
return result.alarms;
|
|
71306
|
+
}
|
|
71307
|
+
/**
|
|
71308
|
+
* Streams every alarm that `match` selects in `[startTime, endTime)` from the
|
|
71309
|
+
* alarms analytics index (`GET oi/v2/aoanalytics/alarms/alarms_all/_search`),
|
|
71310
|
+
* in open-time order — for exports over long ranges.
|
|
71311
|
+
*
|
|
71312
|
+
* Unlike {@link getAlarms} (the alarm search: every alarm active in the range,
|
|
71313
|
+
* 1000 per request), the index filters on the open or close time directly
|
|
71314
|
+
* and allows windows of 10000, so alarms that stay open do not crowd the
|
|
71315
|
+
* windows. Records are the stored documents (see `AlarmRecordSchema`).
|
|
71316
|
+
*
|
|
71317
|
+
* @remarks Responses are validated, not thrown on. The export throws
|
|
71318
|
+
* `IncompleteAlarmSearchError` when a window changes while it is read or
|
|
71319
|
+
* cannot be split; records already yielded are complete and in order.
|
|
71320
|
+
*/
|
|
71321
|
+
exportAlarmRecords(startTime, endTime, match = 'opened', options = {}) {
|
|
71322
|
+
// One short warning per distinct mismatch, not one issue dump per page.
|
|
71323
|
+
const warned = new Set();
|
|
71324
|
+
const search = async (params) => {
|
|
71325
|
+
const raw = await this.dxSaaSService.oiGet('oi/v2/aoanalytics/alarms/alarms_all/_search', params);
|
|
71326
|
+
const parsed = AlarmRecordSearchResponseSchema.safeParse(raw);
|
|
71327
|
+
if (!parsed.success) {
|
|
71328
|
+
const fields = [
|
|
71329
|
+
...new Set(parsed.error.issues.map((issue) => `${issue.path.map((p) => (typeof p === 'number' ? '*' : String(p))).join('.')} (${issue.message})`)),
|
|
71330
|
+
].join('; ');
|
|
71331
|
+
if (!warned.has(fields)) {
|
|
71332
|
+
warned.add(fields);
|
|
71333
|
+
this.simpleLog.warn(`AlarmRecordSearchResponse validation warning: ${fields}`);
|
|
70903
71334
|
}
|
|
70904
|
-
}
|
|
70905
|
-
|
|
70906
|
-
|
|
70907
|
-
|
|
70908
|
-
|
|
70909
|
-
|
|
70910
|
-
|
|
70911
|
-
|
|
71335
|
+
}
|
|
71336
|
+
return raw;
|
|
71337
|
+
};
|
|
71338
|
+
const source = {
|
|
71339
|
+
count: async (q) => {
|
|
71340
|
+
const total = (await search({ q, size: 0 })).hits?.total;
|
|
71341
|
+
return { total: total?.value ?? 0, exact: total?.relation === 'eq' };
|
|
71342
|
+
},
|
|
71343
|
+
page: async (q, from, size) => ((await search({ q, from, size, sort: 'startTime:asc,alarm_unique_id:asc' })).hits?.hits ?? []).map((hit) => hit._source),
|
|
71344
|
+
};
|
|
71345
|
+
return exportAlarmRecords(source, startTime.toMillis(), endTime.toMillis(), match, {
|
|
71346
|
+
log: this.simpleLog,
|
|
71347
|
+
...options,
|
|
71348
|
+
});
|
|
71349
|
+
}
|
|
71350
|
+
async searchPage(timeFrom, timeTo, query) {
|
|
71351
|
+
const body = newAlarmSearchBody(timeFrom, timeTo, {
|
|
71352
|
+
includeAlarmTypes: query.includedAlarmTypes,
|
|
71353
|
+
includeClosedAlarms: query.includeClosed,
|
|
71354
|
+
pageSize: Math.min(Math.max(query.pageSize, 1), ALARM_SEARCH_PAGE_CAP),
|
|
71355
|
+
...(query.alarmFilter ? { customFilter: query.alarmFilter } : {}),
|
|
71356
|
+
});
|
|
71357
|
+
const response = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', body);
|
|
71358
|
+
return { count: Number(response.alarmCount ?? 0), alarms: response.alarms ?? [] };
|
|
70912
71359
|
}
|
|
70913
71360
|
/**
|
|
70914
71361
|
* Lists every alarm enrichment rule of the tenant
|
|
@@ -80730,7 +81177,6 @@ class DxSaasService {
|
|
|
80730
81177
|
}
|
|
80731
81178
|
}
|
|
80732
81179
|
|
|
80733
|
-
var DEFAULT_ALARMS_REQUEST_BODY = OIAlarm.DEFAULT_ALARMS_REQUEST_BODY;
|
|
80734
81180
|
var DEFAULT_SITUATIONS_REQUEST_BODY = OIAlarm.DEFAULT_SITUATIONS_REQUEST_BODY;
|
|
80735
81181
|
/**
|
|
80736
81182
|
* Service for OI (Operations Intelligence) read operations: services, situations,
|
|
@@ -80738,9 +81184,11 @@ var DEFAULT_SITUATIONS_REQUEST_BODY = OIAlarm.DEFAULT_SITUATIONS_REQUEST_BODY;
|
|
|
80738
81184
|
*/
|
|
80739
81185
|
class DxoiService {
|
|
80740
81186
|
dxSaaSService;
|
|
81187
|
+
alarms;
|
|
80741
81188
|
/** @param dxSaaSService - DX SaaS HTTP client for OI endpoints */
|
|
80742
81189
|
constructor(dxSaaSService) {
|
|
80743
81190
|
this.dxSaaSService = dxSaaSService;
|
|
81191
|
+
this.alarms = new AlarmService(dxSaaSService);
|
|
80744
81192
|
}
|
|
80745
81193
|
/** Returns top-level OI services using the default service request body. */
|
|
80746
81194
|
getServices() {
|
|
@@ -80749,9 +81197,11 @@ class DxoiService {
|
|
|
80749
81197
|
}
|
|
80750
81198
|
/** Returns cluster alarms (situations) within the given time range. */
|
|
80751
81199
|
async getSituations(startTime, endTime) {
|
|
80752
|
-
const alarmRequestBody =
|
|
80753
|
-
|
|
80754
|
-
|
|
81200
|
+
const alarmRequestBody = {
|
|
81201
|
+
...DEFAULT_SITUATIONS_REQUEST_BODY,
|
|
81202
|
+
timeFrom: startTime.toMillis(),
|
|
81203
|
+
timeTo: endTime.toMillis(),
|
|
81204
|
+
};
|
|
80755
81205
|
return this.dxSaaSService.oiPost('oi/v2/api/clusteralarms/_search', alarmRequestBody);
|
|
80756
81206
|
}
|
|
80757
81207
|
/** Returns the entity-detail attributes for a given entity external ID. */
|
|
@@ -80760,51 +81210,28 @@ class DxoiService {
|
|
|
80760
81210
|
externalId: entityExternalId,
|
|
80761
81211
|
});
|
|
80762
81212
|
}
|
|
80763
|
-
/**
|
|
81213
|
+
/**
|
|
81214
|
+
* Returns a single alarm by its ID.
|
|
81215
|
+
* @deprecated Use `AlarmService.getAlarm` (`ServiceMonolith.dxAlarmService`).
|
|
81216
|
+
*/
|
|
80764
81217
|
async getAlarm(alarmId) {
|
|
80765
|
-
return this.
|
|
80766
|
-
alarmId: alarmId,
|
|
80767
|
-
});
|
|
81218
|
+
return this.alarms.getAlarm(alarmId);
|
|
80768
81219
|
}
|
|
80769
|
-
/**
|
|
81220
|
+
/**
|
|
81221
|
+
* Returns the lifecycle event history for a given alarm ID.
|
|
81222
|
+
* @deprecated Use `AlarmService.getAlarmLifeCycle` (`ServiceMonolith.dxAlarmService`).
|
|
81223
|
+
*/
|
|
80770
81224
|
async getAlarmLifeCycle(alarmId) {
|
|
80771
|
-
|
|
80772
|
-
alarmId: alarmId,
|
|
80773
|
-
pageSize: '20',
|
|
80774
|
-
pageNumber: '0',
|
|
80775
|
-
sortCol: 'timestamp:desc',
|
|
80776
|
-
excludeFields: [
|
|
80777
|
-
'isolation_view_link',
|
|
80778
|
-
'metric_view_link',
|
|
80779
|
-
'alert_definition_link',
|
|
80780
|
-
'occurrence',
|
|
80781
|
-
],
|
|
80782
|
-
};
|
|
80783
|
-
return this.dxSaaSService.oiPost('oi/v2/api/alarms/lifecycle/_search', alarmLifeCycleRequestBody);
|
|
81225
|
+
return this.alarms.getAlarmLifeCycle(alarmId);
|
|
80784
81226
|
}
|
|
80785
|
-
/**
|
|
81227
|
+
/**
|
|
81228
|
+
* Returns every open alarm in a time range.
|
|
81229
|
+
* @deprecated Use `AlarmService.getAlarms`, which this now calls: it reads
|
|
81230
|
+
* ranges over 1000 alarms in windows and throws `IncompleteAlarmSearchError`
|
|
81231
|
+
* instead of returning a partial set (the old page loop could not end).
|
|
81232
|
+
*/
|
|
80786
81233
|
async getAlarms(startTime, endTime) {
|
|
80787
|
-
|
|
80788
|
-
alarmRequestBody.timeFrom = startTime.toMillis();
|
|
80789
|
-
alarmRequestBody.timeTo = endTime.toMillis();
|
|
80790
|
-
const alarmIdMap = new Map();
|
|
80791
|
-
const alarmFirstPage = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', alarmRequestBody);
|
|
80792
|
-
function mapAlarms(alarms) {
|
|
80793
|
-
alarms.forEach((alarm) => {
|
|
80794
|
-
if (!alarmIdMap.has(alarm.alarmId)) {
|
|
80795
|
-
alarmIdMap.set(alarm.alarmId, alarm);
|
|
80796
|
-
}
|
|
80797
|
-
});
|
|
80798
|
-
}
|
|
80799
|
-
mapAlarms(alarmFirstPage.alarms);
|
|
80800
|
-
let currentAlarmPage = 1;
|
|
80801
|
-
while (alarmIdMap.size < Number.parseInt(alarmFirstPage.alarmCount)) {
|
|
80802
|
-
alarmRequestBody.pageNumber = currentAlarmPage;
|
|
80803
|
-
const alarmNextPage = await this.dxSaaSService.oiPost('oi/v2/api/alarms/_search', alarmRequestBody);
|
|
80804
|
-
mapAlarms(alarmNextPage.alarms);
|
|
80805
|
-
currentAlarmPage++;
|
|
80806
|
-
}
|
|
80807
|
-
return alarmIdMap;
|
|
81234
|
+
return this.alarms.getAlarms(startTime, endTime);
|
|
80808
81235
|
}
|
|
80809
81236
|
}
|
|
80810
81237
|
|
|
@@ -87579,55 +88006,48 @@ class ServiceService {
|
|
|
87579
88006
|
}
|
|
87580
88007
|
throw new Error(`No Service with name '${serviceName}' Found`);
|
|
87581
88008
|
}
|
|
87582
|
-
/**
|
|
87583
|
-
|
|
87584
|
-
|
|
87585
|
-
|
|
87586
|
-
|
|
87587
|
-
|
|
87588
|
-
|
|
87589
|
-
|
|
87590
|
-
|
|
87591
|
-
totalRequests = 1;
|
|
87592
|
-
returnServices.push(...response.services);
|
|
87593
|
-
while (response.groupedCnt > returnServices.length ||
|
|
87594
|
-
totalRequests > maxRequests) {
|
|
87595
|
-
totalRequests++;
|
|
87596
|
-
currentRequestBody.pageNum++;
|
|
87597
|
-
this.log.info('Retrieving Page initial request with pageSize=100');
|
|
87598
|
-
await this.dxSaaSService
|
|
87599
|
-
.oiPost('oi/v2/servicerepo/services', currentRequestBody)
|
|
87600
|
-
.then(async (response) => {
|
|
87601
|
-
returnServices.push(...response.services);
|
|
87602
|
-
});
|
|
87603
|
-
}
|
|
87604
|
-
return returnServices;
|
|
87605
|
-
});
|
|
88009
|
+
/**
|
|
88010
|
+
* Returns the top-level (grouped) services, every page of them.
|
|
88011
|
+
*
|
|
88012
|
+
* @param pageSize - Services per request.
|
|
88013
|
+
* @param maxRequests - Optional cap on the number of requests; omitted = until `groupedCnt` is reached.
|
|
88014
|
+
* @remarks Stops early on an empty page; a short result (cap or empty page) is logged as a warning.
|
|
88015
|
+
*/
|
|
88016
|
+
async getTopLevelServices(pageSize = 100, maxRequests) {
|
|
88017
|
+
return this.fetchServicePages(this.createParentServiceRequestBody(pageSize), (response) => response.groupedCnt, maxRequests);
|
|
87606
88018
|
}
|
|
87607
|
-
/**
|
|
87608
|
-
|
|
87609
|
-
|
|
87610
|
-
|
|
87611
|
-
|
|
87612
|
-
|
|
87613
|
-
|
|
87614
|
-
|
|
87615
|
-
|
|
87616
|
-
|
|
87617
|
-
|
|
87618
|
-
|
|
87619
|
-
|
|
87620
|
-
|
|
87621
|
-
|
|
87622
|
-
|
|
87623
|
-
|
|
87624
|
-
|
|
87625
|
-
|
|
87626
|
-
|
|
87627
|
-
});
|
|
88019
|
+
/**
|
|
88020
|
+
* Returns all services (ungrouped), every page of them.
|
|
88021
|
+
*
|
|
88022
|
+
* @param pageSize - Services per request.
|
|
88023
|
+
* @param maxRequests - Optional cap on the number of requests; omitted = until `totalCnt` is reached.
|
|
88024
|
+
* @remarks Stops early on an empty page; a short result (cap or empty page) is logged as a warning.
|
|
88025
|
+
*/
|
|
88026
|
+
async getAllServices(pageSize = 100, maxRequests) {
|
|
88027
|
+
return this.fetchServicePages(this.createAllServiceRequestBody(pageSize), (response) => response.totalCnt, maxRequests);
|
|
88028
|
+
}
|
|
88029
|
+
async fetchServicePages(body, expectedCount, maxRequests) {
|
|
88030
|
+
this.log.info(`Requesting services with pageSize=${body.pageSize}`);
|
|
88031
|
+
const first = await this.dxSaaSService.oiPost('oi/v2/servicerepo/services', body);
|
|
88032
|
+
const services = [...first.services];
|
|
88033
|
+
const expected = expectedCount(first);
|
|
88034
|
+
let requests = 1;
|
|
88035
|
+
while (services.length < expected) {
|
|
88036
|
+
if (maxRequests !== undefined && requests >= maxRequests) {
|
|
88037
|
+
this.log.warn(`Service list truncated at ${services.length} of ${expected}: maxRequests=${maxRequests} reached`);
|
|
88038
|
+
break;
|
|
87628
88039
|
}
|
|
87629
|
-
|
|
87630
|
-
|
|
88040
|
+
body.pageNum++;
|
|
88041
|
+
requests++;
|
|
88042
|
+
this.log.info(`Requesting services page ${body.pageNum}`);
|
|
88043
|
+
const page = await this.dxSaaSService.oiPost('oi/v2/servicerepo/services', body);
|
|
88044
|
+
if (page.services.length === 0) {
|
|
88045
|
+
this.log.warn(`Service list stopped at ${services.length} of ${expected}: page ${body.pageNum} was empty`);
|
|
88046
|
+
break;
|
|
88047
|
+
}
|
|
88048
|
+
services.push(...page.services);
|
|
88049
|
+
}
|
|
88050
|
+
return services;
|
|
87631
88051
|
}
|
|
87632
88052
|
/** Builds a services request body scoped to parent (top-level) services. */
|
|
87633
88053
|
createParentServiceRequestBody(pageSize) {
|
|
@@ -88037,15 +88457,21 @@ class SituationService {
|
|
|
88037
88457
|
async getSituationOverview(situationId) {
|
|
88038
88458
|
return this.dxSaaSService.oiGet(`oi/v2/api/groupalarms/_search/${situationId}/overview`, { type: 'cluster' });
|
|
88039
88459
|
}
|
|
88040
|
-
/**
|
|
88460
|
+
/**
|
|
88461
|
+
* Returns a situation's whole lifecycle (state change) history, newest first.
|
|
88462
|
+
*
|
|
88463
|
+
* @remarks Reads every page until the server's `totalCount` (it used to
|
|
88464
|
+
* stop at 50; a demo-dev situation had 69). A short read keeps the server's
|
|
88465
|
+
* `totalCount` and logs a warning.
|
|
88466
|
+
*/
|
|
88041
88467
|
async getSituationLifecycleEvents(situationId) {
|
|
88042
|
-
return this.dxSaaSService.oiPost('oi/v2/api/alarms/lifecycle/_search', {
|
|
88468
|
+
return readLifecyclePages((pageNumber, pageSize) => this.dxSaaSService.oiPost('oi/v2/api/alarms/lifecycle/_search', {
|
|
88043
88469
|
alarmId: situationId,
|
|
88044
|
-
pageSize
|
|
88045
|
-
pageNumber
|
|
88470
|
+
pageSize,
|
|
88471
|
+
pageNumber,
|
|
88046
88472
|
sortCol: 'timestamp:desc',
|
|
88047
88473
|
lifeCycleType: 'SITUATION',
|
|
88048
|
-
});
|
|
88474
|
+
}), `situation ${situationId}`, this.log);
|
|
88049
88475
|
}
|
|
88050
88476
|
/** Returns the inspector inspection result for a situation (related alarms, topology). */
|
|
88051
88477
|
async getSituationInspection(situationId) {
|
|
@@ -89858,5 +90284,5 @@ function createServiceMonolith(dxDoConfiguration, log = new NullSimpleLog()) {
|
|
|
89858
90284
|
};
|
|
89859
90285
|
}
|
|
89860
90286
|
|
|
89861
|
-
export { ALARM_CATEGORIES, ALARM_FILTER_CATEGORIES, ALARM_FILTER_DEFAULT_COLUMN_ORDER, ALARM_FILTER_DEFAULT_VISIBLE_COLUMNS, ALARM_FILTER_DISPLAY_COLUMN_KEYS, ALARM_FILTER_FIELD_PATHS, ALARM_QUEUE_CATEGORIES, ALARM_QUEUE_DEFAULT_COLUMN_ORDER, ALARM_QUEUE_DEFAULT_FILTER_SETTINGS, ALARM_QUEUE_DEFAULT_VISIBLE_COLUMNS, ALARM_QUEUE_DISPLAY_COLUMN_KEYS, ALARM_QUEUE_FILTER_CONDITIONS, ALARM_QUEUE_FILTER_SETTING_KEYS, ALARM_VIEW_CATEGORIES, ALARM_VIEW_FIELD_PATHS, ALARM_VIEW_SEARCH_PATHS, ALGORITHMIC_SITUATIONS_KEY, ANOMALY_DETECTION_PRODUCTS, AXAActivities, AccService, AgentService, AgentTrace, AlarmCategorySchema, AlarmEnrichment, AlarmEnrichmentFilter, AlarmFilterFieldSchema, AlarmFilterFieldsResponseSchema, AlarmFilterWriteBodySchema, AlarmFilterWriteResponseSchema, AlarmQueueDeleteResponseSchema, AlarmQueueDetailSchema, AlarmQueueFieldSchema, AlarmQueueFieldsResponseSchema, AlarmQueueFilterSettingsSchema, AlarmQueueListResponseSchema, AlarmQueuePreferencesResponseSchema, AlarmQueuePreferencesSchema, AlarmQueueSchema, AlarmQueueWriteBodySchema, AlarmQueueWriteResponseSchema, AlarmService, AlertDefinitionResponse, AlertResponse, AlertResponseV2, AlertService, AlignmentSchema, AllAlarmQueuesResponseSchema, AnomalyAlertConfigSchema, AnomalyDetectionGroupDeleteResponseSchema, AnomalyDetectionGroupSaveRequestSchema, AnomalyDetectionGroupSaveResponseSchema, AnomalyDetectionGroupSchema, AnomalyDetectionGroupSearchRequestSchema, AnomalyDetectionGroupSearchResponseSchema, AnomalyGroupMetricsEntrySchema, AnomalyGroupMetricsRequestSchema, AnomalyGroupMetricsResponseSchema, AnomalyMetricFieldsRequestSchema, AnomalyMetricFieldsResponseSchema, AnyChannelSchema, ApmUniverseService, AppVersionSchema, AppVersionsResponseSchema, AsmService, AttributeExpressionComparatorSchema, AttributeExpressionOperatorSchema, AttributeExpressionSchema, AttributeFilterOperator, AttributeNameAllSpecifierSchema, AttributeNameAndSpecifierSchema, AttributeNameAnyNumericSpecifierSchema, AttributeNameAttributeSpecifierSchema, AttributeNameChildrenSpecifierSchema, AttributeNameExactSpecifierSchema, AttributeNameFolderSpecifierSchema, AttributeNameNoneSpecifierSchema, AttributeNameNotSpecifierSchema, AttributeNameOperatorSpecifierSchema, AttributeNameOrSpecifierSchema, AttributeNameRegExSpecifierSchema, AttributeNameSpecifierSchema, AttributeNameTypeSpecifierSchema, AttributeService, AttributeValueAsFieldSchema, AuditGlobalQueryRequestSchema, AuditQueryRequestSchema, AuditQueryResponseSchema, AuditRecordEsSchema, AuditRecordSchema, AuditStoreResponseSchema, AuthorizationService, AxaService, BlobAllFilterSchema, BlobAsyncCommandSchema, BlobAsyncDeleteSchemaCommandSchema, BlobAsyncResultEntrySchema, BlobAsyncResultRequestSchema, BlobAsyncResultResponseSchema, BlobAsyncResultStateSchema, BlobAttributeExpressionSchema, BlobAttributeFilterSchema, BlobAttributesSchema, BlobBulkDeleteEntrySchema, BlobBulkDeleteRequestSchema, BlobBulkDeleteResponseSchema, BlobBulkItemSchema, BlobBulkStoreRequestSchema, BlobBulkStoreResponseSchema, BlobDeleteParamsSchema, BlobDeleteResponseSchema, BlobDeleteSchemaResultSchema, BlobExecuteAsyncRequestSchema, BlobExecuteAsyncResponseSchema, BlobFetchParamsSchema, BlobFileEnvelopeSchema, BlobFilterSchema, BlobMetadataSchema, BlobQueryRequestSchema, BlobQueryResponseSchema, BlobSchemaItemSchema, BlobSchemaListRequestSchema, BlobSchemaListResponseSchema, BlobService, BlobStoreParamsSchema, BlobStoreResponseSchema, CLUSTERING_POLICY_BUILTIN_AUTHORS, CLUSTERING_POLICY_CONDITIONS, CLUSTERING_POLICY_PRESENCE_CONDITIONS, CLUSTERING_POLICY_PREVIEW_RANGES, CLUSTERING_POLICY_STATUSES, CURL_COHORT_VAR, CURL_HOST_VAR, CURL_TOKEN_VAR, CUSTOM_FIELD_PATTERN, CalendarIntervalSchema, CancelRevokeRequestSchema, ChannelDeleteResponseSchema, ChannelEnvelopeSchema, ChannelLinkedEntitySchema, ChannelListResponseSchema, ChannelService, ChannelTemplateRefSchema, ChannelWriteBodySchema, ChannelWriteResponseSchema, ClusteringCriteriaValuesSchema, ClusteringCriterionPropertiesSchema, ClusteringCriterionSchema, ClusteringPolicyCriteriaSchema, ClusteringPolicyPreviewResponseSchema, ClusteringPolicySchema, ClusteringPolicySearchRequestSchema, ClusteringPolicySearchResponseSchema, ClusteringPolicyService, ClusteringPolicyWriteBodySchema, ClusteringPreviewClusterSchema, ClusteringPreviewTemplateSchema, CreateAgentTokenRequestSchema, CreateInternalTokenRequestSchema, CreateServices, CreateTenantTokenRequestSchema, CreateUserTokenRequestSchema, DEFAULT_EXPERIENCE_REQUEST_BODY, DEFAULT_EXTERNAL_ID_FORMAT, DEFAULT_WEBHOOK_AUTH_DETAILS, DEFAULT_WEBHOOK_PAYLOAD_FIELDS, DRAFT_FILE_SUFFIX, DXChannel, DXO2_SAAS_GATEWAYS, DXO2_SAAS_GATEWAY_HOSTNAMES, DXO2_STATUS_PAGE_URL, DashboardPermissionsUpdateRequest, DashboardSearch, DashboardService, DataStoreAuditService, DataStoreAuthViewsService, DataStoreBlobStorageService, DataStoreFeaturesService, DataStoreMetricsMetadataService, DataStoreNASSQLService, DataStoreNASSService, DataStoreStatesService, DataStoreTASService, DataStoreTokensService, DefaultViewsResponseSchema, DeleteTokenRequestSchema, DeleteTokensResponseSchema, DxO2SaasRegionSchema, DxSaasService, DxoiService, ENRICHMENT_FILTER_CONDITIONS, ENRICHMENT_PREVIEW_WINDOWS, ENRICHMENT_SOURCES, EXPORT_INCLUDE_TOKEN_ENV, EdgeNumericIdSchema, EmptyCriteriaSchema, EnrichmentCustomFieldSchema, EnrichmentCustomFieldsResponseSchema, EnrichmentMappingSchema, EnrichmentPreviewResponseSchema, EnrichmentRuleSchema, EnrichmentRuleWriteBodySchema, EnrichmentRulesResponseSchema, EnrichmentSchema, EventService, ExperienceService, FILTER_FIELDS, FeatureAttributesSchema, FeatureDatascopeSchema, FeatureDeleteRequestSchema, FeatureFieldSchema, FeatureFieldTypeSchema, FeatureFilterSchema, FeatureFilterTemplateSchema, FeatureFilterTemplateTypeSchema, FeatureIdFilterSchema, FeatureListResponseSchema, FeatureNodeSchema, FeatureQueryRequestSchema, FeatureStoreRequestSchema, FeatureStoreResponseSchema, FeatureToggleListResponseSchema, FeatureToggleListSchema, FillModeSchema, FilterOperation, FolderNameAllSpecifierSchema, FolderNameAndSpecifierSchema, FolderNameChildrenSpecifierSchema, FolderNameExactSpecifierSchema, FolderNameNoneSpecifierSchema, FolderNameNotSpecifierSchema, FolderNameOrSpecifierSchema, FolderNameRegExSpecifierSchema, FolderNameSpecifierSchema, GenericChannelSchema, GraphResponse, GraphService, INVENTORY_QUEUE_CATEGORY, INVENTORY_QUEUE_DEFAULT_SELECT_TOGGLES, INVENTORY_QUEUE_DEFAULT_VISIBLE_COLUMNS, INVENTORY_QUEUE_FILTER_CONDITIONS, INVENTORY_QUEUE_NO_GROUP, ITSM_DEFAULT_TICKET_TEMPLATE, ITSM_SECRET_KEYS, ImportTokenRequestSchema, InventorizeDeleteResponseSchema, InventorizeDraftSchema, InventorizeLayerSchema, InventorizePreviewResponseSchema, InventorizePreviewSchema, InventorizeRuleListResponseSchema, InventorizeRuleSchema, InventorizeSaveResponseSchema, Inventory, InventoryAttributes, InventoryGroupSchema, InventoryGroupsResponseSchema, InventoryQueueDeleteResponseSchema, InventoryQueueDetailSchema, InventoryQueueFieldSchema, InventoryQueueFieldsResponseSchema, InventoryQueueFilterAtomSchema, InventoryQueueListResponseSchema, InventoryQueuePreferencesResponseSchema, InventoryQueuePreferencesSchema, InventoryQueueSchema, InventoryQueueWriteBodySchema, InventoryQueueWriteResponseSchema, InventoryService, ItsmChannelSchema, ItsmPropertySchema, ItsmTestConnectionRequestSchema, ItsmTestConnectionResponseSchema, JEXL_CONTEXT_CATALOG, JEXL_SAMPLE_CONTEXT, JavaRegexError, JexlEvalError, JexlSyntaxError, JoinTypeSchema, JsExtensionService, LOG_ANALYTICS_PRODUCT, LogCustomIngest, LogIngest, LogQuery, LogTypes, LogsService, MAX_SLIS_PER_GROUP, MESSAGE_TEMPLATE_ALARM_TYPES, METRIC_TYPE_ENUM, METRIC_TYPE_ENUM_NAMES, METRIC_TYPE_REGION, MServe, MaintenanceBulkDeleteResponseSchema, MaintenanceCreateRequestSchema, MaintenanceCreateResponseSchema, MaintenanceDeleteRequestSchema, MaintenanceDetailSchema, MaintenanceExcludedMemberSchema, MaintenanceFilterLeafSchema, MaintenanceFilterSchema, MaintenanceMemberSchema, MaintenanceMemberSourceSchema, MaintenanceMemberTypeSchema, MaintenancePreviewRequestSchema, MaintenancePreviewResponseSchema, MaintenanceScheduleSchema, MaintenanceSearchRequestSchema, MaintenanceSearchResponseSchema, MaintenanceService, MaintenanceSummarySchema, ManagementModuleIdSchema, ManagementModuleService, MatchType, MessageTemplateFieldSchema, MessageTemplateFieldsResponseSchema, MetadataMetricQueryResponseV2Schema, MetadataMetricQuerySchema, MetricAnomalyService, MetricAttributeSchema, MetricBatchService, MetricConfigCustomFilterSchema, MetricConfigFilterOrBlockSchema, MetricConfigFilterSchema, MetricFolderSchema, MetricGroupingService, MetricRegisterInputSchema, MetricRegisterRequestSchema, MetricRegisterResponseSchema, MetricRegisterSchema, MetricRegisterSourceSchema, MetricTypeEnumNameSchema, NASS, NASSService, NassDatapointSchema, NassExtensionDatapointSchema, NassRegularDatapointSchema, NassStoreRequestSchema, NassStoreResponseSchema, NassValueTypeSchema, NotificationService, NumericOperatorSchema, O2NotificationService, O2UniverseService, OIAlarm, OIService, OIUsersV2, OperatorSchema, POLICY_ALARM_CATEGORIES, POLICY_FILTER_CONDITIONS, POSTMAN_TOKEN_VAR, PRODUCT_STATUS_PROVISIONED, PerspectiveService, PlatformAlertService, PlatformFilters, PlatformManagementModuleService, PlatformMetricGroupingService, PolicyDeleteResponseSchema, PolicyFieldSchema, PolicyFieldsResponseSchema, PolicyFilterAtomSchema, PolicyFilterExpressionSchema, PolicyLinkedEntitySchema, PolicyNamingOperationSchema, PolicyWriteBodySchema, PolicyWriteResponseSchema, PublicKeyJsonResponseSchema, QuantileMethodSchema, QueryAllSpecifierSchema, QueryAndSpecifierSchema, QueryAttributeExpressionSchema, QueryAttributeSpecifierSchema, QueryColumnTypeSpecSchema, QueryFilterPredicateSpecSchema, QueryFunctionSpecSchema, QueryHintForceRangeSchema, QueryHintSchema, QueryIdSpecifierSchema, QueryMetricGroupSpecifierSchema, QueryMetricIdSchema, QueryNoneSpecifierSchema, QueryNotSpecifierSchema, QueryOrSpecifierSchema, QueryRangeSpecSchema, QueryRequestSchema, QueryResultCellSchema, QueryResultSchema, QueryResultTableSchema, QuerySpecSpecifierSchema, QuerySpecifierSchema, REDACTED_SECRET, RecurrencePattern, RevokeTokenRequestSchema, RevokeTokensResponseSchema, SLIService, SLI_DERIVED_METRIC_SOURCE, SMTP_DEFAULT_TEMPLATES, SOURCENAME_DIALECT_CATALOG, SQLService, ServiceDeskFieldSchema, ServiceDeskFieldsResponseSchema, ServiceExport, ServiceFilterSpecifierSchema, ServiceService, ServiceTransform, ServiceUniverseAccessEntrySchema, ServiceUniverseAccessSchema, ServiceUniverseAttributesSchema, ServiceUniverseBodySchema, ServiceUniverseListItemSchema, ServiceUniverseListResponseSchema, ServiceUniverseNassViewSchema, ServiceUniversePermissionSchema, ServiceUniverseQueryResponseSchema, ServiceUniverseSchema, ServiceUniverseService, ServiceUniverseTasSpecSchema, ServiceUniverseTasViewSchema, ServiceUniverseViewSchema, SessionService, SessionValidateRequestSchema, SessionValidateResponseSchema, SetDefaultViewRequestSchema, SimpleHTTPError, SituationLifecycle, SituationService, Situations, SliAggregationIntervalSchema, SliAlertEntrySchema, SliAlertOperatorSchema, SliAlertTargetSchema, SliDerivedMetricAttributeSchema, SliDerivedMetricsSchema, SliExpressionSchema, SliFilterSchema, SliFunctionCustomParamsSchema, SliFunctionInputSchema, SliFunctionOpSchema, SliFunctionOutputSchema, SliFunctionSchema, SliGroupDeleteResponseSchema, SliGroupMetricsEntrySchema, SliGroupMetricsRequestSchema, SliGroupMetricsResponseSchema, SliGroupSaveRequestSchema, SliGroupSaveResponseSchema, SliGroupSchema, SliGroupSearchRequestSchema, SliGroupSearchResponseSchema, SliMetricFieldSchema, SliMetricFieldsRequestSchema, SliMetricFieldsResponseSchema, SliThresholdComparatorSchema, SliThresholdSchema, SloCalendarPeriodSchema, SloFunctionOpSchema, SloFunctionSchema, SmtpChannelConfigsSchema, SmtpChannelSchema, SmtpTestInputSchema, SmtpTestRequestSchema, SmtpTestResponseSchema, SourceNameAllSpecifierSchema, SourceNameAndSpecifierSchema, SourceNameExactSpecifierSchema, SourceNameNoneSpecifierSchema, SourceNameNotSpecifierSchema, SourceNameOrSpecifierSchema, SourceNamePartOperatorSpecifierSchema, SourceNameRegExSpecifierSchema, SourceNameSpecifierSchema, StatusPageComponentSchema, StatusPageComponentsSchema, StoredCriteriaSchema, TAGS_ATTRIBUTE_KEY, TAS, TASGraph, TASService, TC_METRIC_CAP, TC_RESERVED_CUSTOM_ATTRIBUTE_KEYS, TC_STANDARD_ATTRIBUTE_KEYS, TICKET_ENRICHMENT_ALARM_TYPES, TICKET_ENRICHMENT_FIELD_CODES, TasAddFlowsFilterSchema, TasAddTransitioningEdgesFilterSchema, TasAddWireContextFilterSchema, TasAddWiresFilterSchema, TasAllFilterSchema, TasAnalyticBaseSchema, TasAnalyticResultSchema, TasAndFilterSchema, TasAttributeAlertStatisticsSchema, TasAttributeFilterModeSchema, TasAttributeFilterSchema, TasAttributeNameSchema, TasAttributeTypeSchema, TasCollectAttributeNamesFilterSchema, TasCollectAttributeNamesResultSchema, TasCollectAttributeResultSchema, TasCollectAttributesFilterSchema, TasCollectCardInfoFilterSchema, TasCollectCardInfoResultSchema, TasCollectCardInfoTierSchema, TasCollectCountsFilterSchema, TasCollectCountsResultSchema, TasCollectExperienceAttributesFilterSchema, TasCollectExperienceSelectorSchema, TasCollectGroupingInfoFilterSchema, TasCollectGroupingInfoResultSchema, TasCollectVertexIdFilterSchema, TasCoverageFilterSchema, TasEdgeSchema, TasEmptyFilterSchema, TasExternalIdSchema, TasFilterSchema, TasFollowPathFilterSchema, TasFollowPathFlowFilterSchema, TasFollowPathTypeSchema, TasGraphSchema, TasGroupingAlertStatisticsSchema, TasGroupingInfoSchema, TasGroupingItemSchema, TasJoinFilterSchema, TasJoinTypeSchema, TasLayerFilterSchema, TasLegacyFilterSchema, TasLuceneFilterSchema, TasNotFilterSchema, TasOrFilterSchema, TasOrderSchema, TasProjectionFilterSchema, TasQuerySchema, TasServiceFilterSchema, TasStatusFilterSchema, TasStoreAttributeValueSchema, TasStoreChangeSchema, TasStoreEdgeSchema, TasStoreGraphInputSchema, TasStoreGraphResponseSchema, TasStoreGraphSchema, TasStoreVertexSchema, TasTakeEdgesFilterSchema, TasTakeFlowsFilterSchema, TasTakeVerticesFilterSchema, TasTraverseFilterSchema, TasVariableFilterSchema, TasVariableSchema, TasVertexIdFilterSchema, TasVertexSchema, TasViewSchema, TemplateDeleteResponseSchema, TemplateWriteBodySchema, TemplateWriteResponseSchema, TenantConfigAttributeSchema, TenantConfigAttributesResponseSchema, TenantConfigAttributesWriteBodySchema, TenantConfigAttributesWriteResponseSchema, TenantProductSchema, TenantProductsResponseSchema, TenantRoleSchema, TenantRolesResponseSchema, TenantService, TicketEnrichmentAlarmFieldSchema, TicketEnrichmentAlarmFieldsResponseSchema, TicketEnrichmentListResponseSchema, TicketEnrichmentMappingSchema, TicketEnrichmentRuleSchema, TicketEnrichmentWriteBodySchema, TicketEnrichmentWriteResponseSchema, TokenCreateResponseSchema, TokenDetailsSchema, TokenGetAndVerifyRequestSchema, TokenMetadataSchema, TokenQueryRequestSchema, TokenQueryResponseSchema, TokenVerifyRequestSchema, Trace, TraversalEdgeFilterSchema, TraversalVertexFilterSchema, TraverseCollectSchema, TraverseDirectionSchema, TraverseSchema, UIM_LOGS_INGESTION_PATH, UpdateAgentTokenRequestSchema, UpdateTenantTokenRequestSchema, UpdateUserTokenRequestSchema, VertexGroupSchema, VertexMappingConfigurationModule, VertexService, VertexStateAlertFilterSchema, VertexStateAllFilterSchema, VertexStateAnalyticResultSchema, VertexStateAndFilterSchema, VertexStateClampSettingSchema, VertexStateCollectVertexGroupStatusFilterSchema, VertexStateEmptyFilterSchema, VertexStateExternalIdInputSchema, VertexStateExternalIdResponseSchema, VertexStateExternalIdSchema, VertexStateFetchRequestSchema, VertexStateFetchResponseSchema, VertexStateFilterSchema, VertexStateGroupResultSchema, VertexStateInputSchema, VertexStateManagementModuleFilterSchema, VertexStateMetricFilterSchema, VertexStateNamespaceFilterSchema, VertexStateNumericIdSchema, VertexStateOrFilterSchema, VertexStateProjectionSchema, VertexStateRangeRequestSchema, VertexStateRangeResponseSchema, VertexStateRepublishRequestSchema, VertexStateResponseItemSchema, VertexStateSchema, VertexStateStateFilterSchema, VertexStateStoreRequestSchema, VertexStateStoreResponseSchema, VertexStateVertexIdFilterSchema, VertexStatusChanges, ViewAccessEntrySchema, ViewAccessRoleSchema, ViewAccessSchema, ViewActiveFilterSchema, ViewAllFilterSchema, ViewAndFilterSchema, ViewAttributeExpressionSchema, ViewAttributeFilterSchema, ViewAttributesSchema, ViewBodySchema, ViewFilterSchema, ViewIdFilterSchema, ViewListResponseSchema, ViewNassSpecSchema, ViewOrFilterSchema, ViewOwnerSchema, ViewQueryRequestSchema, ViewQueryResponseSchema, ViewResponseSchema, ViewSearchRequestSchema, ViewSpecsSchema, ViewTasSpecSchema, WebhookAuthDetailsSchema, WebhookChannelSchema, WebhookSpecSchema, WebhookTestInputSchema, WebhookTestRequestSchema, WebhookTestResponseSchema, ags, agsresponse, alarmFilterDisplayColumnsFor, alertsForSliIndex, algorithmicSituationsEnabled, allAlarmQueues, apiTokenCreate, apiTokenDelete, apiTokenGet, apiTokenList, apiTokenUpdate, appendSli, appendSloTriplet, attributeFilterTargets, authHeaderValue, buildAlarmFilterUpdateBody, buildAlarmQueueFilterExpression, buildAlarmQueueUpdateBody, buildAlertEntry, buildClusteringPolicyUpdateBody, buildCustomLogPayload, buildEnrichmentRuleUpdateBody, buildInventoryCustomFilter, buildInventoryQueueUpdateBody, buildPolicyFilterExpression, buildSliFunction, buildSloTriplet, buildTemplateRefs, buildUimLogPayload, capVertexDetail, checkGet, chunkPayloads, classifyIngestionError, compileTcSourceName, composeMetricTypeBits, contactActivate, contactDelete, contactTestSend, contactsBlockDelete, contactsBlockPut, contactsConfirm, contactsCreate, contactsGet, contactsGetDetail, contactsReplaceNotificationsWith, contactsRequestConfirmationCode, contactsUpdate, convertLegacyConfiguration, createCurlCommand, createCurlScript, createPostmanRequest, createServiceMonolith, customAttributeKeyIssues, decodeMetricTypeBits, defaultItsmPropertyList, defaultRuleName, deriveSliAs, deriveVertexName, describeClusteringCriteria, displayColumnsFor, dottedFileSlot, draftKey, encodeItsmSecret, ensureParallelAlerts, escapeRegExp, evaluate, evaluateTemplate, example, excludedAttributes, exportFileLabel, exportIncludesToken, expressionPipelineNames, extractComponentGridData, findAlertByTarget, findInventoryGroup, findProduct, findRedactedSecretPaths, findSliByName, flattenAxiosHeaders, folderAccessGet, folderDelete, folderGet, folderPost, folderUpdate, foldersList, formExternalId, getDataStoreSchema, getUserTokenSub, getUserTokenTid, getVertexAttributeValue, getVertexAttributeValueOrNull, hasTypeTagsFlag, hasVertexAttribute, impliedDxo2Version, incrementVariant, inventoryDisplayColumnsFor, inventoryQueuesOf, inventorySearchRequestBodyExample, inventorySearchResponseBody, isAlarmFilter, isAlarmQueue, isAlarmQueueNotFound, isAuthorizationHeader, isBuiltInClusteringPolicy, isBuiltInPolicy, isBuiltInTemplate, isDataStoreSchemaType, isEmptyCriteria, isInventoryQueueNotFound, isPersonalQueue, isProductProvisioned, isTemplate, isTenantToken, isUserToken, isWildcardOnlySourceName, itsmMapToProperties, itsmPropertiesToMap, javaFullMatch, javaRegexToJs, javaReplaceAll, javaReplaceFirst, javaSplit, lintSourceName, listDataStoreSchemaOps, listSlis, locationsCreate, locationsDelete, locationsGet, locationsGetAll, locationsGetByType, locationsLeafGetFilter, locationsPost, logGet, logGetEvent, logIngestionURLForGateway, maintenanceDelete, maintenanceDeleteWindows, maintenanceFilter, maintenanceGet, maintenanceGetDetail, maintenanceGetWindows, maintenanceGetWindowsDetail, maintenanceUpdateWindowsDetail, maintenancesCreate, maintenancesImmediateDelete, maintenancesImmediatePut, maintenancesPostWindows, maintenancesUpdate, measureBytes, messageGet, messageTemplateVariables, messagesList, monitorActivate, monitorCreate, monitorDeactivate, monitorDelete, monitorGet, monitorGetAll, monitorUpdate, normalizeAlarmQueueSharing, oauthClientTokensCreate, oauthClientTokensDelete, oauthClientTokensGet, oauthClientTokensList, oauthClientTokensUpdate, oauthCreateToken, oauthGetRefreshTokenList, oauthGetTokenList, oauthRefreshTokenDeleteId, oauthTokenCognateDelete, oauthTokenCognateDeleteCurrent, oauthTokenDelete, oauthTokenDeleteCurrent, orBlocksByField, parseExpression, parseExternalIdFormat, parseFilter, parseSaasGateway, parseServiceNowUrl, pipeGroupRanges, planEnrichmentReorder, policyCategoryGuard, policyFieldBounds, policyFilterAtoms, producedMetricName, projectCustomAttributes, projectRule, pruneOrphanSloFunctions, redactChannelSecrets, reencodeItsmForWrite, removeAlert, removeSli, removeSloTriplet, resolveAnomalyDetectionProduct, resolveEnrichmentMappings, resolveWebhookPayload, sampleServiceDetailRequestBody, searchUniverse, sendWithRetry, serviceDetailResponseBody, settingsGet, settingsGetDetail, settingsUpdate, sharedRoleDelta, sleep, sliHumanName, sloTripletFor, sortRulesByPriority, sourceNameBattery, sourceNameMatrix, splitAttributePath, splitTemplate, standardVertexAttributes, stationDelete, stationsAgentType, stationsCreate, stationsDeleteMaintenance, stationsGet, stationsGetAgents, stationsLatest, stationsList, stationsOnpremiseConnected, stationsOnpremiseConnectedAll, stationsOnpremiseList, stationsPutMaintenance, stationsUpdate, statistic, summarizeDataStoreSchema, tagsGetAll, tcSourceNameMatches, tcSourceNameToJavaRegex, tcSourceNameToMmPattern, templateUsage, tenantConfigAttribute, timezonesList, toAlarmFilterWriteBody, toAlarmQueueWriteBody, toAnomalyDetectionGroupSaveRequest, toAnomalyGroupMetricsRequest, toChannelWriteBody, toClusteringPolicyPreviewBody, toClusteringPolicyWriteBody, toEnrichmentRuleCreateBody, toGroupMetricsRequest, toInventoryQueueWriteBody, toItsmTestConnectionRequest, toPolicyWriteBody, toSliGroupSaveRequest, toTemplateWriteBody, toTicketEnrichmentWriteBody, tokenize, translateRuleToMmQuery, truthy, userBlockDelete, userBlockPut, userDelete, userGet, userLockDelete, userPut, userSubaccountsGet, userSubaccountsPost, verifyAndDumpLegacyConfiguration, verifyAndDumpVersion3Configuration, verifyAndDumpVersion4Configuration, vertexMatchesFilters, visibleAlarmQueueColumns, visibleInventoryColumns };
|
|
90287
|
+
export { ALARM_CATEGORIES, ALARM_FILTER_CATEGORIES, ALARM_FILTER_DEFAULT_COLUMN_ORDER, ALARM_FILTER_DEFAULT_VISIBLE_COLUMNS, ALARM_FILTER_DISPLAY_COLUMN_KEYS, ALARM_FILTER_FIELD_PATHS, ALARM_QUEUE_CATEGORIES, ALARM_QUEUE_DEFAULT_COLUMN_ORDER, ALARM_QUEUE_DEFAULT_FILTER_SETTINGS, ALARM_QUEUE_DEFAULT_VISIBLE_COLUMNS, ALARM_QUEUE_DISPLAY_COLUMN_KEYS, ALARM_QUEUE_FILTER_CONDITIONS, ALARM_QUEUE_FILTER_SETTING_KEYS, ALARM_RECORD_PAGE_SIZE, ALARM_RECORD_WINDOW_CAP, ALARM_SEARCH_PAGE_CAP, ALARM_VIEW_CATEGORIES, ALARM_VIEW_FIELD_PATHS, ALARM_VIEW_SEARCH_PATHS, ALGORITHMIC_SITUATIONS_KEY, ANOMALY_DETECTION_PRODUCTS, AXAActivities, AccService, AgentService, AgentTrace, AlarmCategorySchema, AlarmEnrichment, AlarmEnrichmentFilter, AlarmFilterFieldSchema, AlarmFilterFieldsResponseSchema, AlarmFilterWriteBodySchema, AlarmFilterWriteResponseSchema, AlarmQueueDeleteResponseSchema, AlarmQueueDetailSchema, AlarmQueueFieldSchema, AlarmQueueFieldsResponseSchema, AlarmQueueFilterSettingsSchema, AlarmQueueListResponseSchema, AlarmQueuePreferencesResponseSchema, AlarmQueuePreferencesSchema, AlarmQueueSchema, AlarmQueueWriteBodySchema, AlarmQueueWriteResponseSchema, AlarmRecordSchema, AlarmRecordSearchResponseSchema, AlarmService, AlertDefinitionResponse, AlertResponse, AlertResponseV2, AlertService, AlignmentSchema, AllAlarmQueuesResponseSchema, AnomalyAlertConfigSchema, AnomalyDetectionGroupDeleteResponseSchema, AnomalyDetectionGroupSaveRequestSchema, AnomalyDetectionGroupSaveResponseSchema, AnomalyDetectionGroupSchema, AnomalyDetectionGroupSearchRequestSchema, AnomalyDetectionGroupSearchResponseSchema, AnomalyGroupMetricsEntrySchema, AnomalyGroupMetricsRequestSchema, AnomalyGroupMetricsResponseSchema, AnomalyMetricFieldsRequestSchema, AnomalyMetricFieldsResponseSchema, AnyChannelSchema, ApmUniverseService, AppVersionSchema, AppVersionsResponseSchema, AsmService, AttributeExpressionComparatorSchema, AttributeExpressionOperatorSchema, AttributeExpressionSchema, AttributeFilterOperator, AttributeNameAllSpecifierSchema, AttributeNameAndSpecifierSchema, AttributeNameAnyNumericSpecifierSchema, AttributeNameAttributeSpecifierSchema, AttributeNameChildrenSpecifierSchema, AttributeNameExactSpecifierSchema, AttributeNameFolderSpecifierSchema, AttributeNameNoneSpecifierSchema, AttributeNameNotSpecifierSchema, AttributeNameOperatorSpecifierSchema, AttributeNameOrSpecifierSchema, AttributeNameRegExSpecifierSchema, AttributeNameSpecifierSchema, AttributeNameTypeSpecifierSchema, AttributeService, AttributeValueAsFieldSchema, AuditGlobalQueryRequestSchema, AuditQueryRequestSchema, AuditQueryResponseSchema, AuditRecordEsSchema, AuditRecordSchema, AuditStoreResponseSchema, AuthorizationService, AxaService, BlobAllFilterSchema, BlobAsyncCommandSchema, BlobAsyncDeleteSchemaCommandSchema, BlobAsyncResultEntrySchema, BlobAsyncResultRequestSchema, BlobAsyncResultResponseSchema, BlobAsyncResultStateSchema, BlobAttributeExpressionSchema, BlobAttributeFilterSchema, BlobAttributesSchema, BlobBulkDeleteEntrySchema, BlobBulkDeleteRequestSchema, BlobBulkDeleteResponseSchema, BlobBulkItemSchema, BlobBulkStoreRequestSchema, BlobBulkStoreResponseSchema, BlobDeleteParamsSchema, BlobDeleteResponseSchema, BlobDeleteSchemaResultSchema, BlobExecuteAsyncRequestSchema, BlobExecuteAsyncResponseSchema, BlobFetchParamsSchema, BlobFileEnvelopeSchema, BlobFilterSchema, BlobMetadataSchema, BlobQueryRequestSchema, BlobQueryResponseSchema, BlobSchemaItemSchema, BlobSchemaListRequestSchema, BlobSchemaListResponseSchema, BlobService, BlobStoreParamsSchema, BlobStoreResponseSchema, CLUSTERING_POLICY_BUILTIN_AUTHORS, CLUSTERING_POLICY_CONDITIONS, CLUSTERING_POLICY_PRESENCE_CONDITIONS, CLUSTERING_POLICY_PREVIEW_RANGES, CLUSTERING_POLICY_STATUSES, CURL_COHORT_VAR, CURL_HOST_VAR, CURL_TOKEN_VAR, CUSTOM_FIELD_PATTERN, CalendarIntervalSchema, CancelRevokeRequestSchema, ChannelDeleteResponseSchema, ChannelEnvelopeSchema, ChannelLinkedEntitySchema, ChannelListResponseSchema, ChannelService, ChannelTemplateRefSchema, ChannelWriteBodySchema, ChannelWriteResponseSchema, ClusteringCriteriaValuesSchema, ClusteringCriterionPropertiesSchema, ClusteringCriterionSchema, ClusteringPolicyCriteriaSchema, ClusteringPolicyPreviewResponseSchema, ClusteringPolicySchema, ClusteringPolicySearchRequestSchema, ClusteringPolicySearchResponseSchema, ClusteringPolicyService, ClusteringPolicyWriteBodySchema, ClusteringPreviewClusterSchema, ClusteringPreviewTemplateSchema, CreateAgentTokenRequestSchema, CreateInternalTokenRequestSchema, CreateServices, CreateTenantTokenRequestSchema, CreateUserTokenRequestSchema, DEFAULT_EXPERIENCE_REQUEST_BODY, DEFAULT_EXTERNAL_ID_FORMAT, DEFAULT_WEBHOOK_AUTH_DETAILS, DEFAULT_WEBHOOK_PAYLOAD_FIELDS, DRAFT_FILE_SUFFIX, DXChannel, DXO2_SAAS_GATEWAYS, DXO2_SAAS_GATEWAY_HOSTNAMES, DXO2_STATUS_PAGE_URL, DashboardPermissionsUpdateRequest, DashboardSearch, DashboardService, DataStoreAuditService, DataStoreAuthViewsService, DataStoreBlobStorageService, DataStoreFeaturesService, DataStoreMetricsMetadataService, DataStoreNASSQLService, DataStoreNASSService, DataStoreStatesService, DataStoreTASService, DataStoreTokensService, DefaultViewsResponseSchema, DeleteTokenRequestSchema, DeleteTokensResponseSchema, DxO2SaasRegionSchema, DxSaasService, DxoiService, ENRICHMENT_FILTER_CONDITIONS, ENRICHMENT_PREVIEW_WINDOWS, ENRICHMENT_SOURCES, EXPORT_INCLUDE_TOKEN_ENV, EdgeNumericIdSchema, EmptyCriteriaSchema, EnrichmentCustomFieldSchema, EnrichmentCustomFieldsResponseSchema, EnrichmentMappingSchema, EnrichmentPreviewResponseSchema, EnrichmentRuleSchema, EnrichmentRuleWriteBodySchema, EnrichmentRulesResponseSchema, EnrichmentSchema, EventService, ExperienceService, FILTER_FIELDS, FeatureAttributesSchema, FeatureDatascopeSchema, FeatureDeleteRequestSchema, FeatureFieldSchema, FeatureFieldTypeSchema, FeatureFilterSchema, FeatureFilterTemplateSchema, FeatureFilterTemplateTypeSchema, FeatureIdFilterSchema, FeatureListResponseSchema, FeatureNodeSchema, FeatureQueryRequestSchema, FeatureStoreRequestSchema, FeatureStoreResponseSchema, FeatureToggleListResponseSchema, FeatureToggleListSchema, FillModeSchema, FilterOperation, FolderNameAllSpecifierSchema, FolderNameAndSpecifierSchema, FolderNameChildrenSpecifierSchema, FolderNameExactSpecifierSchema, FolderNameNoneSpecifierSchema, FolderNameNotSpecifierSchema, FolderNameOrSpecifierSchema, FolderNameRegExSpecifierSchema, FolderNameSpecifierSchema, GenericChannelSchema, GraphResponse, GraphService, INVENTORY_QUEUE_CATEGORY, INVENTORY_QUEUE_DEFAULT_SELECT_TOGGLES, INVENTORY_QUEUE_DEFAULT_VISIBLE_COLUMNS, INVENTORY_QUEUE_FILTER_CONDITIONS, INVENTORY_QUEUE_NO_GROUP, ITSM_DEFAULT_TICKET_TEMPLATE, ITSM_SECRET_KEYS, ImportTokenRequestSchema, IncompleteAlarmSearchError, InventorizeDeleteResponseSchema, InventorizeDraftSchema, InventorizeLayerSchema, InventorizePreviewResponseSchema, InventorizePreviewSchema, InventorizeRuleListResponseSchema, InventorizeRuleSchema, InventorizeSaveResponseSchema, Inventory, InventoryAttributes, InventoryGroupSchema, InventoryGroupsResponseSchema, InventoryQueueDeleteResponseSchema, InventoryQueueDetailSchema, InventoryQueueFieldSchema, InventoryQueueFieldsResponseSchema, InventoryQueueFilterAtomSchema, InventoryQueueListResponseSchema, InventoryQueuePreferencesResponseSchema, InventoryQueuePreferencesSchema, InventoryQueueSchema, InventoryQueueWriteBodySchema, InventoryQueueWriteResponseSchema, InventoryService, ItsmChannelSchema, ItsmPropertySchema, ItsmTestConnectionRequestSchema, ItsmTestConnectionResponseSchema, JEXL_CONTEXT_CATALOG, JEXL_SAMPLE_CONTEXT, JavaRegexError, JexlEvalError, JexlSyntaxError, JoinTypeSchema, JsExtensionService, LIFECYCLE_PAGE_SIZE, LOG_ANALYTICS_PRODUCT, LogCustomIngest, LogIngest, LogQuery, LogTypes, LogsService, MAX_SLIS_PER_GROUP, MESSAGE_TEMPLATE_ALARM_TYPES, METRIC_TYPE_ENUM, METRIC_TYPE_ENUM_NAMES, METRIC_TYPE_REGION, MServe, MaintenanceBulkDeleteResponseSchema, MaintenanceCreateRequestSchema, MaintenanceCreateResponseSchema, MaintenanceDeleteRequestSchema, MaintenanceDetailSchema, MaintenanceExcludedMemberSchema, MaintenanceFilterLeafSchema, MaintenanceFilterSchema, MaintenanceMemberSchema, MaintenanceMemberSourceSchema, MaintenanceMemberTypeSchema, MaintenancePreviewRequestSchema, MaintenancePreviewResponseSchema, MaintenanceScheduleSchema, MaintenanceSearchRequestSchema, MaintenanceSearchResponseSchema, MaintenanceService, MaintenanceSummarySchema, ManagementModuleIdSchema, ManagementModuleService, MatchType, MessageTemplateFieldSchema, MessageTemplateFieldsResponseSchema, MetadataMetricQueryResponseV2Schema, MetadataMetricQuerySchema, MetricAnomalyService, MetricAttributeSchema, MetricBatchService, MetricConfigCustomFilterSchema, MetricConfigFilterOrBlockSchema, MetricConfigFilterSchema, MetricFolderSchema, MetricGroupingService, MetricRegisterInputSchema, MetricRegisterRequestSchema, MetricRegisterResponseSchema, MetricRegisterSchema, MetricRegisterSourceSchema, MetricTypeEnumNameSchema, NASS, NASSService, NassDatapointSchema, NassExtensionDatapointSchema, NassRegularDatapointSchema, NassStoreRequestSchema, NassStoreResponseSchema, NassValueTypeSchema, NotificationService, NumericOperatorSchema, O2NotificationService, O2UniverseService, OIAlarm, OIService, OIUsersV2, OperatorSchema, POLICY_ALARM_CATEGORIES, POLICY_FILTER_CONDITIONS, POSTMAN_TOKEN_VAR, PRODUCT_STATUS_PROVISIONED, PerspectiveService, PlatformAlertService, PlatformFilters, PlatformManagementModuleService, PlatformMetricGroupingService, PolicyDeleteResponseSchema, PolicyFieldSchema, PolicyFieldsResponseSchema, PolicyFilterAtomSchema, PolicyFilterExpressionSchema, PolicyLinkedEntitySchema, PolicyNamingOperationSchema, PolicyWriteBodySchema, PolicyWriteResponseSchema, PublicKeyJsonResponseSchema, QuantileMethodSchema, QueryAllSpecifierSchema, QueryAndSpecifierSchema, QueryAttributeExpressionSchema, QueryAttributeSpecifierSchema, QueryColumnTypeSpecSchema, QueryFilterPredicateSpecSchema, QueryFunctionSpecSchema, QueryHintForceRangeSchema, QueryHintSchema, QueryIdSpecifierSchema, QueryMetricGroupSpecifierSchema, QueryMetricIdSchema, QueryNoneSpecifierSchema, QueryNotSpecifierSchema, QueryOrSpecifierSchema, QueryRangeSpecSchema, QueryRequestSchema, QueryResultCellSchema, QueryResultSchema, QueryResultTableSchema, QuerySpecSpecifierSchema, QuerySpecifierSchema, REDACTED_SECRET, RecurrencePattern, RevokeTokenRequestSchema, RevokeTokensResponseSchema, SLIService, SLI_DERIVED_METRIC_SOURCE, SMTP_DEFAULT_TEMPLATES, SOURCENAME_DIALECT_CATALOG, SQLService, ServiceDeskFieldSchema, ServiceDeskFieldsResponseSchema, ServiceExport, ServiceFilterSpecifierSchema, ServiceService, ServiceTransform, ServiceUniverseAccessEntrySchema, ServiceUniverseAccessSchema, ServiceUniverseAttributesSchema, ServiceUniverseBodySchema, ServiceUniverseListItemSchema, ServiceUniverseListResponseSchema, ServiceUniverseNassViewSchema, ServiceUniversePermissionSchema, ServiceUniverseQueryResponseSchema, ServiceUniverseSchema, ServiceUniverseService, ServiceUniverseTasSpecSchema, ServiceUniverseTasViewSchema, ServiceUniverseViewSchema, SessionService, SessionValidateRequestSchema, SessionValidateResponseSchema, SetDefaultViewRequestSchema, SimpleHTTPError, SituationLifecycle, SituationService, Situations, SliAggregationIntervalSchema, SliAlertEntrySchema, SliAlertOperatorSchema, SliAlertTargetSchema, SliDerivedMetricAttributeSchema, SliDerivedMetricsSchema, SliExpressionSchema, SliFilterSchema, SliFunctionCustomParamsSchema, SliFunctionInputSchema, SliFunctionOpSchema, SliFunctionOutputSchema, SliFunctionSchema, SliGroupDeleteResponseSchema, SliGroupMetricsEntrySchema, SliGroupMetricsRequestSchema, SliGroupMetricsResponseSchema, SliGroupSaveRequestSchema, SliGroupSaveResponseSchema, SliGroupSchema, SliGroupSearchRequestSchema, SliGroupSearchResponseSchema, SliMetricFieldSchema, SliMetricFieldsRequestSchema, SliMetricFieldsResponseSchema, SliThresholdComparatorSchema, SliThresholdSchema, SloCalendarPeriodSchema, SloFunctionOpSchema, SloFunctionSchema, SmtpChannelConfigsSchema, SmtpChannelSchema, SmtpTestInputSchema, SmtpTestRequestSchema, SmtpTestResponseSchema, SourceNameAllSpecifierSchema, SourceNameAndSpecifierSchema, SourceNameExactSpecifierSchema, SourceNameNoneSpecifierSchema, SourceNameNotSpecifierSchema, SourceNameOrSpecifierSchema, SourceNamePartOperatorSpecifierSchema, SourceNameRegExSpecifierSchema, SourceNameSpecifierSchema, StatusPageComponentSchema, StatusPageComponentsSchema, StoredCriteriaSchema, TAGS_ATTRIBUTE_KEY, TAS, TASGraph, TASService, TC_METRIC_CAP, TC_RESERVED_CUSTOM_ATTRIBUTE_KEYS, TC_STANDARD_ATTRIBUTE_KEYS, TICKET_ENRICHMENT_ALARM_TYPES, TICKET_ENRICHMENT_FIELD_CODES, TasAddFlowsFilterSchema, TasAddTransitioningEdgesFilterSchema, TasAddWireContextFilterSchema, TasAddWiresFilterSchema, TasAllFilterSchema, TasAnalyticBaseSchema, TasAnalyticResultSchema, TasAndFilterSchema, TasAttributeAlertStatisticsSchema, TasAttributeFilterModeSchema, TasAttributeFilterSchema, TasAttributeNameSchema, TasAttributeTypeSchema, TasCollectAttributeNamesFilterSchema, TasCollectAttributeNamesResultSchema, TasCollectAttributeResultSchema, TasCollectAttributesFilterSchema, TasCollectCardInfoFilterSchema, TasCollectCardInfoResultSchema, TasCollectCardInfoTierSchema, TasCollectCountsFilterSchema, TasCollectCountsResultSchema, TasCollectExperienceAttributesFilterSchema, TasCollectExperienceSelectorSchema, TasCollectGroupingInfoFilterSchema, TasCollectGroupingInfoResultSchema, TasCollectVertexIdFilterSchema, TasCoverageFilterSchema, TasEdgeSchema, TasEmptyFilterSchema, TasExternalIdSchema, TasFilterSchema, TasFollowPathFilterSchema, TasFollowPathFlowFilterSchema, TasFollowPathTypeSchema, TasGraphSchema, TasGroupingAlertStatisticsSchema, TasGroupingInfoSchema, TasGroupingItemSchema, TasJoinFilterSchema, TasJoinTypeSchema, TasLayerFilterSchema, TasLegacyFilterSchema, TasLuceneFilterSchema, TasNotFilterSchema, TasOrFilterSchema, TasOrderSchema, TasProjectionFilterSchema, TasQuerySchema, TasServiceFilterSchema, TasStatusFilterSchema, TasStoreAttributeValueSchema, TasStoreChangeSchema, TasStoreEdgeSchema, TasStoreGraphInputSchema, TasStoreGraphResponseSchema, TasStoreGraphSchema, TasStoreVertexSchema, TasTakeEdgesFilterSchema, TasTakeFlowsFilterSchema, TasTakeVerticesFilterSchema, TasTraverseFilterSchema, TasVariableFilterSchema, TasVariableSchema, TasVertexIdFilterSchema, TasVertexSchema, TasViewSchema, TemplateDeleteResponseSchema, TemplateWriteBodySchema, TemplateWriteResponseSchema, TenantConfigAttributeSchema, TenantConfigAttributesResponseSchema, TenantConfigAttributesWriteBodySchema, TenantConfigAttributesWriteResponseSchema, TenantProductSchema, TenantProductsResponseSchema, TenantRoleSchema, TenantRolesResponseSchema, TenantService, TicketEnrichmentAlarmFieldSchema, TicketEnrichmentAlarmFieldsResponseSchema, TicketEnrichmentListResponseSchema, TicketEnrichmentMappingSchema, TicketEnrichmentRuleSchema, TicketEnrichmentWriteBodySchema, TicketEnrichmentWriteResponseSchema, TokenCreateResponseSchema, TokenDetailsSchema, TokenGetAndVerifyRequestSchema, TokenMetadataSchema, TokenQueryRequestSchema, TokenQueryResponseSchema, TokenVerifyRequestSchema, Trace, TraversalEdgeFilterSchema, TraversalVertexFilterSchema, TraverseCollectSchema, TraverseDirectionSchema, TraverseSchema, UIM_LOGS_INGESTION_PATH, UpdateAgentTokenRequestSchema, UpdateTenantTokenRequestSchema, UpdateUserTokenRequestSchema, VertexGroupSchema, VertexMappingConfigurationModule, VertexService, VertexStateAlertFilterSchema, VertexStateAllFilterSchema, VertexStateAnalyticResultSchema, VertexStateAndFilterSchema, VertexStateClampSettingSchema, VertexStateCollectVertexGroupStatusFilterSchema, VertexStateEmptyFilterSchema, VertexStateExternalIdInputSchema, VertexStateExternalIdResponseSchema, VertexStateExternalIdSchema, VertexStateFetchRequestSchema, VertexStateFetchResponseSchema, VertexStateFilterSchema, VertexStateGroupResultSchema, VertexStateInputSchema, VertexStateManagementModuleFilterSchema, VertexStateMetricFilterSchema, VertexStateNamespaceFilterSchema, VertexStateNumericIdSchema, VertexStateOrFilterSchema, VertexStateProjectionSchema, VertexStateRangeRequestSchema, VertexStateRangeResponseSchema, VertexStateRepublishRequestSchema, VertexStateResponseItemSchema, VertexStateSchema, VertexStateStateFilterSchema, VertexStateStoreRequestSchema, VertexStateStoreResponseSchema, VertexStateVertexIdFilterSchema, VertexStatusChanges, ViewAccessEntrySchema, ViewAccessRoleSchema, ViewAccessSchema, ViewActiveFilterSchema, ViewAllFilterSchema, ViewAndFilterSchema, ViewAttributeExpressionSchema, ViewAttributeFilterSchema, ViewAttributesSchema, ViewBodySchema, ViewFilterSchema, ViewIdFilterSchema, ViewListResponseSchema, ViewNassSpecSchema, ViewOrFilterSchema, ViewOwnerSchema, ViewQueryRequestSchema, ViewQueryResponseSchema, ViewResponseSchema, ViewSearchRequestSchema, ViewSpecsSchema, ViewTasSpecSchema, WebhookAuthDetailsSchema, WebhookChannelSchema, WebhookSpecSchema, WebhookTestInputSchema, WebhookTestRequestSchema, WebhookTestResponseSchema, ags, agsresponse, alarmFilterDisplayColumnsFor, alarmRecordTime, alertsForSliIndex, algorithmicSituationsEnabled, allAlarmQueues, apiTokenCreate, apiTokenDelete, apiTokenGet, apiTokenList, apiTokenUpdate, appendSli, appendSloTriplet, attributeFilterTargets, authHeaderValue, buildAlarmFilterUpdateBody, buildAlarmQueueFilterExpression, buildAlarmQueueUpdateBody, buildAlertEntry, buildClusteringPolicyUpdateBody, buildCustomLogPayload, buildEnrichmentRuleUpdateBody, buildInventoryCustomFilter, buildInventoryQueueUpdateBody, buildPolicyFilterExpression, buildSliFunction, buildSloTriplet, buildTemplateRefs, buildUimLogPayload, capVertexDetail, checkGet, chunkPayloads, classifyIngestionError, compileTcSourceName, composeMetricTypeBits, contactActivate, contactDelete, contactTestSend, contactsBlockDelete, contactsBlockPut, contactsConfirm, contactsCreate, contactsGet, contactsGetDetail, contactsReplaceNotificationsWith, contactsRequestConfirmationCode, contactsUpdate, convertLegacyConfiguration, createCurlCommand, createCurlScript, createPostmanRequest, createServiceMonolith, customAttributeKeyIssues, decodeMetricTypeBits, defaultItsmPropertyList, defaultRuleName, deriveSliAs, deriveVertexName, describeClusteringCriteria, displayColumnsFor, dottedFileSlot, draftKey, encodeItsmSecret, ensureParallelAlerts, escapeRegExp, evaluate, evaluateTemplate, example, excludedAttributes, exportAlarmRecords, exportFileLabel, exportIncludesToken, expressionPipelineNames, extractComponentGridData, findAlertByTarget, findInventoryGroup, findProduct, findRedactedSecretPaths, findSliByName, flattenAxiosHeaders, folderAccessGet, folderDelete, folderGet, folderPost, folderUpdate, foldersList, formExternalId, getDataStoreSchema, getUserTokenSub, getUserTokenTid, getVertexAttributeValue, getVertexAttributeValueOrNull, hasTypeTagsFlag, hasVertexAttribute, impliedDxo2Version, incrementVariant, inventoryDisplayColumnsFor, inventoryQueuesOf, inventorySearchRequestBodyExample, inventorySearchResponseBody, isAlarmFilter, isAlarmQueue, isAlarmQueueNotFound, isAuthorizationHeader, isBuiltInClusteringPolicy, isBuiltInPolicy, isBuiltInTemplate, isDataStoreSchemaType, isEmptyCriteria, isInventoryQueueNotFound, isPersonalQueue, isProductProvisioned, isTemplate, isTenantToken, isUserToken, isWildcardOnlySourceName, itsmMapToProperties, itsmPropertiesToMap, javaFullMatch, javaRegexToJs, javaReplaceAll, javaReplaceFirst, javaSplit, lintSourceName, listDataStoreSchemaOps, listSlis, locationsCreate, locationsDelete, locationsGet, locationsGetAll, locationsGetByType, locationsLeafGetFilter, locationsPost, logGet, logGetEvent, logIngestionURLForGateway, maintenanceDelete, maintenanceDeleteWindows, maintenanceFilter, maintenanceGet, maintenanceGetDetail, maintenanceGetWindows, maintenanceGetWindowsDetail, maintenanceUpdateWindowsDetail, maintenancesCreate, maintenancesImmediateDelete, maintenancesImmediatePut, maintenancesPostWindows, maintenancesUpdate, measureBytes, messageGet, messageTemplateVariables, messagesList, monitorActivate, monitorCreate, monitorDeactivate, monitorDelete, monitorGet, monitorGetAll, monitorUpdate, normalizeAlarmQueueSharing, oauthClientTokensCreate, oauthClientTokensDelete, oauthClientTokensGet, oauthClientTokensList, oauthClientTokensUpdate, oauthCreateToken, oauthGetRefreshTokenList, oauthGetTokenList, oauthRefreshTokenDeleteId, oauthTokenCognateDelete, oauthTokenCognateDeleteCurrent, oauthTokenDelete, oauthTokenDeleteCurrent, orBlocksByField, parseAlarmRecordTime, parseExpression, parseExternalIdFormat, parseFilter, parseSaasGateway, parseServiceNowUrl, pipeGroupRanges, planEnrichmentReorder, policyCategoryGuard, policyFieldBounds, policyFilterAtoms, producedMetricName, projectCustomAttributes, projectRule, pruneOrphanSloFunctions, readLifecyclePages, redactChannelSecrets, reencodeItsmForWrite, removeAlert, removeSli, removeSloTriplet, resolveAnomalyDetectionProduct, resolveEnrichmentMappings, resolveWebhookPayload, sampleServiceDetailRequestBody, searchAlarmWindows, searchUniverse, sendWithRetry, serviceDetailResponseBody, settingsGet, settingsGetDetail, settingsUpdate, sharedRoleDelta, sleep, sliHumanName, sloTripletFor, sortRulesByPriority, sourceNameBattery, sourceNameMatrix, splitAttributePath, splitTemplate, standardVertexAttributes, stationDelete, stationsAgentType, stationsCreate, stationsDeleteMaintenance, stationsGet, stationsGetAgents, stationsLatest, stationsList, stationsOnpremiseConnected, stationsOnpremiseConnectedAll, stationsOnpremiseList, stationsPutMaintenance, stationsUpdate, statistic, summarizeDataStoreSchema, tagsGetAll, tcSourceNameMatches, tcSourceNameToJavaRegex, tcSourceNameToMmPattern, templateUsage, tenantConfigAttribute, timezonesList, toAlarmFilterWriteBody, toAlarmQueueWriteBody, toAnomalyDetectionGroupSaveRequest, toAnomalyGroupMetricsRequest, toChannelWriteBody, toClusteringPolicyPreviewBody, toClusteringPolicyWriteBody, toEnrichmentRuleCreateBody, toGroupMetricsRequest, toInventoryQueueWriteBody, toItsmTestConnectionRequest, toPolicyWriteBody, toSliGroupSaveRequest, toTemplateWriteBody, toTicketEnrichmentWriteBody, tokenize, translateRuleToMmQuery, truthy, userBlockDelete, userBlockPut, userDelete, userGet, userLockDelete, userPut, userSubaccountsGet, userSubaccountsPost, verifyAndDumpLegacyConfiguration, verifyAndDumpVersion3Configuration, verifyAndDumpVersion4Configuration, vertexMatchesFilters, visibleAlarmQueueColumns, visibleInventoryColumns };
|
|
89862
90288
|
//# sourceMappingURL=index.esm.js.map
|