@lssm/lib.metering 0.0.0-canary-20251206181705 → 0.0.0-canary-20251207012602
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/contracts/index.d.ts +290 -290
- package/dist/entities/index.d.ts +185 -185
- package/package.json +1 -1
|
@@ -1,520 +1,520 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema133 from "@lssm/lib.schema";
|
|
2
2
|
import * as _lssm_lib_contracts15 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/index.d.ts
|
|
5
|
-
declare const MetricDefinitionModel:
|
|
5
|
+
declare const MetricDefinitionModel: _lssm_lib_schema133.SchemaModel<{
|
|
6
6
|
id: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
key: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
name: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
description: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
20
20
|
isOptional: true;
|
|
21
21
|
};
|
|
22
22
|
unit: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
aggregationType: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
resetPeriod: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
category: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
36
36
|
isOptional: true;
|
|
37
37
|
};
|
|
38
38
|
isActive: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
orgId: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
44
44
|
isOptional: true;
|
|
45
45
|
};
|
|
46
46
|
createdAt: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
updatedAt: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
}>;
|
|
55
|
-
declare const UsageRecordModel:
|
|
55
|
+
declare const UsageRecordModel: _lssm_lib_schema133.SchemaModel<{
|
|
56
56
|
id: {
|
|
57
|
-
type:
|
|
57
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
58
58
|
isOptional: false;
|
|
59
59
|
};
|
|
60
60
|
metricKey: {
|
|
61
|
-
type:
|
|
61
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
62
62
|
isOptional: false;
|
|
63
63
|
};
|
|
64
64
|
subjectType: {
|
|
65
|
-
type:
|
|
65
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
66
66
|
isOptional: false;
|
|
67
67
|
};
|
|
68
68
|
subjectId: {
|
|
69
|
-
type:
|
|
69
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
70
70
|
isOptional: false;
|
|
71
71
|
};
|
|
72
72
|
quantity: {
|
|
73
|
-
type:
|
|
73
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
74
74
|
isOptional: false;
|
|
75
75
|
};
|
|
76
76
|
source: {
|
|
77
|
-
type:
|
|
77
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
78
78
|
isOptional: true;
|
|
79
79
|
};
|
|
80
80
|
resourceId: {
|
|
81
|
-
type:
|
|
81
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
82
82
|
isOptional: true;
|
|
83
83
|
};
|
|
84
84
|
resourceType: {
|
|
85
|
-
type:
|
|
85
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
86
86
|
isOptional: true;
|
|
87
87
|
};
|
|
88
88
|
metadata: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema133.FieldType<unknown, unknown>;
|
|
90
90
|
isOptional: true;
|
|
91
91
|
};
|
|
92
92
|
timestamp: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
createdAt: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
}>;
|
|
101
|
-
declare const UsageSummaryModel:
|
|
101
|
+
declare const UsageSummaryModel: _lssm_lib_schema133.SchemaModel<{
|
|
102
102
|
id: {
|
|
103
|
-
type:
|
|
103
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
104
104
|
isOptional: false;
|
|
105
105
|
};
|
|
106
106
|
metricKey: {
|
|
107
|
-
type:
|
|
107
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
108
108
|
isOptional: false;
|
|
109
109
|
};
|
|
110
110
|
subjectType: {
|
|
111
|
-
type:
|
|
111
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
subjectId: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
periodType: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
periodStart: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
periodEnd: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
totalQuantity: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
recordCount: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
minQuantity: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
140
140
|
isOptional: true;
|
|
141
141
|
};
|
|
142
142
|
maxQuantity: {
|
|
143
|
-
type:
|
|
143
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
144
144
|
isOptional: true;
|
|
145
145
|
};
|
|
146
146
|
avgQuantity: {
|
|
147
|
-
type:
|
|
147
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
148
148
|
isOptional: true;
|
|
149
149
|
};
|
|
150
150
|
}>;
|
|
151
|
-
declare const UsageThresholdModel:
|
|
151
|
+
declare const UsageThresholdModel: _lssm_lib_schema133.SchemaModel<{
|
|
152
152
|
id: {
|
|
153
|
-
type:
|
|
153
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
154
154
|
isOptional: false;
|
|
155
155
|
};
|
|
156
156
|
metricKey: {
|
|
157
|
-
type:
|
|
157
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
158
158
|
isOptional: false;
|
|
159
159
|
};
|
|
160
160
|
subjectType: {
|
|
161
|
-
type:
|
|
161
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
162
162
|
isOptional: true;
|
|
163
163
|
};
|
|
164
164
|
subjectId: {
|
|
165
|
-
type:
|
|
165
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
166
166
|
isOptional: true;
|
|
167
167
|
};
|
|
168
168
|
name: {
|
|
169
|
-
type:
|
|
169
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
170
170
|
isOptional: false;
|
|
171
171
|
};
|
|
172
172
|
threshold: {
|
|
173
|
-
type:
|
|
173
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
174
174
|
isOptional: false;
|
|
175
175
|
};
|
|
176
176
|
warnThreshold: {
|
|
177
|
-
type:
|
|
177
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
178
178
|
isOptional: true;
|
|
179
179
|
};
|
|
180
180
|
periodType: {
|
|
181
|
-
type:
|
|
181
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
182
182
|
isOptional: false;
|
|
183
183
|
};
|
|
184
184
|
action: {
|
|
185
|
-
type:
|
|
185
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
186
186
|
isOptional: false;
|
|
187
187
|
};
|
|
188
188
|
currentValue: {
|
|
189
|
-
type:
|
|
189
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
190
190
|
isOptional: false;
|
|
191
191
|
};
|
|
192
192
|
isActive: {
|
|
193
|
-
type:
|
|
193
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
194
194
|
isOptional: false;
|
|
195
195
|
};
|
|
196
196
|
createdAt: {
|
|
197
|
-
type:
|
|
197
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
198
198
|
isOptional: false;
|
|
199
199
|
};
|
|
200
200
|
}>;
|
|
201
201
|
/**
|
|
202
202
|
* Define a metric.
|
|
203
203
|
*/
|
|
204
|
-
declare const DefineMetricContract: _lssm_lib_contracts15.ContractSpec<
|
|
204
|
+
declare const DefineMetricContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema133.SchemaModel<{
|
|
205
205
|
key: {
|
|
206
|
-
type:
|
|
206
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
207
207
|
isOptional: false;
|
|
208
208
|
};
|
|
209
209
|
name: {
|
|
210
|
-
type:
|
|
210
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
211
211
|
isOptional: false;
|
|
212
212
|
};
|
|
213
213
|
description: {
|
|
214
|
-
type:
|
|
214
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
215
215
|
isOptional: true;
|
|
216
216
|
};
|
|
217
217
|
unit: {
|
|
218
|
-
type:
|
|
218
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
219
219
|
isOptional: false;
|
|
220
220
|
};
|
|
221
221
|
aggregationType: {
|
|
222
|
-
type:
|
|
222
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
223
223
|
isOptional: true;
|
|
224
224
|
};
|
|
225
225
|
resetPeriod: {
|
|
226
|
-
type:
|
|
226
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
227
227
|
isOptional: true;
|
|
228
228
|
};
|
|
229
229
|
category: {
|
|
230
|
-
type:
|
|
230
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
231
231
|
isOptional: true;
|
|
232
232
|
};
|
|
233
233
|
orgId: {
|
|
234
|
-
type:
|
|
234
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
235
235
|
isOptional: true;
|
|
236
236
|
};
|
|
237
237
|
metadata: {
|
|
238
|
-
type:
|
|
238
|
+
type: _lssm_lib_schema133.FieldType<unknown, unknown>;
|
|
239
239
|
isOptional: true;
|
|
240
240
|
};
|
|
241
|
-
}>,
|
|
241
|
+
}>, _lssm_lib_schema133.SchemaModel<{
|
|
242
242
|
id: {
|
|
243
|
-
type:
|
|
243
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
244
244
|
isOptional: false;
|
|
245
245
|
};
|
|
246
246
|
key: {
|
|
247
|
-
type:
|
|
247
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
248
248
|
isOptional: false;
|
|
249
249
|
};
|
|
250
250
|
name: {
|
|
251
|
-
type:
|
|
251
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
252
252
|
isOptional: false;
|
|
253
253
|
};
|
|
254
254
|
description: {
|
|
255
|
-
type:
|
|
255
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
256
256
|
isOptional: true;
|
|
257
257
|
};
|
|
258
258
|
unit: {
|
|
259
|
-
type:
|
|
259
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
260
260
|
isOptional: false;
|
|
261
261
|
};
|
|
262
262
|
aggregationType: {
|
|
263
|
-
type:
|
|
263
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
264
264
|
isOptional: false;
|
|
265
265
|
};
|
|
266
266
|
resetPeriod: {
|
|
267
|
-
type:
|
|
267
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
268
268
|
isOptional: false;
|
|
269
269
|
};
|
|
270
270
|
category: {
|
|
271
|
-
type:
|
|
271
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
272
272
|
isOptional: true;
|
|
273
273
|
};
|
|
274
274
|
isActive: {
|
|
275
|
-
type:
|
|
275
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
276
276
|
isOptional: false;
|
|
277
277
|
};
|
|
278
278
|
orgId: {
|
|
279
|
-
type:
|
|
279
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
280
280
|
isOptional: true;
|
|
281
281
|
};
|
|
282
282
|
createdAt: {
|
|
283
|
-
type:
|
|
283
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
284
284
|
isOptional: false;
|
|
285
285
|
};
|
|
286
286
|
updatedAt: {
|
|
287
|
-
type:
|
|
287
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
288
288
|
isOptional: false;
|
|
289
289
|
};
|
|
290
290
|
}>, undefined>;
|
|
291
291
|
/**
|
|
292
292
|
* Update a metric.
|
|
293
293
|
*/
|
|
294
|
-
declare const UpdateMetricContract: _lssm_lib_contracts15.ContractSpec<
|
|
294
|
+
declare const UpdateMetricContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema133.SchemaModel<{
|
|
295
295
|
metricId: {
|
|
296
|
-
type:
|
|
296
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
297
297
|
isOptional: false;
|
|
298
298
|
};
|
|
299
299
|
name: {
|
|
300
|
-
type:
|
|
300
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
301
301
|
isOptional: true;
|
|
302
302
|
};
|
|
303
303
|
description: {
|
|
304
|
-
type:
|
|
304
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
305
305
|
isOptional: true;
|
|
306
306
|
};
|
|
307
307
|
category: {
|
|
308
|
-
type:
|
|
308
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
309
309
|
isOptional: true;
|
|
310
310
|
};
|
|
311
311
|
isActive: {
|
|
312
|
-
type:
|
|
312
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
313
313
|
isOptional: true;
|
|
314
314
|
};
|
|
315
315
|
metadata: {
|
|
316
|
-
type:
|
|
316
|
+
type: _lssm_lib_schema133.FieldType<unknown, unknown>;
|
|
317
317
|
isOptional: true;
|
|
318
318
|
};
|
|
319
|
-
}>,
|
|
319
|
+
}>, _lssm_lib_schema133.SchemaModel<{
|
|
320
320
|
id: {
|
|
321
|
-
type:
|
|
321
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
322
322
|
isOptional: false;
|
|
323
323
|
};
|
|
324
324
|
key: {
|
|
325
|
-
type:
|
|
325
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
326
326
|
isOptional: false;
|
|
327
327
|
};
|
|
328
328
|
name: {
|
|
329
|
-
type:
|
|
329
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
330
330
|
isOptional: false;
|
|
331
331
|
};
|
|
332
332
|
description: {
|
|
333
|
-
type:
|
|
333
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
334
334
|
isOptional: true;
|
|
335
335
|
};
|
|
336
336
|
unit: {
|
|
337
|
-
type:
|
|
337
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
338
338
|
isOptional: false;
|
|
339
339
|
};
|
|
340
340
|
aggregationType: {
|
|
341
|
-
type:
|
|
341
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
342
342
|
isOptional: false;
|
|
343
343
|
};
|
|
344
344
|
resetPeriod: {
|
|
345
|
-
type:
|
|
345
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
346
346
|
isOptional: false;
|
|
347
347
|
};
|
|
348
348
|
category: {
|
|
349
|
-
type:
|
|
349
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
350
350
|
isOptional: true;
|
|
351
351
|
};
|
|
352
352
|
isActive: {
|
|
353
|
-
type:
|
|
353
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
354
354
|
isOptional: false;
|
|
355
355
|
};
|
|
356
356
|
orgId: {
|
|
357
|
-
type:
|
|
357
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
358
358
|
isOptional: true;
|
|
359
359
|
};
|
|
360
360
|
createdAt: {
|
|
361
|
-
type:
|
|
361
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
362
362
|
isOptional: false;
|
|
363
363
|
};
|
|
364
364
|
updatedAt: {
|
|
365
|
-
type:
|
|
365
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
366
366
|
isOptional: false;
|
|
367
367
|
};
|
|
368
368
|
}>, undefined>;
|
|
369
369
|
/**
|
|
370
370
|
* Delete a metric.
|
|
371
371
|
*/
|
|
372
|
-
declare const DeleteMetricContract: _lssm_lib_contracts15.ContractSpec<
|
|
372
|
+
declare const DeleteMetricContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema133.SchemaModel<{
|
|
373
373
|
metricId: {
|
|
374
|
-
type:
|
|
374
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
375
375
|
isOptional: false;
|
|
376
376
|
};
|
|
377
|
-
}>,
|
|
377
|
+
}>, _lssm_lib_schema133.SchemaModel<{
|
|
378
378
|
success: {
|
|
379
|
-
type:
|
|
379
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
380
380
|
isOptional: false;
|
|
381
381
|
};
|
|
382
382
|
}>, undefined>;
|
|
383
383
|
/**
|
|
384
384
|
* Get a metric by key.
|
|
385
385
|
*/
|
|
386
|
-
declare const GetMetricContract: _lssm_lib_contracts15.ContractSpec<
|
|
386
|
+
declare const GetMetricContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema133.SchemaModel<{
|
|
387
387
|
key: {
|
|
388
|
-
type:
|
|
388
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
389
389
|
isOptional: false;
|
|
390
390
|
};
|
|
391
391
|
orgId: {
|
|
392
|
-
type:
|
|
392
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
393
393
|
isOptional: true;
|
|
394
394
|
};
|
|
395
|
-
}>,
|
|
395
|
+
}>, _lssm_lib_schema133.SchemaModel<{
|
|
396
396
|
id: {
|
|
397
|
-
type:
|
|
397
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
398
398
|
isOptional: false;
|
|
399
399
|
};
|
|
400
400
|
key: {
|
|
401
|
-
type:
|
|
401
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
402
402
|
isOptional: false;
|
|
403
403
|
};
|
|
404
404
|
name: {
|
|
405
|
-
type:
|
|
405
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
406
406
|
isOptional: false;
|
|
407
407
|
};
|
|
408
408
|
description: {
|
|
409
|
-
type:
|
|
409
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
410
410
|
isOptional: true;
|
|
411
411
|
};
|
|
412
412
|
unit: {
|
|
413
|
-
type:
|
|
413
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
414
414
|
isOptional: false;
|
|
415
415
|
};
|
|
416
416
|
aggregationType: {
|
|
417
|
-
type:
|
|
417
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
418
418
|
isOptional: false;
|
|
419
419
|
};
|
|
420
420
|
resetPeriod: {
|
|
421
|
-
type:
|
|
421
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
422
422
|
isOptional: false;
|
|
423
423
|
};
|
|
424
424
|
category: {
|
|
425
|
-
type:
|
|
425
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
426
426
|
isOptional: true;
|
|
427
427
|
};
|
|
428
428
|
isActive: {
|
|
429
|
-
type:
|
|
429
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
430
430
|
isOptional: false;
|
|
431
431
|
};
|
|
432
432
|
orgId: {
|
|
433
|
-
type:
|
|
433
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
434
434
|
isOptional: true;
|
|
435
435
|
};
|
|
436
436
|
createdAt: {
|
|
437
|
-
type:
|
|
437
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
438
438
|
isOptional: false;
|
|
439
439
|
};
|
|
440
440
|
updatedAt: {
|
|
441
|
-
type:
|
|
441
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
442
442
|
isOptional: false;
|
|
443
443
|
};
|
|
444
444
|
}>, undefined>;
|
|
445
445
|
/**
|
|
446
446
|
* List metrics.
|
|
447
447
|
*/
|
|
448
|
-
declare const ListMetricsContract: _lssm_lib_contracts15.ContractSpec<
|
|
448
|
+
declare const ListMetricsContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema133.SchemaModel<{
|
|
449
449
|
orgId: {
|
|
450
|
-
type:
|
|
450
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
451
451
|
isOptional: true;
|
|
452
452
|
};
|
|
453
453
|
category: {
|
|
454
|
-
type:
|
|
454
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
455
455
|
isOptional: true;
|
|
456
456
|
};
|
|
457
457
|
isActive: {
|
|
458
|
-
type:
|
|
458
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
459
459
|
isOptional: true;
|
|
460
460
|
};
|
|
461
461
|
limit: {
|
|
462
|
-
type:
|
|
462
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
463
463
|
isOptional: true;
|
|
464
464
|
};
|
|
465
465
|
offset: {
|
|
466
|
-
type:
|
|
466
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
467
467
|
isOptional: true;
|
|
468
468
|
};
|
|
469
|
-
}>,
|
|
469
|
+
}>, _lssm_lib_schema133.SchemaModel<{
|
|
470
470
|
metrics: {
|
|
471
|
-
type:
|
|
471
|
+
type: _lssm_lib_schema133.SchemaModel<{
|
|
472
472
|
id: {
|
|
473
|
-
type:
|
|
473
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
474
474
|
isOptional: false;
|
|
475
475
|
};
|
|
476
476
|
key: {
|
|
477
|
-
type:
|
|
477
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
478
478
|
isOptional: false;
|
|
479
479
|
};
|
|
480
480
|
name: {
|
|
481
|
-
type:
|
|
481
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
482
482
|
isOptional: false;
|
|
483
483
|
};
|
|
484
484
|
description: {
|
|
485
|
-
type:
|
|
485
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
486
486
|
isOptional: true;
|
|
487
487
|
};
|
|
488
488
|
unit: {
|
|
489
|
-
type:
|
|
489
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
490
490
|
isOptional: false;
|
|
491
491
|
};
|
|
492
492
|
aggregationType: {
|
|
493
|
-
type:
|
|
493
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
494
494
|
isOptional: false;
|
|
495
495
|
};
|
|
496
496
|
resetPeriod: {
|
|
497
|
-
type:
|
|
497
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
498
498
|
isOptional: false;
|
|
499
499
|
};
|
|
500
500
|
category: {
|
|
501
|
-
type:
|
|
501
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
502
502
|
isOptional: true;
|
|
503
503
|
};
|
|
504
504
|
isActive: {
|
|
505
|
-
type:
|
|
505
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
506
506
|
isOptional: false;
|
|
507
507
|
};
|
|
508
508
|
orgId: {
|
|
509
|
-
type:
|
|
509
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
510
510
|
isOptional: true;
|
|
511
511
|
};
|
|
512
512
|
createdAt: {
|
|
513
|
-
type:
|
|
513
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
514
514
|
isOptional: false;
|
|
515
515
|
};
|
|
516
516
|
updatedAt: {
|
|
517
|
-
type:
|
|
517
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
518
518
|
isOptional: false;
|
|
519
519
|
};
|
|
520
520
|
}>;
|
|
@@ -522,241 +522,241 @@ declare const ListMetricsContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_
|
|
|
522
522
|
isOptional: false;
|
|
523
523
|
};
|
|
524
524
|
total: {
|
|
525
|
-
type:
|
|
525
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
526
526
|
isOptional: false;
|
|
527
527
|
};
|
|
528
528
|
}>, undefined>;
|
|
529
529
|
/**
|
|
530
530
|
* Record usage.
|
|
531
531
|
*/
|
|
532
|
-
declare const RecordUsageContract: _lssm_lib_contracts15.ContractSpec<
|
|
532
|
+
declare const RecordUsageContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema133.SchemaModel<{
|
|
533
533
|
metricKey: {
|
|
534
|
-
type:
|
|
534
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
535
535
|
isOptional: false;
|
|
536
536
|
};
|
|
537
537
|
subjectType: {
|
|
538
|
-
type:
|
|
538
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
539
539
|
isOptional: false;
|
|
540
540
|
};
|
|
541
541
|
subjectId: {
|
|
542
|
-
type:
|
|
542
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
543
543
|
isOptional: false;
|
|
544
544
|
};
|
|
545
545
|
quantity: {
|
|
546
|
-
type:
|
|
546
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
547
547
|
isOptional: false;
|
|
548
548
|
};
|
|
549
549
|
timestamp: {
|
|
550
|
-
type:
|
|
550
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
551
551
|
isOptional: true;
|
|
552
552
|
};
|
|
553
553
|
source: {
|
|
554
|
-
type:
|
|
554
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
555
555
|
isOptional: true;
|
|
556
556
|
};
|
|
557
557
|
resourceId: {
|
|
558
|
-
type:
|
|
558
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
559
559
|
isOptional: true;
|
|
560
560
|
};
|
|
561
561
|
resourceType: {
|
|
562
|
-
type:
|
|
562
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
563
563
|
isOptional: true;
|
|
564
564
|
};
|
|
565
565
|
metadata: {
|
|
566
|
-
type:
|
|
566
|
+
type: _lssm_lib_schema133.FieldType<unknown, unknown>;
|
|
567
567
|
isOptional: true;
|
|
568
568
|
};
|
|
569
569
|
idempotencyKey: {
|
|
570
|
-
type:
|
|
570
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
571
571
|
isOptional: true;
|
|
572
572
|
};
|
|
573
|
-
}>,
|
|
573
|
+
}>, _lssm_lib_schema133.SchemaModel<{
|
|
574
574
|
id: {
|
|
575
|
-
type:
|
|
575
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
576
576
|
isOptional: false;
|
|
577
577
|
};
|
|
578
578
|
metricKey: {
|
|
579
|
-
type:
|
|
579
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
580
580
|
isOptional: false;
|
|
581
581
|
};
|
|
582
582
|
subjectType: {
|
|
583
|
-
type:
|
|
583
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
584
584
|
isOptional: false;
|
|
585
585
|
};
|
|
586
586
|
subjectId: {
|
|
587
|
-
type:
|
|
587
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
588
588
|
isOptional: false;
|
|
589
589
|
};
|
|
590
590
|
quantity: {
|
|
591
|
-
type:
|
|
591
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
592
592
|
isOptional: false;
|
|
593
593
|
};
|
|
594
594
|
source: {
|
|
595
|
-
type:
|
|
595
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
596
596
|
isOptional: true;
|
|
597
597
|
};
|
|
598
598
|
resourceId: {
|
|
599
|
-
type:
|
|
599
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
600
600
|
isOptional: true;
|
|
601
601
|
};
|
|
602
602
|
resourceType: {
|
|
603
|
-
type:
|
|
603
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
604
604
|
isOptional: true;
|
|
605
605
|
};
|
|
606
606
|
metadata: {
|
|
607
|
-
type:
|
|
607
|
+
type: _lssm_lib_schema133.FieldType<unknown, unknown>;
|
|
608
608
|
isOptional: true;
|
|
609
609
|
};
|
|
610
610
|
timestamp: {
|
|
611
|
-
type:
|
|
611
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
612
612
|
isOptional: false;
|
|
613
613
|
};
|
|
614
614
|
createdAt: {
|
|
615
|
-
type:
|
|
615
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
616
616
|
isOptional: false;
|
|
617
617
|
};
|
|
618
618
|
}>, undefined>;
|
|
619
619
|
/**
|
|
620
620
|
* Record batch usage.
|
|
621
621
|
*/
|
|
622
|
-
declare const RecordBatchUsageContract: _lssm_lib_contracts15.ContractSpec<
|
|
622
|
+
declare const RecordBatchUsageContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema133.SchemaModel<{
|
|
623
623
|
records: {
|
|
624
|
-
type:
|
|
624
|
+
type: _lssm_lib_schema133.SchemaModel<{
|
|
625
625
|
metricKey: {
|
|
626
|
-
type:
|
|
626
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
627
627
|
isOptional: false;
|
|
628
628
|
};
|
|
629
629
|
subjectType: {
|
|
630
|
-
type:
|
|
630
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
631
631
|
isOptional: false;
|
|
632
632
|
};
|
|
633
633
|
subjectId: {
|
|
634
|
-
type:
|
|
634
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
635
635
|
isOptional: false;
|
|
636
636
|
};
|
|
637
637
|
quantity: {
|
|
638
|
-
type:
|
|
638
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
639
639
|
isOptional: false;
|
|
640
640
|
};
|
|
641
641
|
timestamp: {
|
|
642
|
-
type:
|
|
642
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
643
643
|
isOptional: true;
|
|
644
644
|
};
|
|
645
645
|
source: {
|
|
646
|
-
type:
|
|
646
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
647
647
|
isOptional: true;
|
|
648
648
|
};
|
|
649
649
|
resourceId: {
|
|
650
|
-
type:
|
|
650
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
651
651
|
isOptional: true;
|
|
652
652
|
};
|
|
653
653
|
resourceType: {
|
|
654
|
-
type:
|
|
654
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
655
655
|
isOptional: true;
|
|
656
656
|
};
|
|
657
657
|
metadata: {
|
|
658
|
-
type:
|
|
658
|
+
type: _lssm_lib_schema133.FieldType<unknown, unknown>;
|
|
659
659
|
isOptional: true;
|
|
660
660
|
};
|
|
661
661
|
idempotencyKey: {
|
|
662
|
-
type:
|
|
662
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
663
663
|
isOptional: true;
|
|
664
664
|
};
|
|
665
665
|
}>;
|
|
666
666
|
isArray: true;
|
|
667
667
|
isOptional: false;
|
|
668
668
|
};
|
|
669
|
-
}>,
|
|
669
|
+
}>, _lssm_lib_schema133.SchemaModel<{
|
|
670
670
|
recordedCount: {
|
|
671
|
-
type:
|
|
671
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
672
672
|
isOptional: false;
|
|
673
673
|
};
|
|
674
674
|
skippedCount: {
|
|
675
|
-
type:
|
|
675
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
676
676
|
isOptional: false;
|
|
677
677
|
};
|
|
678
678
|
recordIds: {
|
|
679
|
-
type:
|
|
679
|
+
type: _lssm_lib_schema133.FieldType<unknown, unknown>;
|
|
680
680
|
isOptional: false;
|
|
681
681
|
};
|
|
682
682
|
}>, undefined>;
|
|
683
683
|
/**
|
|
684
684
|
* Get usage records.
|
|
685
685
|
*/
|
|
686
|
-
declare const GetUsageContract: _lssm_lib_contracts15.ContractSpec<
|
|
686
|
+
declare const GetUsageContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema133.SchemaModel<{
|
|
687
687
|
metricKey: {
|
|
688
|
-
type:
|
|
688
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
689
689
|
isOptional: false;
|
|
690
690
|
};
|
|
691
691
|
subjectType: {
|
|
692
|
-
type:
|
|
692
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
693
693
|
isOptional: false;
|
|
694
694
|
};
|
|
695
695
|
subjectId: {
|
|
696
|
-
type:
|
|
696
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
697
697
|
isOptional: false;
|
|
698
698
|
};
|
|
699
699
|
startDate: {
|
|
700
|
-
type:
|
|
700
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
701
701
|
isOptional: false;
|
|
702
702
|
};
|
|
703
703
|
endDate: {
|
|
704
|
-
type:
|
|
704
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
705
705
|
isOptional: false;
|
|
706
706
|
};
|
|
707
707
|
limit: {
|
|
708
|
-
type:
|
|
708
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
709
709
|
isOptional: true;
|
|
710
710
|
};
|
|
711
711
|
offset: {
|
|
712
|
-
type:
|
|
712
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
713
713
|
isOptional: true;
|
|
714
714
|
};
|
|
715
|
-
}>,
|
|
715
|
+
}>, _lssm_lib_schema133.SchemaModel<{
|
|
716
716
|
records: {
|
|
717
|
-
type:
|
|
717
|
+
type: _lssm_lib_schema133.SchemaModel<{
|
|
718
718
|
id: {
|
|
719
|
-
type:
|
|
719
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
720
720
|
isOptional: false;
|
|
721
721
|
};
|
|
722
722
|
metricKey: {
|
|
723
|
-
type:
|
|
723
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
724
724
|
isOptional: false;
|
|
725
725
|
};
|
|
726
726
|
subjectType: {
|
|
727
|
-
type:
|
|
727
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
728
728
|
isOptional: false;
|
|
729
729
|
};
|
|
730
730
|
subjectId: {
|
|
731
|
-
type:
|
|
731
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
732
732
|
isOptional: false;
|
|
733
733
|
};
|
|
734
734
|
quantity: {
|
|
735
|
-
type:
|
|
735
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
736
736
|
isOptional: false;
|
|
737
737
|
};
|
|
738
738
|
source: {
|
|
739
|
-
type:
|
|
739
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
740
740
|
isOptional: true;
|
|
741
741
|
};
|
|
742
742
|
resourceId: {
|
|
743
|
-
type:
|
|
743
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
744
744
|
isOptional: true;
|
|
745
745
|
};
|
|
746
746
|
resourceType: {
|
|
747
|
-
type:
|
|
747
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
748
748
|
isOptional: true;
|
|
749
749
|
};
|
|
750
750
|
metadata: {
|
|
751
|
-
type:
|
|
751
|
+
type: _lssm_lib_schema133.FieldType<unknown, unknown>;
|
|
752
752
|
isOptional: true;
|
|
753
753
|
};
|
|
754
754
|
timestamp: {
|
|
755
|
-
type:
|
|
755
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
756
756
|
isOptional: false;
|
|
757
757
|
};
|
|
758
758
|
createdAt: {
|
|
759
|
-
type:
|
|
759
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
760
760
|
isOptional: false;
|
|
761
761
|
};
|
|
762
762
|
}>;
|
|
@@ -764,91 +764,91 @@ declare const GetUsageContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_sch
|
|
|
764
764
|
isOptional: false;
|
|
765
765
|
};
|
|
766
766
|
total: {
|
|
767
|
-
type:
|
|
767
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
768
768
|
isOptional: false;
|
|
769
769
|
};
|
|
770
770
|
totalQuantity: {
|
|
771
|
-
type:
|
|
771
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
772
772
|
isOptional: false;
|
|
773
773
|
};
|
|
774
774
|
}>, undefined>;
|
|
775
775
|
/**
|
|
776
776
|
* Get usage summary.
|
|
777
777
|
*/
|
|
778
|
-
declare const GetUsageSummaryContract: _lssm_lib_contracts15.ContractSpec<
|
|
778
|
+
declare const GetUsageSummaryContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema133.SchemaModel<{
|
|
779
779
|
metricKey: {
|
|
780
|
-
type:
|
|
780
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
781
781
|
isOptional: false;
|
|
782
782
|
};
|
|
783
783
|
subjectType: {
|
|
784
|
-
type:
|
|
784
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
785
785
|
isOptional: false;
|
|
786
786
|
};
|
|
787
787
|
subjectId: {
|
|
788
|
-
type:
|
|
788
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
789
789
|
isOptional: false;
|
|
790
790
|
};
|
|
791
791
|
periodType: {
|
|
792
|
-
type:
|
|
792
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
793
793
|
isOptional: false;
|
|
794
794
|
};
|
|
795
795
|
startDate: {
|
|
796
|
-
type:
|
|
796
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
797
797
|
isOptional: false;
|
|
798
798
|
};
|
|
799
799
|
endDate: {
|
|
800
|
-
type:
|
|
800
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
801
801
|
isOptional: true;
|
|
802
802
|
};
|
|
803
|
-
}>,
|
|
803
|
+
}>, _lssm_lib_schema133.SchemaModel<{
|
|
804
804
|
summaries: {
|
|
805
|
-
type:
|
|
805
|
+
type: _lssm_lib_schema133.SchemaModel<{
|
|
806
806
|
id: {
|
|
807
|
-
type:
|
|
807
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
808
808
|
isOptional: false;
|
|
809
809
|
};
|
|
810
810
|
metricKey: {
|
|
811
|
-
type:
|
|
811
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
812
812
|
isOptional: false;
|
|
813
813
|
};
|
|
814
814
|
subjectType: {
|
|
815
|
-
type:
|
|
815
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
816
816
|
isOptional: false;
|
|
817
817
|
};
|
|
818
818
|
subjectId: {
|
|
819
|
-
type:
|
|
819
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
820
820
|
isOptional: false;
|
|
821
821
|
};
|
|
822
822
|
periodType: {
|
|
823
|
-
type:
|
|
823
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
824
824
|
isOptional: false;
|
|
825
825
|
};
|
|
826
826
|
periodStart: {
|
|
827
|
-
type:
|
|
827
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
828
828
|
isOptional: false;
|
|
829
829
|
};
|
|
830
830
|
periodEnd: {
|
|
831
|
-
type:
|
|
831
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
832
832
|
isOptional: false;
|
|
833
833
|
};
|
|
834
834
|
totalQuantity: {
|
|
835
|
-
type:
|
|
835
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
836
836
|
isOptional: false;
|
|
837
837
|
};
|
|
838
838
|
recordCount: {
|
|
839
|
-
type:
|
|
839
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
840
840
|
isOptional: false;
|
|
841
841
|
};
|
|
842
842
|
minQuantity: {
|
|
843
|
-
type:
|
|
843
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
844
844
|
isOptional: true;
|
|
845
845
|
};
|
|
846
846
|
maxQuantity: {
|
|
847
|
-
type:
|
|
847
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
848
848
|
isOptional: true;
|
|
849
849
|
};
|
|
850
850
|
avgQuantity: {
|
|
851
|
-
type:
|
|
851
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
852
852
|
isOptional: true;
|
|
853
853
|
};
|
|
854
854
|
}>;
|
|
@@ -856,273 +856,273 @@ declare const GetUsageSummaryContract: _lssm_lib_contracts15.ContractSpec<_lssm_
|
|
|
856
856
|
isOptional: false;
|
|
857
857
|
};
|
|
858
858
|
total: {
|
|
859
|
-
type:
|
|
859
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
860
860
|
isOptional: false;
|
|
861
861
|
};
|
|
862
862
|
}>, undefined>;
|
|
863
863
|
/**
|
|
864
864
|
* Create a threshold.
|
|
865
865
|
*/
|
|
866
|
-
declare const CreateThresholdContract: _lssm_lib_contracts15.ContractSpec<
|
|
866
|
+
declare const CreateThresholdContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema133.SchemaModel<{
|
|
867
867
|
metricKey: {
|
|
868
|
-
type:
|
|
868
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
869
869
|
isOptional: false;
|
|
870
870
|
};
|
|
871
871
|
subjectType: {
|
|
872
|
-
type:
|
|
872
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
873
873
|
isOptional: true;
|
|
874
874
|
};
|
|
875
875
|
subjectId: {
|
|
876
|
-
type:
|
|
876
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
877
877
|
isOptional: true;
|
|
878
878
|
};
|
|
879
879
|
name: {
|
|
880
|
-
type:
|
|
880
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
881
881
|
isOptional: false;
|
|
882
882
|
};
|
|
883
883
|
threshold: {
|
|
884
|
-
type:
|
|
884
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
885
885
|
isOptional: false;
|
|
886
886
|
};
|
|
887
887
|
warnThreshold: {
|
|
888
|
-
type:
|
|
888
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
889
889
|
isOptional: true;
|
|
890
890
|
};
|
|
891
891
|
periodType: {
|
|
892
|
-
type:
|
|
892
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
893
893
|
isOptional: true;
|
|
894
894
|
};
|
|
895
895
|
action: {
|
|
896
|
-
type:
|
|
896
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
897
897
|
isOptional: true;
|
|
898
898
|
};
|
|
899
899
|
notifyEmails: {
|
|
900
|
-
type:
|
|
900
|
+
type: _lssm_lib_schema133.FieldType<unknown, unknown>;
|
|
901
901
|
isOptional: true;
|
|
902
902
|
};
|
|
903
903
|
notifyWebhook: {
|
|
904
|
-
type:
|
|
904
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
905
905
|
isOptional: true;
|
|
906
906
|
};
|
|
907
|
-
}>,
|
|
907
|
+
}>, _lssm_lib_schema133.SchemaModel<{
|
|
908
908
|
id: {
|
|
909
|
-
type:
|
|
909
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
910
910
|
isOptional: false;
|
|
911
911
|
};
|
|
912
912
|
metricKey: {
|
|
913
|
-
type:
|
|
913
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
914
914
|
isOptional: false;
|
|
915
915
|
};
|
|
916
916
|
subjectType: {
|
|
917
|
-
type:
|
|
917
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
918
918
|
isOptional: true;
|
|
919
919
|
};
|
|
920
920
|
subjectId: {
|
|
921
|
-
type:
|
|
921
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
922
922
|
isOptional: true;
|
|
923
923
|
};
|
|
924
924
|
name: {
|
|
925
|
-
type:
|
|
925
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
926
926
|
isOptional: false;
|
|
927
927
|
};
|
|
928
928
|
threshold: {
|
|
929
|
-
type:
|
|
929
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
930
930
|
isOptional: false;
|
|
931
931
|
};
|
|
932
932
|
warnThreshold: {
|
|
933
|
-
type:
|
|
933
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
934
934
|
isOptional: true;
|
|
935
935
|
};
|
|
936
936
|
periodType: {
|
|
937
|
-
type:
|
|
937
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
938
938
|
isOptional: false;
|
|
939
939
|
};
|
|
940
940
|
action: {
|
|
941
|
-
type:
|
|
941
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
942
942
|
isOptional: false;
|
|
943
943
|
};
|
|
944
944
|
currentValue: {
|
|
945
|
-
type:
|
|
945
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
946
946
|
isOptional: false;
|
|
947
947
|
};
|
|
948
948
|
isActive: {
|
|
949
|
-
type:
|
|
949
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
950
950
|
isOptional: false;
|
|
951
951
|
};
|
|
952
952
|
createdAt: {
|
|
953
|
-
type:
|
|
953
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
954
954
|
isOptional: false;
|
|
955
955
|
};
|
|
956
956
|
}>, undefined>;
|
|
957
957
|
/**
|
|
958
958
|
* Update a threshold.
|
|
959
959
|
*/
|
|
960
|
-
declare const UpdateThresholdContract: _lssm_lib_contracts15.ContractSpec<
|
|
960
|
+
declare const UpdateThresholdContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema133.SchemaModel<{
|
|
961
961
|
thresholdId: {
|
|
962
|
-
type:
|
|
962
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
963
963
|
isOptional: false;
|
|
964
964
|
};
|
|
965
965
|
name: {
|
|
966
|
-
type:
|
|
966
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
967
967
|
isOptional: true;
|
|
968
968
|
};
|
|
969
969
|
threshold: {
|
|
970
|
-
type:
|
|
970
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
971
971
|
isOptional: true;
|
|
972
972
|
};
|
|
973
973
|
warnThreshold: {
|
|
974
|
-
type:
|
|
974
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
975
975
|
isOptional: true;
|
|
976
976
|
};
|
|
977
977
|
action: {
|
|
978
|
-
type:
|
|
978
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
979
979
|
isOptional: true;
|
|
980
980
|
};
|
|
981
981
|
notifyEmails: {
|
|
982
|
-
type:
|
|
982
|
+
type: _lssm_lib_schema133.FieldType<unknown, unknown>;
|
|
983
983
|
isOptional: true;
|
|
984
984
|
};
|
|
985
985
|
notifyWebhook: {
|
|
986
|
-
type:
|
|
986
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
987
987
|
isOptional: true;
|
|
988
988
|
};
|
|
989
989
|
isActive: {
|
|
990
|
-
type:
|
|
990
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
991
991
|
isOptional: true;
|
|
992
992
|
};
|
|
993
|
-
}>,
|
|
993
|
+
}>, _lssm_lib_schema133.SchemaModel<{
|
|
994
994
|
id: {
|
|
995
|
-
type:
|
|
995
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
996
996
|
isOptional: false;
|
|
997
997
|
};
|
|
998
998
|
metricKey: {
|
|
999
|
-
type:
|
|
999
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1000
1000
|
isOptional: false;
|
|
1001
1001
|
};
|
|
1002
1002
|
subjectType: {
|
|
1003
|
-
type:
|
|
1003
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1004
1004
|
isOptional: true;
|
|
1005
1005
|
};
|
|
1006
1006
|
subjectId: {
|
|
1007
|
-
type:
|
|
1007
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1008
1008
|
isOptional: true;
|
|
1009
1009
|
};
|
|
1010
1010
|
name: {
|
|
1011
|
-
type:
|
|
1011
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1012
1012
|
isOptional: false;
|
|
1013
1013
|
};
|
|
1014
1014
|
threshold: {
|
|
1015
|
-
type:
|
|
1015
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
1016
1016
|
isOptional: false;
|
|
1017
1017
|
};
|
|
1018
1018
|
warnThreshold: {
|
|
1019
|
-
type:
|
|
1019
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
1020
1020
|
isOptional: true;
|
|
1021
1021
|
};
|
|
1022
1022
|
periodType: {
|
|
1023
|
-
type:
|
|
1023
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1024
1024
|
isOptional: false;
|
|
1025
1025
|
};
|
|
1026
1026
|
action: {
|
|
1027
|
-
type:
|
|
1027
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1028
1028
|
isOptional: false;
|
|
1029
1029
|
};
|
|
1030
1030
|
currentValue: {
|
|
1031
|
-
type:
|
|
1031
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
1032
1032
|
isOptional: false;
|
|
1033
1033
|
};
|
|
1034
1034
|
isActive: {
|
|
1035
|
-
type:
|
|
1035
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
1036
1036
|
isOptional: false;
|
|
1037
1037
|
};
|
|
1038
1038
|
createdAt: {
|
|
1039
|
-
type:
|
|
1039
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
1040
1040
|
isOptional: false;
|
|
1041
1041
|
};
|
|
1042
1042
|
}>, undefined>;
|
|
1043
1043
|
/**
|
|
1044
1044
|
* Delete a threshold.
|
|
1045
1045
|
*/
|
|
1046
|
-
declare const DeleteThresholdContract: _lssm_lib_contracts15.ContractSpec<
|
|
1046
|
+
declare const DeleteThresholdContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema133.SchemaModel<{
|
|
1047
1047
|
thresholdId: {
|
|
1048
|
-
type:
|
|
1048
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1049
1049
|
isOptional: false;
|
|
1050
1050
|
};
|
|
1051
|
-
}>,
|
|
1051
|
+
}>, _lssm_lib_schema133.SchemaModel<{
|
|
1052
1052
|
success: {
|
|
1053
|
-
type:
|
|
1053
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
1054
1054
|
isOptional: false;
|
|
1055
1055
|
};
|
|
1056
1056
|
}>, undefined>;
|
|
1057
1057
|
/**
|
|
1058
1058
|
* List thresholds.
|
|
1059
1059
|
*/
|
|
1060
|
-
declare const ListThresholdsContract: _lssm_lib_contracts15.ContractSpec<
|
|
1060
|
+
declare const ListThresholdsContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema133.SchemaModel<{
|
|
1061
1061
|
metricKey: {
|
|
1062
|
-
type:
|
|
1062
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1063
1063
|
isOptional: true;
|
|
1064
1064
|
};
|
|
1065
1065
|
subjectType: {
|
|
1066
|
-
type:
|
|
1066
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1067
1067
|
isOptional: true;
|
|
1068
1068
|
};
|
|
1069
1069
|
subjectId: {
|
|
1070
|
-
type:
|
|
1070
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1071
1071
|
isOptional: true;
|
|
1072
1072
|
};
|
|
1073
1073
|
isActive: {
|
|
1074
|
-
type:
|
|
1074
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
1075
1075
|
isOptional: true;
|
|
1076
1076
|
};
|
|
1077
|
-
}>,
|
|
1077
|
+
}>, _lssm_lib_schema133.SchemaModel<{
|
|
1078
1078
|
thresholds: {
|
|
1079
|
-
type:
|
|
1079
|
+
type: _lssm_lib_schema133.SchemaModel<{
|
|
1080
1080
|
id: {
|
|
1081
|
-
type:
|
|
1081
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1082
1082
|
isOptional: false;
|
|
1083
1083
|
};
|
|
1084
1084
|
metricKey: {
|
|
1085
|
-
type:
|
|
1085
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1086
1086
|
isOptional: false;
|
|
1087
1087
|
};
|
|
1088
1088
|
subjectType: {
|
|
1089
|
-
type:
|
|
1089
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1090
1090
|
isOptional: true;
|
|
1091
1091
|
};
|
|
1092
1092
|
subjectId: {
|
|
1093
|
-
type:
|
|
1093
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1094
1094
|
isOptional: true;
|
|
1095
1095
|
};
|
|
1096
1096
|
name: {
|
|
1097
|
-
type:
|
|
1097
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1098
1098
|
isOptional: false;
|
|
1099
1099
|
};
|
|
1100
1100
|
threshold: {
|
|
1101
|
-
type:
|
|
1101
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
1102
1102
|
isOptional: false;
|
|
1103
1103
|
};
|
|
1104
1104
|
warnThreshold: {
|
|
1105
|
-
type:
|
|
1105
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
1106
1106
|
isOptional: true;
|
|
1107
1107
|
};
|
|
1108
1108
|
periodType: {
|
|
1109
|
-
type:
|
|
1109
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1110
1110
|
isOptional: false;
|
|
1111
1111
|
};
|
|
1112
1112
|
action: {
|
|
1113
|
-
type:
|
|
1113
|
+
type: _lssm_lib_schema133.FieldType<string, string>;
|
|
1114
1114
|
isOptional: false;
|
|
1115
1115
|
};
|
|
1116
1116
|
currentValue: {
|
|
1117
|
-
type:
|
|
1117
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
1118
1118
|
isOptional: false;
|
|
1119
1119
|
};
|
|
1120
1120
|
isActive: {
|
|
1121
|
-
type:
|
|
1121
|
+
type: _lssm_lib_schema133.FieldType<boolean, boolean>;
|
|
1122
1122
|
isOptional: false;
|
|
1123
1123
|
};
|
|
1124
1124
|
createdAt: {
|
|
1125
|
-
type:
|
|
1125
|
+
type: _lssm_lib_schema133.FieldType<Date, string>;
|
|
1126
1126
|
isOptional: false;
|
|
1127
1127
|
};
|
|
1128
1128
|
}>;
|
|
@@ -1130,7 +1130,7 @@ declare const ListThresholdsContract: _lssm_lib_contracts15.ContractSpec<_lssm_l
|
|
|
1130
1130
|
isOptional: false;
|
|
1131
1131
|
};
|
|
1132
1132
|
total: {
|
|
1133
|
-
type:
|
|
1133
|
+
type: _lssm_lib_schema133.FieldType<number, number>;
|
|
1134
1134
|
isOptional: false;
|
|
1135
1135
|
};
|
|
1136
1136
|
}>, undefined>;
|