@scaleway/sdk-cockpit 1.6.0 → 2.1.1

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.
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const api_gen = require("./api.gen.cjs");
4
- const marshalling_gen = require("./marshalling.gen.cjs");
5
- const validationRules_gen = require("./validation-rules.gen.cjs");
6
- exports.GlobalAPI = api_gen.GlobalAPI;
7
- exports.RegionalAPI = api_gen.RegionalAPI;
8
- exports.marshalGlobalApiCreateGrafanaUserRequest = marshalling_gen.marshalGlobalApiCreateGrafanaUserRequest;
9
- exports.marshalGlobalApiResetGrafanaUserPasswordRequest = marshalling_gen.marshalGlobalApiResetGrafanaUserPasswordRequest;
10
- exports.marshalGlobalApiSelectPlanRequest = marshalling_gen.marshalGlobalApiSelectPlanRequest;
11
- exports.marshalGlobalApiSyncGrafanaDataSourcesRequest = marshalling_gen.marshalGlobalApiSyncGrafanaDataSourcesRequest;
12
- exports.marshalRegionalApiCreateContactPointRequest = marshalling_gen.marshalRegionalApiCreateContactPointRequest;
13
- exports.marshalRegionalApiCreateDataSourceRequest = marshalling_gen.marshalRegionalApiCreateDataSourceRequest;
14
- exports.marshalRegionalApiCreateTokenRequest = marshalling_gen.marshalRegionalApiCreateTokenRequest;
15
- exports.marshalRegionalApiDeleteContactPointRequest = marshalling_gen.marshalRegionalApiDeleteContactPointRequest;
16
- exports.marshalRegionalApiDisableAlertManagerRequest = marshalling_gen.marshalRegionalApiDisableAlertManagerRequest;
17
- exports.marshalRegionalApiDisableAlertRulesRequest = marshalling_gen.marshalRegionalApiDisableAlertRulesRequest;
18
- exports.marshalRegionalApiEnableAlertManagerRequest = marshalling_gen.marshalRegionalApiEnableAlertManagerRequest;
19
- exports.marshalRegionalApiEnableAlertRulesRequest = marshalling_gen.marshalRegionalApiEnableAlertRulesRequest;
20
- exports.marshalRegionalApiTriggerTestAlertRequest = marshalling_gen.marshalRegionalApiTriggerTestAlertRequest;
21
- exports.marshalRegionalApiUpdateContactPointRequest = marshalling_gen.marshalRegionalApiUpdateContactPointRequest;
22
- exports.marshalRegionalApiUpdateDataSourceRequest = marshalling_gen.marshalRegionalApiUpdateDataSourceRequest;
23
- exports.unmarshalAlertManager = marshalling_gen.unmarshalAlertManager;
24
- exports.unmarshalContactPoint = marshalling_gen.unmarshalContactPoint;
25
- exports.unmarshalDataSource = marshalling_gen.unmarshalDataSource;
26
- exports.unmarshalDisableAlertRulesResponse = marshalling_gen.unmarshalDisableAlertRulesResponse;
27
- exports.unmarshalEnableAlertRulesResponse = marshalling_gen.unmarshalEnableAlertRulesResponse;
28
- exports.unmarshalGetConfigResponse = marshalling_gen.unmarshalGetConfigResponse;
29
- exports.unmarshalGetRulesCountResponse = marshalling_gen.unmarshalGetRulesCountResponse;
30
- exports.unmarshalGrafana = marshalling_gen.unmarshalGrafana;
31
- exports.unmarshalGrafanaProductDashboard = marshalling_gen.unmarshalGrafanaProductDashboard;
32
- exports.unmarshalGrafanaUser = marshalling_gen.unmarshalGrafanaUser;
33
- exports.unmarshalListAlertsResponse = marshalling_gen.unmarshalListAlertsResponse;
34
- exports.unmarshalListContactPointsResponse = marshalling_gen.unmarshalListContactPointsResponse;
35
- exports.unmarshalListDataSourcesResponse = marshalling_gen.unmarshalListDataSourcesResponse;
36
- exports.unmarshalListGrafanaProductDashboardsResponse = marshalling_gen.unmarshalListGrafanaProductDashboardsResponse;
37
- exports.unmarshalListGrafanaUsersResponse = marshalling_gen.unmarshalListGrafanaUsersResponse;
38
- exports.unmarshalListPlansResponse = marshalling_gen.unmarshalListPlansResponse;
39
- exports.unmarshalListTokensResponse = marshalling_gen.unmarshalListTokensResponse;
40
- exports.unmarshalPlan = marshalling_gen.unmarshalPlan;
41
- exports.unmarshalToken = marshalling_gen.unmarshalToken;
42
- exports.unmarshalUsageOverview = marshalling_gen.unmarshalUsageOverview;
43
- exports.ValidationRules = validationRules_gen;
@@ -1,468 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const sdkClient = require("@scaleway/sdk-client");
4
- const unmarshalContactPointEmail = (data) => {
5
- if (!sdkClient.isJSONObject(data)) {
6
- throw new TypeError(
7
- `Unmarshalling the type 'ContactPointEmail' failed as data isn't a dictionary.`
8
- );
9
- }
10
- return {
11
- to: data.to
12
- };
13
- };
14
- const unmarshalContactPoint = (data) => {
15
- if (!sdkClient.isJSONObject(data)) {
16
- throw new TypeError(
17
- `Unmarshalling the type 'ContactPoint' failed as data isn't a dictionary.`
18
- );
19
- }
20
- return {
21
- email: data.email ? unmarshalContactPointEmail(data.email) : void 0,
22
- region: data.region,
23
- sendResolvedNotifications: data.send_resolved_notifications
24
- };
25
- };
26
- const unmarshalDataSource = (data) => {
27
- if (!sdkClient.isJSONObject(data)) {
28
- throw new TypeError(
29
- `Unmarshalling the type 'DataSource' failed as data isn't a dictionary.`
30
- );
31
- }
32
- return {
33
- createdAt: sdkClient.unmarshalDate(data.created_at),
34
- id: data.id,
35
- name: data.name,
36
- origin: data.origin,
37
- projectId: data.project_id,
38
- region: data.region,
39
- retentionDays: data.retention_days,
40
- synchronizedWithGrafana: data.synchronized_with_grafana,
41
- type: data.type,
42
- updatedAt: sdkClient.unmarshalDate(data.updated_at),
43
- url: data.url
44
- };
45
- };
46
- const unmarshalGrafanaProductDashboard = (data) => {
47
- if (!sdkClient.isJSONObject(data)) {
48
- throw new TypeError(
49
- `Unmarshalling the type 'GrafanaProductDashboard' failed as data isn't a dictionary.`
50
- );
51
- }
52
- return {
53
- name: data.name,
54
- tags: data.tags,
55
- title: data.title,
56
- url: data.url,
57
- variables: data.variables
58
- };
59
- };
60
- const unmarshalGrafanaUser = (data) => {
61
- if (!sdkClient.isJSONObject(data)) {
62
- throw new TypeError(
63
- `Unmarshalling the type 'GrafanaUser' failed as data isn't a dictionary.`
64
- );
65
- }
66
- return {
67
- id: data.id,
68
- login: data.login,
69
- password: data.password,
70
- role: data.role
71
- };
72
- };
73
- const unmarshalPlan = (data) => {
74
- if (!sdkClient.isJSONObject(data)) {
75
- throw new TypeError(
76
- `Unmarshalling the type 'Plan' failed as data isn't a dictionary.`
77
- );
78
- }
79
- return {
80
- logsIngestionPrice: data.logs_ingestion_price,
81
- monthlyPrice: data.monthly_price,
82
- name: data.name,
83
- retentionLogsInterval: data.retention_logs_interval,
84
- retentionMetricsInterval: data.retention_metrics_interval,
85
- retentionTracesInterval: data.retention_traces_interval,
86
- sampleIngestionPrice: data.sample_ingestion_price,
87
- tracesIngestionPrice: data.traces_ingestion_price
88
- };
89
- };
90
- const unmarshalToken = (data) => {
91
- if (!sdkClient.isJSONObject(data)) {
92
- throw new TypeError(
93
- `Unmarshalling the type 'Token' failed as data isn't a dictionary.`
94
- );
95
- }
96
- return {
97
- createdAt: sdkClient.unmarshalDate(data.created_at),
98
- id: data.id,
99
- name: data.name,
100
- projectId: data.project_id,
101
- region: data.region,
102
- scopes: data.scopes,
103
- secretKey: data.secret_key,
104
- updatedAt: sdkClient.unmarshalDate(data.updated_at)
105
- };
106
- };
107
- const unmarshalAlertManager = (data) => {
108
- if (!sdkClient.isJSONObject(data)) {
109
- throw new TypeError(
110
- `Unmarshalling the type 'AlertManager' failed as data isn't a dictionary.`
111
- );
112
- }
113
- return {
114
- alertManagerEnabled: data.alert_manager_enabled,
115
- alertManagerUrl: data.alert_manager_url,
116
- managedAlertsEnabled: data.managed_alerts_enabled,
117
- region: data.region
118
- };
119
- };
120
- const unmarshalDisableAlertRulesResponse = (data) => {
121
- if (!sdkClient.isJSONObject(data)) {
122
- throw new TypeError(
123
- `Unmarshalling the type 'DisableAlertRulesResponse' failed as data isn't a dictionary.`
124
- );
125
- }
126
- return {
127
- disabledRuleIds: data.disabled_rule_ids
128
- };
129
- };
130
- const unmarshalEnableAlertRulesResponse = (data) => {
131
- if (!sdkClient.isJSONObject(data)) {
132
- throw new TypeError(
133
- `Unmarshalling the type 'EnableAlertRulesResponse' failed as data isn't a dictionary.`
134
- );
135
- }
136
- return {
137
- enabledRuleIds: data.enabled_rule_ids
138
- };
139
- };
140
- const unmarshalGetConfigResponseRetention = (data) => {
141
- if (!sdkClient.isJSONObject(data)) {
142
- throw new TypeError(
143
- `Unmarshalling the type 'GetConfigResponseRetention' failed as data isn't a dictionary.`
144
- );
145
- }
146
- return {
147
- defaultDays: data.default_days,
148
- maxDays: data.max_days,
149
- minDays: data.min_days
150
- };
151
- };
152
- const unmarshalGetConfigResponse = (data) => {
153
- if (!sdkClient.isJSONObject(data)) {
154
- throw new TypeError(
155
- `Unmarshalling the type 'GetConfigResponse' failed as data isn't a dictionary.`
156
- );
157
- }
158
- return {
159
- customLogsRetention: data.custom_logs_retention ? unmarshalGetConfigResponseRetention(data.custom_logs_retention) : void 0,
160
- customMetricsRetention: data.custom_metrics_retention ? unmarshalGetConfigResponseRetention(data.custom_metrics_retention) : void 0,
161
- customTracesRetention: data.custom_traces_retention ? unmarshalGetConfigResponseRetention(data.custom_traces_retention) : void 0,
162
- productLogsRetention: data.product_logs_retention ? unmarshalGetConfigResponseRetention(data.product_logs_retention) : void 0,
163
- productMetricsRetention: data.product_metrics_retention ? unmarshalGetConfigResponseRetention(data.product_metrics_retention) : void 0
164
- };
165
- };
166
- const unmarshalRulesCount = (data) => {
167
- if (!sdkClient.isJSONObject(data)) {
168
- throw new TypeError(
169
- `Unmarshalling the type 'RulesCount' failed as data isn't a dictionary.`
170
- );
171
- }
172
- return {
173
- dataSourceId: data.data_source_id,
174
- dataSourceName: data.data_source_name,
175
- rulesCount: data.rules_count
176
- };
177
- };
178
- const unmarshalGetRulesCountResponse = (data) => {
179
- if (!sdkClient.isJSONObject(data)) {
180
- throw new TypeError(
181
- `Unmarshalling the type 'GetRulesCountResponse' failed as data isn't a dictionary.`
182
- );
183
- }
184
- return {
185
- customRulesCount: data.custom_rules_count,
186
- preconfiguredRulesCount: data.preconfigured_rules_count,
187
- rulesCountByDatasource: sdkClient.unmarshalArrayOfObject(
188
- data.rules_count_by_datasource,
189
- unmarshalRulesCount
190
- )
191
- };
192
- };
193
- const unmarshalGrafana = (data) => {
194
- if (!sdkClient.isJSONObject(data)) {
195
- throw new TypeError(
196
- `Unmarshalling the type 'Grafana' failed as data isn't a dictionary.`
197
- );
198
- }
199
- return {
200
- grafanaUrl: data.grafana_url
201
- };
202
- };
203
- const unmarshalPreconfiguredAlertData = (data) => {
204
- if (!sdkClient.isJSONObject(data)) {
205
- throw new TypeError(
206
- `Unmarshalling the type 'PreconfiguredAlertData' failed as data isn't a dictionary.`
207
- );
208
- }
209
- return {
210
- displayDescription: data.display_description,
211
- displayName: data.display_name,
212
- preconfiguredRuleId: data.preconfigured_rule_id,
213
- productFamily: data.product_family,
214
- productName: data.product_name
215
- };
216
- };
217
- const unmarshalAlert = (data) => {
218
- if (!sdkClient.isJSONObject(data)) {
219
- throw new TypeError(
220
- `Unmarshalling the type 'Alert' failed as data isn't a dictionary.`
221
- );
222
- }
223
- return {
224
- annotations: data.annotations,
225
- dataSourceId: data.data_source_id,
226
- duration: data.duration,
227
- name: data.name,
228
- preconfigured: data.preconfigured,
229
- preconfiguredData: data.preconfigured_data ? unmarshalPreconfiguredAlertData(data.preconfigured_data) : void 0,
230
- region: data.region,
231
- rule: data.rule,
232
- ruleStatus: data.rule_status,
233
- state: data.state ? data.state : void 0
234
- };
235
- };
236
- const unmarshalListAlertsResponse = (data) => {
237
- if (!sdkClient.isJSONObject(data)) {
238
- throw new TypeError(
239
- `Unmarshalling the type 'ListAlertsResponse' failed as data isn't a dictionary.`
240
- );
241
- }
242
- return {
243
- alerts: sdkClient.unmarshalArrayOfObject(data.alerts, unmarshalAlert),
244
- totalCount: data.total_count
245
- };
246
- };
247
- const unmarshalListContactPointsResponse = (data) => {
248
- if (!sdkClient.isJSONObject(data)) {
249
- throw new TypeError(
250
- `Unmarshalling the type 'ListContactPointsResponse' failed as data isn't a dictionary.`
251
- );
252
- }
253
- return {
254
- contactPoints: sdkClient.unmarshalArrayOfObject(
255
- data.contact_points,
256
- unmarshalContactPoint
257
- ),
258
- hasAdditionalContactPoints: data.has_additional_contact_points,
259
- hasAdditionalReceivers: data.has_additional_receivers,
260
- totalCount: data.total_count
261
- };
262
- };
263
- const unmarshalListDataSourcesResponse = (data) => {
264
- if (!sdkClient.isJSONObject(data)) {
265
- throw new TypeError(
266
- `Unmarshalling the type 'ListDataSourcesResponse' failed as data isn't a dictionary.`
267
- );
268
- }
269
- return {
270
- dataSources: sdkClient.unmarshalArrayOfObject(data.data_sources, unmarshalDataSource),
271
- totalCount: data.total_count
272
- };
273
- };
274
- const unmarshalListGrafanaProductDashboardsResponse = (data) => {
275
- if (!sdkClient.isJSONObject(data)) {
276
- throw new TypeError(
277
- `Unmarshalling the type 'ListGrafanaProductDashboardsResponse' failed as data isn't a dictionary.`
278
- );
279
- }
280
- return {
281
- dashboards: sdkClient.unmarshalArrayOfObject(
282
- data.dashboards,
283
- unmarshalGrafanaProductDashboard
284
- ),
285
- totalCount: data.total_count
286
- };
287
- };
288
- const unmarshalListGrafanaUsersResponse = (data) => {
289
- if (!sdkClient.isJSONObject(data)) {
290
- throw new TypeError(
291
- `Unmarshalling the type 'ListGrafanaUsersResponse' failed as data isn't a dictionary.`
292
- );
293
- }
294
- return {
295
- grafanaUsers: sdkClient.unmarshalArrayOfObject(
296
- data.grafana_users,
297
- unmarshalGrafanaUser
298
- ),
299
- totalCount: data.total_count
300
- };
301
- };
302
- const unmarshalListPlansResponse = (data) => {
303
- if (!sdkClient.isJSONObject(data)) {
304
- throw new TypeError(
305
- `Unmarshalling the type 'ListPlansResponse' failed as data isn't a dictionary.`
306
- );
307
- }
308
- return {
309
- plans: sdkClient.unmarshalArrayOfObject(data.plans, unmarshalPlan),
310
- totalCount: data.total_count
311
- };
312
- };
313
- const unmarshalListTokensResponse = (data) => {
314
- if (!sdkClient.isJSONObject(data)) {
315
- throw new TypeError(
316
- `Unmarshalling the type 'ListTokensResponse' failed as data isn't a dictionary.`
317
- );
318
- }
319
- return {
320
- tokens: sdkClient.unmarshalArrayOfObject(data.tokens, unmarshalToken),
321
- totalCount: data.total_count
322
- };
323
- };
324
- const unmarshalUsage = (data) => {
325
- if (!sdkClient.isJSONObject(data)) {
326
- throw new TypeError(
327
- `Unmarshalling the type 'Usage' failed as data isn't a dictionary.`
328
- );
329
- }
330
- return {
331
- dataSourceId: data.data_source_id,
332
- dataSourceOrigin: data.data_source_origin,
333
- dataSourceType: data.data_source_type,
334
- interval: data.interval,
335
- projectId: data.project_id,
336
- quantityOverInterval: data.quantity_over_interval,
337
- region: data.region,
338
- unit: data.unit
339
- };
340
- };
341
- const unmarshalUsageOverview = (data) => {
342
- if (!sdkClient.isJSONObject(data)) {
343
- throw new TypeError(
344
- `Unmarshalling the type 'UsageOverview' failed as data isn't a dictionary.`
345
- );
346
- }
347
- return {
348
- externalLogsUsage: data.external_logs_usage ? unmarshalUsage(data.external_logs_usage) : void 0,
349
- externalMetricsUsage: data.external_metrics_usage ? unmarshalUsage(data.external_metrics_usage) : void 0,
350
- externalTracesUsage: data.external_traces_usage ? unmarshalUsage(data.external_traces_usage) : void 0,
351
- scalewayLogsUsage: data.scaleway_logs_usage ? unmarshalUsage(data.scaleway_logs_usage) : void 0,
352
- scalewayMetricsUsage: data.scaleway_metrics_usage ? unmarshalUsage(data.scaleway_metrics_usage) : void 0
353
- };
354
- };
355
- const marshalGlobalApiCreateGrafanaUserRequest = (request, defaults) => ({
356
- login: request.login,
357
- project_id: request.projectId ?? defaults.defaultProjectId,
358
- role: request.role
359
- });
360
- const marshalGlobalApiResetGrafanaUserPasswordRequest = (request, defaults) => ({
361
- project_id: request.projectId ?? defaults.defaultProjectId
362
- });
363
- const marshalGlobalApiSelectPlanRequest = (request, defaults) => ({
364
- plan_name: request.planName,
365
- project_id: request.projectId ?? defaults.defaultProjectId
366
- });
367
- const marshalGlobalApiSyncGrafanaDataSourcesRequest = (request, defaults) => ({
368
- project_id: request.projectId ?? defaults.defaultProjectId
369
- });
370
- const marshalContactPointEmail = (request, defaults) => ({
371
- to: request.to
372
- });
373
- const marshalRegionalApiCreateContactPointRequest = (request, defaults) => ({
374
- project_id: request.projectId ?? defaults.defaultProjectId,
375
- send_resolved_notifications: request.sendResolvedNotifications,
376
- ...sdkClient.resolveOneOf([
377
- {
378
- param: "email",
379
- value: request.email !== void 0 ? marshalContactPointEmail(request.email) : void 0
380
- }
381
- ])
382
- });
383
- const marshalRegionalApiCreateDataSourceRequest = (request, defaults) => ({
384
- name: request.name,
385
- project_id: request.projectId ?? defaults.defaultProjectId,
386
- retention_days: request.retentionDays,
387
- type: request.type
388
- });
389
- const marshalRegionalApiCreateTokenRequest = (request, defaults) => ({
390
- name: request.name,
391
- project_id: request.projectId ?? defaults.defaultProjectId,
392
- token_scopes: request.tokenScopes !== void 0 ? request.tokenScopes : void 0
393
- });
394
- const marshalRegionalApiDeleteContactPointRequest = (request, defaults) => ({
395
- project_id: request.projectId ?? defaults.defaultProjectId,
396
- ...sdkClient.resolveOneOf([
397
- {
398
- param: "email",
399
- value: request.email !== void 0 ? marshalContactPointEmail(request.email) : void 0
400
- }
401
- ])
402
- });
403
- const marshalRegionalApiDisableAlertManagerRequest = (request, defaults) => ({
404
- project_id: request.projectId ?? defaults.defaultProjectId
405
- });
406
- const marshalRegionalApiDisableAlertRulesRequest = (request, defaults) => ({
407
- project_id: request.projectId ?? defaults.defaultProjectId,
408
- rule_ids: request.ruleIds
409
- });
410
- const marshalRegionalApiEnableAlertManagerRequest = (request, defaults) => ({
411
- project_id: request.projectId ?? defaults.defaultProjectId
412
- });
413
- const marshalRegionalApiEnableAlertRulesRequest = (request, defaults) => ({
414
- project_id: request.projectId ?? defaults.defaultProjectId,
415
- rule_ids: request.ruleIds
416
- });
417
- const marshalRegionalApiTriggerTestAlertRequest = (request, defaults) => ({
418
- project_id: request.projectId ?? defaults.defaultProjectId
419
- });
420
- const marshalRegionalApiUpdateContactPointRequest = (request, defaults) => ({
421
- project_id: request.projectId ?? defaults.defaultProjectId,
422
- send_resolved_notifications: request.sendResolvedNotifications,
423
- ...sdkClient.resolveOneOf([
424
- {
425
- param: "email",
426
- value: request.email !== void 0 ? marshalContactPointEmail(request.email) : void 0
427
- }
428
- ])
429
- });
430
- const marshalRegionalApiUpdateDataSourceRequest = (request, defaults) => ({
431
- name: request.name,
432
- retention_days: request.retentionDays
433
- });
434
- exports.marshalGlobalApiCreateGrafanaUserRequest = marshalGlobalApiCreateGrafanaUserRequest;
435
- exports.marshalGlobalApiResetGrafanaUserPasswordRequest = marshalGlobalApiResetGrafanaUserPasswordRequest;
436
- exports.marshalGlobalApiSelectPlanRequest = marshalGlobalApiSelectPlanRequest;
437
- exports.marshalGlobalApiSyncGrafanaDataSourcesRequest = marshalGlobalApiSyncGrafanaDataSourcesRequest;
438
- exports.marshalRegionalApiCreateContactPointRequest = marshalRegionalApiCreateContactPointRequest;
439
- exports.marshalRegionalApiCreateDataSourceRequest = marshalRegionalApiCreateDataSourceRequest;
440
- exports.marshalRegionalApiCreateTokenRequest = marshalRegionalApiCreateTokenRequest;
441
- exports.marshalRegionalApiDeleteContactPointRequest = marshalRegionalApiDeleteContactPointRequest;
442
- exports.marshalRegionalApiDisableAlertManagerRequest = marshalRegionalApiDisableAlertManagerRequest;
443
- exports.marshalRegionalApiDisableAlertRulesRequest = marshalRegionalApiDisableAlertRulesRequest;
444
- exports.marshalRegionalApiEnableAlertManagerRequest = marshalRegionalApiEnableAlertManagerRequest;
445
- exports.marshalRegionalApiEnableAlertRulesRequest = marshalRegionalApiEnableAlertRulesRequest;
446
- exports.marshalRegionalApiTriggerTestAlertRequest = marshalRegionalApiTriggerTestAlertRequest;
447
- exports.marshalRegionalApiUpdateContactPointRequest = marshalRegionalApiUpdateContactPointRequest;
448
- exports.marshalRegionalApiUpdateDataSourceRequest = marshalRegionalApiUpdateDataSourceRequest;
449
- exports.unmarshalAlertManager = unmarshalAlertManager;
450
- exports.unmarshalContactPoint = unmarshalContactPoint;
451
- exports.unmarshalDataSource = unmarshalDataSource;
452
- exports.unmarshalDisableAlertRulesResponse = unmarshalDisableAlertRulesResponse;
453
- exports.unmarshalEnableAlertRulesResponse = unmarshalEnableAlertRulesResponse;
454
- exports.unmarshalGetConfigResponse = unmarshalGetConfigResponse;
455
- exports.unmarshalGetRulesCountResponse = unmarshalGetRulesCountResponse;
456
- exports.unmarshalGrafana = unmarshalGrafana;
457
- exports.unmarshalGrafanaProductDashboard = unmarshalGrafanaProductDashboard;
458
- exports.unmarshalGrafanaUser = unmarshalGrafanaUser;
459
- exports.unmarshalListAlertsResponse = unmarshalListAlertsResponse;
460
- exports.unmarshalListContactPointsResponse = unmarshalListContactPointsResponse;
461
- exports.unmarshalListDataSourcesResponse = unmarshalListDataSourcesResponse;
462
- exports.unmarshalListGrafanaProductDashboardsResponse = unmarshalListGrafanaProductDashboardsResponse;
463
- exports.unmarshalListGrafanaUsersResponse = unmarshalListGrafanaUsersResponse;
464
- exports.unmarshalListPlansResponse = unmarshalListPlansResponse;
465
- exports.unmarshalListTokensResponse = unmarshalListTokensResponse;
466
- exports.unmarshalPlan = unmarshalPlan;
467
- exports.unmarshalToken = unmarshalToken;
468
- exports.unmarshalUsageOverview = unmarshalUsageOverview;
@@ -1,67 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const RegionalApiCreateDataSourceRequest = {
4
- name: {
5
- maxLength: 50,
6
- minLength: 3,
7
- pattern: /^[A-Za-z0-9-_. ]+$/
8
- },
9
- retentionDays: {
10
- greaterThanOrEqual: 1,
11
- ignoreEmpty: true,
12
- lessThanOrEqual: 1825
13
- }
14
- };
15
- const RegionalApiCreateTokenRequest = {
16
- name: {
17
- maxLength: 50,
18
- minLength: 3,
19
- pattern: /^[A-Za-z0-9-_]+$/
20
- }
21
- };
22
- const RegionalApiListContactPointsRequest = {
23
- page: {
24
- greaterThanOrEqual: 1
25
- },
26
- pageSize: {
27
- greaterThanOrEqual: 1,
28
- lessThanOrEqual: 1e3
29
- }
30
- };
31
- const RegionalApiListDataSourcesRequest = {
32
- page: {
33
- greaterThanOrEqual: 1
34
- },
35
- pageSize: {
36
- greaterThanOrEqual: 1,
37
- lessThanOrEqual: 1e3
38
- }
39
- };
40
- const RegionalApiListTokensRequest = {
41
- page: {
42
- greaterThanOrEqual: 1
43
- },
44
- pageSize: {
45
- greaterThanOrEqual: 1,
46
- lessThanOrEqual: 1e3
47
- }
48
- };
49
- const RegionalApiUpdateDataSourceRequest = {
50
- name: {
51
- ignoreEmpty: true,
52
- maxLength: 50,
53
- minLength: 3,
54
- pattern: /^[A-Za-z0-9-_. ]+$/
55
- },
56
- retentionDays: {
57
- greaterThanOrEqual: 1,
58
- ignoreEmpty: true,
59
- lessThanOrEqual: 1825
60
- }
61
- };
62
- exports.RegionalApiCreateDataSourceRequest = RegionalApiCreateDataSourceRequest;
63
- exports.RegionalApiCreateTokenRequest = RegionalApiCreateTokenRequest;
64
- exports.RegionalApiListContactPointsRequest = RegionalApiListContactPointsRequest;
65
- exports.RegionalApiListDataSourcesRequest = RegionalApiListDataSourcesRequest;
66
- exports.RegionalApiListTokensRequest = RegionalApiListTokensRequest;
67
- exports.RegionalApiUpdateDataSourceRequest = RegionalApiUpdateDataSourceRequest;