@prismatic-io/components-datadog 0.0.0-stage → 0.0.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.
@@ -0,0 +1,676 @@
1
+ //#region src/types/index.d.ts
2
+ type MetricIntakeType = 0 | 1 | 2 | 3;
3
+ type WebhookEncodeAs = "json" | "form";
4
+ interface WebhooksIntegration {
5
+ name: string;
6
+ url: string;
7
+ custom_headers: string | null;
8
+ payload: string | null;
9
+ encode_as?: WebhookEncodeAs;
10
+ }
11
+ //#endregion
12
+ //#region node_modules/axios/index.d.ts
13
+ type UppercaseMethod = 'GET' | 'DELETE' | 'HEAD' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH' | 'PURGE' | 'LINK' | 'UNLINK' | 'QUERY';
14
+ type Method = (UppercaseMethod | Lowercase<UppercaseMethod>) & {};
15
+ type ResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream' | 'formdata';
16
+ //#endregion
17
+ //#region npm-dist/.entry.d.ts
18
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
19
+ key: "datadog";
20
+ public: true;
21
+ documentationUrl: "https://prismatic.io/docs/components/datadog/";
22
+ display: {
23
+ label: string;
24
+ description: string;
25
+ iconPath: string;
26
+ category: "Data Platforms";
27
+ };
28
+ hooks: {
29
+ error: (error: unknown) => unknown;
30
+ };
31
+ actions: {
32
+ createWebhook: import("@prismatic-io/spectral").ActionDefinition<{
33
+ connection: {
34
+ label: string;
35
+ type: "connection";
36
+ required: true;
37
+ comments: string;
38
+ };
39
+ webhookName: {
40
+ label: string;
41
+ type: "string";
42
+ required: true;
43
+ placeholder: string;
44
+ comments: string;
45
+ example: string;
46
+ clean: (value: unknown, defaultValue?: string) => string;
47
+ };
48
+ webhookUrl: {
49
+ label: string;
50
+ type: "string";
51
+ required: true;
52
+ placeholder: string;
53
+ comments: string;
54
+ example: string;
55
+ clean: (value: unknown, defaultValue?: string) => string;
56
+ };
57
+ webhookCustomHeaders: {
58
+ label: string;
59
+ type: "code";
60
+ required: false;
61
+ language: "json";
62
+ placeholder: string;
63
+ comments: string;
64
+ example: string;
65
+ clean: (value: unknown) => string | undefined;
66
+ };
67
+ webhookEncodeAs: {
68
+ label: string;
69
+ type: "string";
70
+ required: false;
71
+ model: {
72
+ label: string;
73
+ value: WebhookEncodeAs;
74
+ }[];
75
+ comments: string;
76
+ clean: (value: unknown) => string | undefined;
77
+ };
78
+ webhookPayload: {
79
+ label: string;
80
+ type: "code";
81
+ required: false;
82
+ language: "json";
83
+ placeholder: string;
84
+ comments: string;
85
+ example: string;
86
+ clean: (value: unknown) => string | undefined;
87
+ };
88
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
89
+ data: unknown;
90
+ }>;
91
+ deleteWebhook: import("@prismatic-io/spectral").ActionDefinition<{
92
+ connection: {
93
+ label: string;
94
+ type: "connection";
95
+ required: true;
96
+ comments: string;
97
+ };
98
+ webhookName: {
99
+ label: string;
100
+ type: "string";
101
+ required: true;
102
+ placeholder: string;
103
+ comments: string;
104
+ example: string;
105
+ clean: (value: unknown, defaultValue?: string) => string;
106
+ };
107
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
108
+ data: unknown;
109
+ }>;
110
+ getWebhook: import("@prismatic-io/spectral").ActionDefinition<{
111
+ connection: {
112
+ label: string;
113
+ type: "connection";
114
+ required: true;
115
+ comments: string;
116
+ };
117
+ webhookName: {
118
+ label: string;
119
+ type: "string";
120
+ required: true;
121
+ placeholder: string;
122
+ comments: string;
123
+ example: string;
124
+ clean: (value: unknown, defaultValue?: string) => string;
125
+ };
126
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
127
+ data: WebhooksIntegration;
128
+ }>;
129
+ updateWebhook: import("@prismatic-io/spectral").ActionDefinition<{
130
+ connection: {
131
+ label: string;
132
+ type: "connection";
133
+ required: true;
134
+ comments: string;
135
+ };
136
+ webhookName: {
137
+ label: string;
138
+ type: "string";
139
+ required: true;
140
+ placeholder: string;
141
+ comments: string;
142
+ example: string;
143
+ clean: (value: unknown, defaultValue?: string) => string;
144
+ };
145
+ webhookUrl: {
146
+ required: boolean;
147
+ clean: (value: unknown) => string | undefined;
148
+ label: string;
149
+ type: "string";
150
+ placeholder: string;
151
+ comments: string;
152
+ example: string;
153
+ };
154
+ webhookCustomHeaders: {
155
+ label: string;
156
+ type: "code";
157
+ required: false;
158
+ language: "json";
159
+ placeholder: string;
160
+ comments: string;
161
+ example: string;
162
+ clean: (value: unknown) => string | undefined;
163
+ };
164
+ webhookEncodeAs: {
165
+ label: string;
166
+ type: "string";
167
+ required: false;
168
+ model: {
169
+ label: string;
170
+ value: WebhookEncodeAs;
171
+ }[];
172
+ comments: string;
173
+ clean: (value: unknown) => string | undefined;
174
+ };
175
+ webhookPayload: {
176
+ label: string;
177
+ type: "code";
178
+ required: false;
179
+ language: "json";
180
+ placeholder: string;
181
+ comments: string;
182
+ example: string;
183
+ clean: (value: unknown) => string | undefined;
184
+ };
185
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
186
+ data: unknown;
187
+ }>;
188
+ rawRequest: import("@prismatic-io/spectral").ActionDefinition<{
189
+ url: {
190
+ comments: string;
191
+ example: string;
192
+ label: string;
193
+ placeholder: string;
194
+ type: "string";
195
+ required: true;
196
+ clean: (value: unknown) => string;
197
+ };
198
+ method: {
199
+ label: string;
200
+ type: "string";
201
+ required: true;
202
+ model: {
203
+ label: Method;
204
+ value: Method;
205
+ }[];
206
+ comments: string;
207
+ clean: (value: unknown) => string;
208
+ };
209
+ data: {
210
+ label: string;
211
+ placeholder: string;
212
+ type: "string";
213
+ required: false;
214
+ comments: string;
215
+ example: string;
216
+ };
217
+ formData: {
218
+ label: string;
219
+ placeholder: string;
220
+ type: "string";
221
+ collection: "keyvaluelist";
222
+ required: false;
223
+ comments: string;
224
+ example: string;
225
+ };
226
+ fileData: {
227
+ label: string;
228
+ placeholder: string;
229
+ type: "string";
230
+ collection: "keyvaluelist";
231
+ required: false;
232
+ comments: string;
233
+ example: string;
234
+ };
235
+ fileDataFileNames: {
236
+ label: string;
237
+ placeholder: string;
238
+ type: "string";
239
+ collection: "keyvaluelist";
240
+ required: false;
241
+ comments: string;
242
+ clean: (values: any) => Record<string, string> | undefined;
243
+ };
244
+ queryParams: {
245
+ label: string;
246
+ placeholder: string;
247
+ type: "string";
248
+ collection: "keyvaluelist";
249
+ required: false;
250
+ comments: string;
251
+ };
252
+ headers: {
253
+ label: string;
254
+ placeholder: string;
255
+ type: "string";
256
+ collection: "keyvaluelist";
257
+ required: false;
258
+ comments: string;
259
+ example: string;
260
+ };
261
+ responseType: {
262
+ label: string;
263
+ placeholder: string;
264
+ type: "string";
265
+ default: string;
266
+ required: true;
267
+ comments: string;
268
+ model: {
269
+ label: ResponseType;
270
+ value: ResponseType;
271
+ }[];
272
+ clean: (value: unknown) => ResponseType;
273
+ };
274
+ timeout: {
275
+ label: string;
276
+ type: "string";
277
+ required: false;
278
+ comments: string;
279
+ example: string;
280
+ clean: (value: unknown) => number;
281
+ };
282
+ debugRequest: {
283
+ label: string;
284
+ type: "boolean";
285
+ required: false;
286
+ comments: string;
287
+ clean: (value: unknown) => boolean;
288
+ };
289
+ retryDelayMS: {
290
+ label: string;
291
+ placeholder: string;
292
+ type: "string";
293
+ required: false;
294
+ comments: string;
295
+ default: string;
296
+ clean: (value: unknown) => number;
297
+ };
298
+ retryAllErrors: {
299
+ label: string;
300
+ type: "boolean";
301
+ default: string;
302
+ required: false;
303
+ comments: string;
304
+ clean: (value: unknown) => boolean;
305
+ };
306
+ maxRetries: {
307
+ label: string;
308
+ placeholder: string;
309
+ type: "string";
310
+ required: false;
311
+ comments: string;
312
+ default: string;
313
+ clean: (value: unknown) => number;
314
+ };
315
+ useExponentialBackoff: {
316
+ label: string;
317
+ type: "boolean";
318
+ default: string;
319
+ required: false;
320
+ comments: string;
321
+ clean: (value: unknown) => boolean;
322
+ };
323
+ connection: {
324
+ label: string;
325
+ type: "connection";
326
+ required: true;
327
+ comments: string;
328
+ };
329
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
330
+ data: any;
331
+ }>;
332
+ listMetrics: import("@prismatic-io/spectral").ActionDefinition<{
333
+ connection: {
334
+ label: string;
335
+ type: "connection";
336
+ required: true;
337
+ comments: string;
338
+ };
339
+ metricsFrom: {
340
+ label: string;
341
+ type: "string";
342
+ required: true;
343
+ placeholder: string;
344
+ comments: string;
345
+ example: string;
346
+ clean: (value: unknown) => number;
347
+ };
348
+ metricsHost: {
349
+ label: string;
350
+ type: "string";
351
+ required: false;
352
+ placeholder: string;
353
+ comments: string;
354
+ example: string;
355
+ clean: (value: unknown) => string | undefined;
356
+ };
357
+ metricsTagFilter: {
358
+ label: string;
359
+ type: "string";
360
+ required: false;
361
+ placeholder: string;
362
+ comments: string;
363
+ example: string;
364
+ clean: (value: unknown) => string | undefined;
365
+ };
366
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
367
+ data: unknown;
368
+ }>;
369
+ searchMetrics: import("@prismatic-io/spectral").ActionDefinition<{
370
+ connection: {
371
+ label: string;
372
+ type: "connection";
373
+ required: true;
374
+ comments: string;
375
+ };
376
+ metricsQuery: {
377
+ label: string;
378
+ type: "string";
379
+ required: true;
380
+ placeholder: string;
381
+ comments: string;
382
+ example: string;
383
+ clean: (value: unknown, defaultValue?: string) => string;
384
+ };
385
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
386
+ data: unknown;
387
+ }>;
388
+ submitMetrics: import("@prismatic-io/spectral").ActionDefinition<{
389
+ connection: {
390
+ label: string;
391
+ type: "connection";
392
+ required: true;
393
+ comments: string;
394
+ };
395
+ metricSeries: {
396
+ label: string;
397
+ type: "code";
398
+ required: true;
399
+ language: "json";
400
+ placeholder: string;
401
+ comments: string;
402
+ example: string;
403
+ clean: (value: unknown) => unknown[];
404
+ };
405
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
406
+ data: unknown;
407
+ }>;
408
+ submitSingleMetric: import("@prismatic-io/spectral").ActionDefinition<{
409
+ connection: {
410
+ label: string;
411
+ type: "connection";
412
+ required: true;
413
+ comments: string;
414
+ };
415
+ metricName: {
416
+ label: string;
417
+ type: "string";
418
+ required: true;
419
+ placeholder: string;
420
+ comments: string;
421
+ example: string;
422
+ dataSource: string;
423
+ clean: (value: unknown, defaultValue?: string) => string;
424
+ };
425
+ metricValue: {
426
+ label: string;
427
+ type: "string";
428
+ required: true;
429
+ placeholder: string;
430
+ comments: string;
431
+ example: string;
432
+ clean: (value: unknown) => number;
433
+ };
434
+ metricTimestamp: {
435
+ label: string;
436
+ type: "string";
437
+ required: false;
438
+ placeholder: string;
439
+ comments: string;
440
+ example: string;
441
+ clean: (value: unknown) => number | undefined;
442
+ };
443
+ metricTags: {
444
+ label: string;
445
+ type: "string";
446
+ required: false;
447
+ collection: "valuelist";
448
+ placeholder: string;
449
+ comments: string;
450
+ example: string;
451
+ clean: (value: unknown) => string[];
452
+ };
453
+ metricFields: {
454
+ label: string;
455
+ comments: string;
456
+ inputs: {
457
+ metricType: {
458
+ label: string;
459
+ type: "string";
460
+ required: false;
461
+ model: {
462
+ label: string;
463
+ value: string;
464
+ }[];
465
+ comments: string;
466
+ clean: (value: unknown) => MetricIntakeType | undefined;
467
+ };
468
+ metricUnit: {
469
+ label: string;
470
+ type: "string";
471
+ required: false;
472
+ placeholder: string;
473
+ comments: string;
474
+ example: string;
475
+ clean: (value: unknown) => string | undefined;
476
+ };
477
+ metricInterval: {
478
+ label: string;
479
+ type: "string";
480
+ required: false;
481
+ placeholder: string;
482
+ comments: string;
483
+ example: string;
484
+ clean: (value: unknown) => number | undefined;
485
+ };
486
+ resourceName: {
487
+ label: string;
488
+ type: "string";
489
+ required: false;
490
+ placeholder: string;
491
+ comments: string;
492
+ example: string;
493
+ clean: (value: unknown) => string | undefined;
494
+ };
495
+ resourceType: {
496
+ label: string;
497
+ type: "string";
498
+ required: false;
499
+ placeholder: string;
500
+ comments: string;
501
+ example: string;
502
+ clean: (value: unknown) => string | undefined;
503
+ };
504
+ };
505
+ } & {
506
+ type: "structuredObject";
507
+ };
508
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
509
+ data: unknown;
510
+ }>;
511
+ };
512
+ connections: (import("@prismatic-io/spectral").KeyedConnection<{
513
+ key: "apiKey";
514
+ display: {
515
+ label: string;
516
+ description: string;
517
+ };
518
+ inputs: {
519
+ datadogSite: {
520
+ label: string;
521
+ type: "string";
522
+ required: true;
523
+ shown: true;
524
+ comments: string;
525
+ default: string;
526
+ model: {
527
+ label: string;
528
+ value: string;
529
+ }[];
530
+ };
531
+ apiKey: {
532
+ label: string;
533
+ placeholder: string;
534
+ type: "password";
535
+ required: true;
536
+ shown: true;
537
+ comments: string;
538
+ example: string;
539
+ };
540
+ applicationKey: {
541
+ label: string;
542
+ placeholder: string;
543
+ type: "password";
544
+ required: true;
545
+ shown: true;
546
+ comments: string;
547
+ example: string;
548
+ };
549
+ };
550
+ }, "apiKey"> | import("@prismatic-io/spectral").KeyedConnection<{
551
+ key: "oauth2";
552
+ display: {
553
+ label: string;
554
+ description: string;
555
+ };
556
+ oauth2Type: import("@prismatic-io/spectral").OAuth2Type.AuthorizationCode;
557
+ inputs: {
558
+ datadogSite: {
559
+ label: string;
560
+ type: "string";
561
+ required: true;
562
+ shown: true;
563
+ comments: string;
564
+ default: string;
565
+ model: {
566
+ label: string;
567
+ value: string;
568
+ }[];
569
+ };
570
+ authorizeUrl: {
571
+ label: string;
572
+ placeholder: string;
573
+ type: "string";
574
+ required: false;
575
+ shown: false;
576
+ comments: string;
577
+ default: string;
578
+ };
579
+ tokenUrl: {
580
+ label: string;
581
+ placeholder: string;
582
+ type: "string";
583
+ required: false;
584
+ shown: false;
585
+ comments: string;
586
+ default: string;
587
+ };
588
+ revokeUrl: {
589
+ label: string;
590
+ placeholder: string;
591
+ type: "string";
592
+ required: false;
593
+ shown: false;
594
+ comments: string;
595
+ default: string;
596
+ };
597
+ scopes: {
598
+ label: string;
599
+ placeholder: string;
600
+ type: "string";
601
+ required: false;
602
+ shown: false;
603
+ comments: string;
604
+ default: string;
605
+ };
606
+ clientId: {
607
+ label: string;
608
+ placeholder: string;
609
+ type: "string";
610
+ required: true;
611
+ shown: true;
612
+ comments: string;
613
+ };
614
+ clientSecret: {
615
+ label: string;
616
+ placeholder: string;
617
+ type: "password";
618
+ required: true;
619
+ shown: true;
620
+ comments: string;
621
+ };
622
+ };
623
+ }, "oauth2">)[];
624
+ dataSources: {
625
+ selectMetric: import("@prismatic-io/spectral").DataSourceDefinition<{
626
+ connection: {
627
+ label: string;
628
+ type: "connection";
629
+ required: true;
630
+ comments: string;
631
+ };
632
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
633
+ };
634
+ triggers: {
635
+ webhook: import("@prismatic-io/spectral").TriggerDefinition<{
636
+ connection: {
637
+ label: string;
638
+ type: "connection";
639
+ required: true;
640
+ comments: string;
641
+ };
642
+ webhookName: {
643
+ label: string;
644
+ type: "string";
645
+ required: true;
646
+ placeholder: string;
647
+ comments: string;
648
+ example: string;
649
+ clean: (value: unknown, defaultValue?: string) => string;
650
+ };
651
+ webhookPayload: {
652
+ label: string;
653
+ type: "code";
654
+ required: false;
655
+ language: "json";
656
+ placeholder: string;
657
+ comments: string;
658
+ example: string;
659
+ clean: (value: unknown) => string | undefined;
660
+ };
661
+ webhookCustomHeaders: {
662
+ label: string;
663
+ type: "code";
664
+ required: false;
665
+ language: "json";
666
+ placeholder: string;
667
+ comments: string;
668
+ example: string;
669
+ clean: (value: unknown) => string | undefined;
670
+ };
671
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
672
+ payload: import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>;
673
+ }, import("@prismatic-io/spectral").Inputs>;
674
+ };
675
+ }>;
676
+ export = _default;