@itentialopensource/adapter-hyas_protect 0.1.1 → 0.2.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.
Files changed (41) hide show
  1. package/CALLS.md +9 -9
  2. package/CHANGELOG.md +16 -1
  3. package/CONTRIBUTING.md +1 -160
  4. package/ENHANCE.md +2 -2
  5. package/README.md +31 -22
  6. package/adapter.js +159 -330
  7. package/adapterBase.js +538 -873
  8. package/changelogs/changelog.md +9 -0
  9. package/metadata.json +49 -0
  10. package/package.json +22 -25
  11. package/pronghorn.json +474 -142
  12. package/propertiesSchema.json +453 -40
  13. package/refs?service=git-upload-pack +0 -0
  14. package/report/adapter-openapi.json +1400 -0
  15. package/report/adapter-openapi.yaml +1067 -0
  16. package/report/adapterInfo.json +8 -8
  17. package/report/updateReport1691508672052.json +120 -0
  18. package/report/updateReport1692203123169.json +120 -0
  19. package/report/updateReport1694467753903.json +120 -0
  20. package/report/updateReport1698422406410.json +120 -0
  21. package/sampleProperties.json +63 -2
  22. package/test/integration/adapterTestBasicGet.js +1 -1
  23. package/test/integration/adapterTestConnectivity.js +91 -42
  24. package/test/integration/adapterTestIntegration.js +130 -2
  25. package/test/unit/adapterBaseTestUnit.js +388 -313
  26. package/test/unit/adapterTestUnit.js +306 -109
  27. package/utils/adapterInfo.js +1 -1
  28. package/utils/addAuth.js +1 -1
  29. package/utils/artifactize.js +1 -1
  30. package/utils/checkMigrate.js +1 -1
  31. package/utils/entitiesToDB.js +1 -0
  32. package/utils/findPath.js +1 -1
  33. package/utils/methodDocumentor.js +71 -23
  34. package/utils/modify.js +13 -15
  35. package/utils/packModificationScript.js +1 -1
  36. package/utils/taskMover.js +309 -0
  37. package/utils/tbScript.js +3 -10
  38. package/utils/tbUtils.js +2 -3
  39. package/utils/testRunner.js +1 -1
  40. package/utils/troubleshootingAdapter.js +1 -3
  41. package/workflows/README.md +0 -3
@@ -0,0 +1,1067 @@
1
+ openapi: 3.0.0
2
+ info:
3
+ title: HYAS Protect API
4
+ description: >
5
+ # Endpoint
6
+
7
+
8
+ The base endpoint is `https://apps.hyas.com/api/protect/ext`, which all of the following REST routes will follow.
9
+
10
+
11
+
12
+ # Authentication
13
+
14
+
15
+ Authentication is performed using X-API-Key header with provided PSK API key on each request
16
+
17
+
18
+ # cURL Example
19
+
20
+
21
+ ```curl --header "X-API-Key: <your API key>" https://apps.hyas.com/api/protect/ext/reports```
22
+ contact: {}
23
+ version: '1.0.0'
24
+ servers:
25
+ - url: https://apps.hyas.com/api/protect/ext
26
+ variables: {}
27
+ paths:
28
+ /aggregates:
29
+ post:
30
+ tags:
31
+ - Overview
32
+ summary: newcastle.protect.top_charts.aggregates
33
+ description: Get count aggregates for the top charts
34
+ operationId: newcastle.protect.top_charts.aggregates
35
+ parameters: []
36
+ requestBody:
37
+ description: The filter used to perform aggregate queries
38
+ content:
39
+ application/json:
40
+ schema:
41
+ allOf:
42
+ - $ref: '#/components/schemas/aggregate_params'
43
+ - description: The filter used to perform aggregate queries
44
+ required: true
45
+ responses:
46
+ '200':
47
+ description: Top Charts
48
+ headers: {}
49
+ content:
50
+ application/json:
51
+ schema:
52
+ $ref: '#/components/schemas/AggregatesResponse'
53
+ deprecated: false
54
+ /bar:
55
+ post:
56
+ tags:
57
+ - Overview
58
+ summary: newcastle.protect.bar_charts.bar
59
+ description: Get bar chart data
60
+ operationId: newcastle.protect.bar_charts.bar
61
+ parameters: []
62
+ requestBody:
63
+ description: The filter used to perform bar chart queries
64
+ content:
65
+ application/json:
66
+ schema:
67
+ allOf:
68
+ - $ref: '#/components/schemas/bar_params'
69
+ - description: The filter used to perform bar chart queries
70
+ required: true
71
+ responses:
72
+ '200':
73
+ description: Bar Chart
74
+ headers: {}
75
+ content:
76
+ application/json:
77
+ schema:
78
+ $ref: '#/components/schemas/BarResponse1'
79
+ deprecated: false
80
+ /histogram:
81
+ post:
82
+ tags:
83
+ - Overview
84
+ summary: newcastle.protect.histograms.histogram
85
+ description: Get histogram data for the real time charts
86
+ operationId: newcastle.protect.histograms.histogram
87
+ parameters: []
88
+ requestBody:
89
+ description: The filter used to perform histogram queries
90
+ content:
91
+ application/json:
92
+ schema:
93
+ allOf:
94
+ - $ref: '#/components/schemas/histogram_params'
95
+ - description: The filter used to perform histogram queries
96
+ required: true
97
+ responses:
98
+ '200':
99
+ description: Historgram
100
+ headers: {}
101
+ content:
102
+ application/json:
103
+ schema:
104
+ $ref: '#/components/schemas/HistogramResponse1'
105
+ deprecated: false
106
+ /summary:
107
+ post:
108
+ tags:
109
+ - Overview
110
+ summary: newcastle.protect.summaries.summary
111
+ description: Get request summaries
112
+ operationId: newcastle.protect.summaries.summary
113
+ parameters: []
114
+ requestBody:
115
+ description: The filter used to perform summary queries
116
+ content:
117
+ application/json:
118
+ schema:
119
+ allOf:
120
+ - $ref: '#/components/schemas/summary_params'
121
+ - description: The filter used to perform summary queries
122
+ required: true
123
+ responses:
124
+ '200':
125
+ description: Summary
126
+ headers: {}
127
+ content:
128
+ application/json:
129
+ schema:
130
+ $ref: '#/components/schemas/SummaryResponse1'
131
+ deprecated: false
132
+ /histogram/artifact:
133
+ post:
134
+ tags:
135
+ - Logs
136
+ summary: newcastle.protect.histograms.histogram_artifact
137
+ description: Get histogram data for the pop out panel timeline chart
138
+ operationId: newcastle.protect.histograms.histogram_artifact
139
+ parameters: []
140
+ requestBody:
141
+ description: The filter used to perform histogram queries
142
+ content:
143
+ application/json:
144
+ schema:
145
+ allOf:
146
+ - $ref: '#/components/schemas/histogram_artifact_params'
147
+ - description: The filter used to perform histogram queries
148
+ required: true
149
+ responses:
150
+ '200':
151
+ description: Flyout Panel Artifact Historgram
152
+ headers: {}
153
+ content:
154
+ application/json:
155
+ schema:
156
+ $ref: '#/components/schemas/HistogramArtifactResponse1'
157
+ deprecated: false
158
+ /logs:
159
+ post:
160
+ tags:
161
+ - Logs
162
+ summary: newcastle.protect.logs.logs
163
+ description: Get logs
164
+ operationId: newcastle.protect.logs.logs
165
+ parameters: []
166
+ requestBody:
167
+ description: The filter used to perform log queries
168
+ content:
169
+ application/json:
170
+ schema:
171
+ allOf:
172
+ - $ref: '#/components/schemas/log_params'
173
+ - description: The filter used to perform log queries
174
+ required: true
175
+ responses:
176
+ '200':
177
+ description: Logs
178
+ headers: {}
179
+ content:
180
+ application/json:
181
+ schema:
182
+ $ref: '#/components/schemas/LogsResponse'
183
+ deprecated: false
184
+ /passthrough:
185
+ post:
186
+ tags:
187
+ - Passthrough
188
+ summary: newcastle.protect.passthrough.passthrough
189
+ description: Get passthrough records
190
+ operationId: newcastle.protect.passthrough.passthrough
191
+ parameters: []
192
+ requestBody:
193
+ description: The filter used to perform passthrough queries
194
+ content:
195
+ application/json:
196
+ schema:
197
+ allOf:
198
+ - $ref: '#/components/schemas/passthrough_params'
199
+ - description: The filter used to perform passthrough queries
200
+ required: true
201
+ responses:
202
+ '200':
203
+ description: Logs
204
+ headers: {}
205
+ content:
206
+ application/json:
207
+ schema:
208
+ $ref: '#/components/schemas/PassthroughResponse1'
209
+ deprecated: false
210
+ /report:
211
+ post:
212
+ tags:
213
+ - Reports
214
+ summary: newcastle.protect.reports.get_report
215
+ description: Get executive report
216
+ operationId: newcastle.protect.reports.get_report
217
+ parameters: []
218
+ requestBody:
219
+ description: The filter used to generate the report
220
+ content:
221
+ application/json:
222
+ schema:
223
+ allOf:
224
+ - $ref: '#/components/schemas/report_params'
225
+ - description: The filter used to generate the report
226
+ required: true
227
+ responses:
228
+ '200':
229
+ description: A report in pdf format
230
+ headers: {}
231
+ content:
232
+ application/pdf:
233
+ schema: {}
234
+ deprecated: false
235
+ /reports:
236
+ post:
237
+ tags:
238
+ - Reports
239
+ summary: newcastle.protect.reports.get_reports
240
+ description: Get list of executive reports
241
+ operationId: newcastle.protect.reports.get_reports
242
+ parameters: []
243
+ responses:
244
+ '200':
245
+ description: Bar Chart
246
+ headers: {}
247
+ content:
248
+ application/json:
249
+ schema:
250
+ $ref: '#/components/schemas/ReportsResponse1'
251
+ deprecated: false
252
+ components:
253
+ schemas:
254
+ aggregate_params:
255
+ title: aggregate_params
256
+ type: object
257
+ properties:
258
+ applied_filters:
259
+ $ref: '#/components/schemas/AppliedFilters9'
260
+ aggregate_response:
261
+ title: aggregate_response
262
+ type: object
263
+ properties:
264
+ query_type:
265
+ type: string
266
+ description: The query type that the aggregate is for
267
+ example: fqdn
268
+ top_items:
269
+ type: array
270
+ items:
271
+ $ref: '#/components/schemas/TopItem'
272
+ description: Top items
273
+ description: Aggregate response
274
+ bar_params:
275
+ title: bar_params
276
+ type: object
277
+ properties:
278
+ applied_filters:
279
+ $ref: '#/components/schemas/AppliedFilters12'
280
+ bar_response:
281
+ title: bar_response
282
+ type: object
283
+ properties:
284
+ query_type:
285
+ type: string
286
+ description: The query type that the aggregate is for
287
+ example: no_answer_queries
288
+ top_items:
289
+ type: array
290
+ items:
291
+ $ref: '#/components/schemas/TopItem1'
292
+ description: Top items
293
+ description: Bar chart response
294
+ histogram_artifact_params:
295
+ title: histogram_artifact_params
296
+ type: object
297
+ properties:
298
+ applied_filters:
299
+ $ref: '#/components/schemas/AppliedFilters22'
300
+ histogram_artifact_response:
301
+ title: histogram_artifact_response
302
+ type: object
303
+ properties:
304
+ days:
305
+ type: integer
306
+ description: The number of days the histogram is for
307
+ format: int32
308
+ query_type:
309
+ type: string
310
+ description: The query type that the histogram is for
311
+ description: Histogram response
312
+ histogram_params:
313
+ title: histogram_params
314
+ type: object
315
+ properties:
316
+ applied_filters:
317
+ $ref: '#/components/schemas/AppliedFilters32'
318
+ histogram_response:
319
+ title: histogram_response
320
+ type: object
321
+ properties:
322
+ query_type:
323
+ type: string
324
+ description: The query type that the aggregate is for
325
+ example: queries
326
+ top_items:
327
+ type: array
328
+ items:
329
+ $ref: '#/components/schemas/TopItem'
330
+ description: Top items
331
+ description: Histogram response
332
+ log_params:
333
+ title: log_params
334
+ type: object
335
+ properties:
336
+ applied_filters:
337
+ type: array
338
+ items:
339
+ $ref: '#/components/schemas/AppliedFilters4'
340
+ description: ''
341
+ log_params_query_type_values:
342
+ title: log_params_query_type_values
343
+ enum:
344
+ - A
345
+ - A6
346
+ - AAAA
347
+ - AFSDB
348
+ - AMTRELAY
349
+ - ANY
350
+ - APL
351
+ - ATMA
352
+ - AVC
353
+ - AXFR
354
+ - CAA
355
+ - CDS
356
+ - CDNSKEY
357
+ - CERT
358
+ - CNAME
359
+ - CSYNC
360
+ - DHCID
361
+ - DLV
362
+ - DNAME
363
+ - DNSKEY
364
+ - DOA
365
+ - DS
366
+ - EID
367
+ - EUI48
368
+ - EUI64
369
+ - GID
370
+ - GPOS
371
+ - HINFO
372
+ - HIP
373
+ - HTTPS
374
+ - IPSECKEY
375
+ - ISDN
376
+ - IXFR
377
+ - KEY
378
+ - KX
379
+ - L32
380
+ - L64
381
+ - LP
382
+ - LOC
383
+ - MAILA
384
+ - MAILB
385
+ - MB
386
+ - MD
387
+ - MF
388
+ - MG
389
+ - MINFO
390
+ - MR
391
+ - MX
392
+ - NAPTR
393
+ - NID
394
+ - NIMLOC
395
+ - NINFO
396
+ - NS
397
+ - NSAP
398
+ - NSAP-PTR
399
+ - NSEC
400
+ - NSEC3
401
+ - NSEC3PARAM
402
+ - NXT
403
+ - OPENPGPKEY
404
+ - OPT
405
+ - PTR
406
+ - PX
407
+ - RKEY
408
+ - RP
409
+ - RRSIG
410
+ - RT
411
+ - RV
412
+ - SIG
413
+ - SINK
414
+ - SMIMEA
415
+ - SOA
416
+ - SPF
417
+ - SSHFP
418
+ - SVCB
419
+ - TA
420
+ - TALINK
421
+ - TKEY
422
+ - TLSA
423
+ - TSIG
424
+ - TXT
425
+ - UID
426
+ - UINFO
427
+ - Unassigned
428
+ - UNSPEC
429
+ - URI
430
+ - WKS
431
+ - X25
432
+ - ZONEMD
433
+ type: string
434
+ log_params_reputation_values:
435
+ title: log_params_reputation_values
436
+ enum:
437
+ - blocked
438
+ - malicious
439
+ - suspicious
440
+ - permitted
441
+ type: string
442
+ log_response:
443
+ title: log_response
444
+ type: object
445
+ properties:
446
+ aggregates:
447
+ $ref: '#/components/schemas/Aggregates2'
448
+ total_count:
449
+ type: integer
450
+ description: total count of records without pagination
451
+ format: int32
452
+ example: 197
453
+ description: Summary response
454
+ passthrough_params:
455
+ title: passthrough_params
456
+ type: object
457
+ properties:
458
+ applied_filters:
459
+ type: array
460
+ items:
461
+ $ref: '#/components/schemas/AppliedFilters5'
462
+ description: ''
463
+ passthrough_response:
464
+ title: passthrough_response
465
+ type: object
466
+ properties:
467
+ logs:
468
+ type: array
469
+ items:
470
+ $ref: '#/components/schemas/Log'
471
+ description: Collection of passthrough records
472
+ total_count:
473
+ type: integer
474
+ description: total count of records without pagination
475
+ format: int32
476
+ example: 197
477
+ description: Passthrough response
478
+ query:
479
+ title: query
480
+ type: object
481
+ properties:
482
+ applied_filters:
483
+ type: object
484
+ description: A filter object specific to the query endpoint.
485
+ report_params:
486
+ title: report_params
487
+ type: object
488
+ properties:
489
+ applied_filters:
490
+ $ref: '#/components/schemas/AppliedFilters62'
491
+ reports_response:
492
+ title: reports_response
493
+ type: object
494
+ properties:
495
+ reports:
496
+ type: array
497
+ items:
498
+ $ref: '#/components/schemas/Report'
499
+ description: Collection of reports
500
+ total_count:
501
+ type: integer
502
+ description: The total report count
503
+ format: int32
504
+ description: List of reports and count
505
+ summary_params:
506
+ title: summary_params
507
+ type: object
508
+ properties:
509
+ applied_filters:
510
+ $ref: '#/components/schemas/AppliedFilters72'
511
+ summary_response:
512
+ title: summary_response
513
+ type: object
514
+ properties:
515
+ day_count:
516
+ type: integer
517
+ format: int32
518
+ example: 1
519
+ query_type:
520
+ type: string
521
+ description: The query type that the aggregate is for
522
+ example: blocked
523
+ total_count:
524
+ type: integer
525
+ format: int32
526
+ example: 0
527
+ description: Summary response
528
+ Aggregates:
529
+ title: Aggregates
530
+ type: object
531
+ properties:
532
+ queries:
533
+ type: array
534
+ items:
535
+ $ref: '#/components/schemas/Query2'
536
+ description: Collection of query type codes and counts
537
+ responses:
538
+ type: array
539
+ items:
540
+ $ref: '#/components/schemas/Response'
541
+ description: Collection of response codes and counts
542
+ description: Aggregates for the filter drop downs
543
+ AppliedFilters:
544
+ title: AppliedFilters
545
+ type: object
546
+ properties:
547
+ query_type:
548
+ $ref: '#/components/schemas/QueryType'
549
+ top_count:
550
+ type: integer
551
+ description: How many aggregate values to get
552
+ format: int32
553
+ example: 25
554
+ description: A filter object specific to the query endpoint.
555
+ AppliedFilters1:
556
+ title: AppliedFilters1
557
+ type: object
558
+ properties:
559
+ query_type:
560
+ $ref: '#/components/schemas/QueryType1'
561
+ description: A filter object specific to the query endpoint.
562
+ AppliedFilters2:
563
+ title: AppliedFilters2
564
+ type: object
565
+ properties:
566
+ artifact:
567
+ type: string
568
+ description: The artifact
569
+ example: google.com
570
+ artifact_type:
571
+ $ref: '#/components/schemas/ArtifactType'
572
+ end_date:
573
+ type: string
574
+ description: The end window
575
+ example: 2021-09-29
576
+ interval:
577
+ type: string
578
+ description: The optional interval for the aggregate
579
+ example: 1d
580
+ query_type:
581
+ $ref: '#/components/schemas/QueryType2'
582
+ start_date:
583
+ type: string
584
+ description: The start window
585
+ example: 2021-09-22
586
+ description: A filter object specific to the query endpoint.
587
+ AppliedFilters3:
588
+ title: AppliedFilters3
589
+ type: object
590
+ properties:
591
+ query_type:
592
+ $ref: '#/components/schemas/QueryType3'
593
+ description: A filter object specific to the query endpoint.
594
+ AppliedFilters4:
595
+ title: AppliedFilters4
596
+ type: object
597
+ properties:
598
+ exclude:
599
+ type: boolean
600
+ description: Flag to indicate if the filter value should be excluded
601
+ example: false
602
+ id:
603
+ $ref: '#/components/schemas/Id'
604
+ isRange:
605
+ type: boolean
606
+ description: Flag to indicate if the filter value is a range
607
+ example: false
608
+ partial:
609
+ type: boolean
610
+ description: If the filter should do partial matching
611
+ example: true
612
+ rangeValue: {}
613
+ value:
614
+ type: string
615
+ description: The filter value
616
+ nullable: true
617
+ example: google
618
+ AppliedFilters5:
619
+ title: AppliedFilters5
620
+ type: object
621
+ properties:
622
+ exclude:
623
+ type: boolean
624
+ description: Flag to indicate if the filter value should be excluded
625
+ example: false
626
+ id:
627
+ $ref: '#/components/schemas/Id1'
628
+ isRange:
629
+ type: boolean
630
+ description: Flag to indicate if the filter value is a range
631
+ example: true
632
+ partial:
633
+ type: boolean
634
+ description: If the filter should do partial matching
635
+ example: false
636
+ rangeValue: {}
637
+ value:
638
+ type: string
639
+ description: The filter value
640
+ nullable: true
641
+ AppliedFilters6:
642
+ title: AppliedFilters6
643
+ type: object
644
+ properties:
645
+ report_id:
646
+ type: string
647
+ description: ID (uuid) of the report
648
+ example: 00000000-00000000-00000000-00000000
649
+ description: A filter object specific to the query endpoint.
650
+ AppliedFilters7:
651
+ title: AppliedFilters7
652
+ type: object
653
+ properties:
654
+ query_type:
655
+ $ref: '#/components/schemas/QueryType4'
656
+ description: A filter object specific to the query endpoint.
657
+ ArtifactType:
658
+ title: ArtifactType
659
+ enum:
660
+ - domain.keyword
661
+ - domain_2tld.keyword
662
+ - nameserver_tld.keyword
663
+ - nameserver.keyword
664
+ - nameserver_ip.keyword
665
+ - response.a.keyword
666
+ - response.aaaa.keyword
667
+ - response.cname.keyword
668
+ - response.cname_2tld.keyword
669
+ type: string
670
+ description: The artifact type
671
+ example: domain.keyword
672
+ Id:
673
+ title: Id
674
+ enum:
675
+ - domain
676
+ - domain_2tld
677
+ - domain_tld
678
+ - domain_age
679
+ - query_type
680
+ - response_code
681
+ - ttl
682
+ - nameserver
683
+ - nameserver_2tld
684
+ - nameserver_tld
685
+ - nameserver_ip
686
+ - a_record
687
+ - aaaa_record
688
+ - c_name
689
+ - c_name_2tld
690
+ - c_name_tld
691
+ - registrar
692
+ - reputation
693
+ - datetime
694
+ type: string
695
+ description: The filter id
696
+ example: domain
697
+ Id1:
698
+ title: Id1
699
+ enum:
700
+ - last_seen
701
+ - artifact
702
+ - hyas_status
703
+ - alt_status
704
+ - query_count
705
+ type: string
706
+ description: The filter id
707
+ example: last_seen
708
+ Log:
709
+ title: Log
710
+ type: object
711
+ properties:
712
+ alt_status:
713
+ type: string
714
+ description: The status of the request made through ALT [blocked, allow]
715
+ example: allow
716
+ artifact:
717
+ type: string
718
+ description: The artifact looked up
719
+ example: google.com
720
+ hyas_status:
721
+ type: string
722
+ description: The status of the request made through HYAS [blocked, allow]
723
+ example: blocked
724
+ last_seen:
725
+ type: string
726
+ description: The most recent query for the artifact
727
+ example: 2021-11-05T05:00:00
728
+ query_count:
729
+ type: integer
730
+ description: The aggregated count of how many times the artifact was looked up, limited to the current params
731
+ format: int32
732
+ example: 100
733
+ Query2:
734
+ title: Query2
735
+ type: object
736
+ properties:
737
+ count:
738
+ type: integer
739
+ description: Query type count
740
+ format: int32
741
+ example: 2058
742
+ key:
743
+ type: string
744
+ description: Query type key
745
+ example: AAAA
746
+ name:
747
+ type: string
748
+ description: Query type display name
749
+ example: AAAA
750
+ description: Query type
751
+ QueryType:
752
+ title: QueryType
753
+ enum:
754
+ - domain
755
+ - fqdn
756
+ - country
757
+ - tld
758
+ - registrar
759
+ type: string
760
+ description: The type of aggregate query to perform
761
+ QueryType1:
762
+ title: QueryType1
763
+ enum:
764
+ - block_queries
765
+ - no_answer_queries
766
+ - tor_prox_vpn_queries
767
+ - suspicious_nameserver_queries
768
+ type: string
769
+ description: The type of bar chart query to perform
770
+ QueryType2:
771
+ title: QueryType2
772
+ enum:
773
+ - queries
774
+ - queries_over_day
775
+ - queries_over_hour
776
+ type: string
777
+ description: The type of query
778
+ example: queries
779
+ QueryType3:
780
+ title: QueryType3
781
+ enum:
782
+ - queries
783
+ - blocked_queries
784
+ type: string
785
+ description: The type of histogram query to perform
786
+ QueryType4:
787
+ title: QueryType4
788
+ enum:
789
+ - total
790
+ - blocked
791
+ - indicators
792
+ type: string
793
+ description: The type of summary query to perform
794
+ RangeValue:
795
+ title: RangeValue
796
+ type: object
797
+ properties:
798
+ end:
799
+ type: string
800
+ description: The range end value
801
+ example: 2021-09-24T01:21:58.283Z
802
+ start:
803
+ type: string
804
+ description: The range start value
805
+ example: 2021-09-17T01:21:58.283Z
806
+ Report:
807
+ title: Report
808
+ type: object
809
+ properties:
810
+ client_id:
811
+ type: string
812
+ description: Client ID
813
+ datetime:
814
+ type: string
815
+ description: Report generation datetime
816
+ datetime_end:
817
+ type: string
818
+ description: Report end date
819
+ datetime_start:
820
+ type: string
821
+ description: Report start date
822
+ report_id:
823
+ type: string
824
+ description: Report ID
825
+ description: Report
826
+ Response:
827
+ title: Response
828
+ type: object
829
+ properties:
830
+ count:
831
+ type: integer
832
+ description: Response code count
833
+ format: int32
834
+ example: 8980
835
+ key:
836
+ type: string
837
+ description: Response code key
838
+ example: NoError
839
+ name:
840
+ type: string
841
+ description: Response code display name
842
+ example: NoError
843
+ description: Response codes
844
+ TopItem:
845
+ title: TopItem
846
+ type: object
847
+ properties:
848
+ current_doc_count:
849
+ type: integer
850
+ format: int32
851
+ example: 9116
852
+ key:
853
+ type: string
854
+ example: debug.opendns.com
855
+ previous_doc_count:
856
+ type: integer
857
+ format: int32
858
+ example: 7151
859
+ TopItem1:
860
+ title: TopItem1
861
+ type: object
862
+ properties:
863
+ current_doc_count:
864
+ type: integer
865
+ format: int32
866
+ example: 369
867
+ key:
868
+ type: string
869
+ example: 2021-09-20 00:00:00
870
+ previous_doc_count:
871
+ type: integer
872
+ format: int32
873
+ example: 303
874
+ previous_key:
875
+ type: string
876
+ example: 2021-09-13 00:00:00
877
+ AggregatesResponse:
878
+ title: AggregatesResponse
879
+ type: object
880
+ properties:
881
+ query_type:
882
+ type: string
883
+ description: The query type that the aggregate is for
884
+ example: fqdn
885
+ top_items:
886
+ type: array
887
+ items:
888
+ $ref: '#/components/schemas/TopItem'
889
+ description: Top items
890
+ Aggregates2:
891
+ title: Aggregates2
892
+ type: object
893
+ properties:
894
+ queries:
895
+ type: array
896
+ items:
897
+ $ref: '#/components/schemas/Query2'
898
+ description: Collection of query type codes and counts
899
+ responses:
900
+ type: array
901
+ items:
902
+ $ref: '#/components/schemas/Response'
903
+ description: Collection of response codes and counts
904
+ AppliedFilters9:
905
+ title: AppliedFilters9
906
+ type: object
907
+ properties:
908
+ query_type:
909
+ $ref: '#/components/schemas/QueryType'
910
+ top_count:
911
+ type: integer
912
+ description: How many aggregate values to get
913
+ format: int32
914
+ example: 25
915
+ AppliedFilters12:
916
+ title: AppliedFilters12
917
+ type: object
918
+ properties:
919
+ query_type:
920
+ $ref: '#/components/schemas/QueryType1'
921
+ AppliedFilters22:
922
+ title: AppliedFilters22
923
+ type: object
924
+ properties:
925
+ artifact:
926
+ type: string
927
+ description: The artifact
928
+ example: google.com
929
+ artifact_type:
930
+ $ref: '#/components/schemas/ArtifactType'
931
+ end_date:
932
+ type: string
933
+ description: The end window
934
+ example: 2021-09-29
935
+ interval:
936
+ type: string
937
+ description: The optional interval for the aggregate
938
+ example: 1d
939
+ query_type:
940
+ $ref: '#/components/schemas/QueryType2'
941
+ start_date:
942
+ type: string
943
+ description: The start window
944
+ example: 2021-09-22
945
+ AppliedFilters32:
946
+ title: AppliedFilters32
947
+ type: object
948
+ properties:
949
+ query_type:
950
+ $ref: '#/components/schemas/QueryType3'
951
+ AppliedFilters62:
952
+ title: AppliedFilters62
953
+ type: object
954
+ properties:
955
+ report_id:
956
+ type: string
957
+ description: ID (uuid) of the report
958
+ example: 00000000-00000000-00000000-00000000
959
+ AppliedFilters72:
960
+ title: AppliedFilters72
961
+ type: object
962
+ properties:
963
+ query_type:
964
+ $ref: '#/components/schemas/QueryType4'
965
+ BarResponse1:
966
+ title: BarResponse1
967
+ type: object
968
+ properties:
969
+ query_type:
970
+ type: string
971
+ description: The query type that the aggregate is for
972
+ example: no_answer_queries
973
+ top_items:
974
+ type: array
975
+ items:
976
+ $ref: '#/components/schemas/TopItem1'
977
+ description: Top items
978
+ HistogramArtifactResponse1:
979
+ title: HistogramArtifactResponse1
980
+ type: object
981
+ properties:
982
+ days:
983
+ type: integer
984
+ description: The number of days the histogram is for
985
+ format: int32
986
+ query_type:
987
+ type: string
988
+ description: The query type that the histogram is for
989
+ HistogramResponse1:
990
+ title: HistogramResponse1
991
+ type: object
992
+ properties:
993
+ query_type:
994
+ type: string
995
+ description: The query type that the aggregate is for
996
+ example: queries
997
+ top_items:
998
+ type: array
999
+ items:
1000
+ $ref: '#/components/schemas/TopItem'
1001
+ description: Top items
1002
+ LogsResponse:
1003
+ title: LogsResponse
1004
+ type: object
1005
+ properties:
1006
+ aggregates:
1007
+ $ref: '#/components/schemas/Aggregates2'
1008
+ total_count:
1009
+ type: integer
1010
+ description: total count of records without pagination
1011
+ format: int32
1012
+ example: 197
1013
+ PassthroughResponse1:
1014
+ title: PassthroughResponse1
1015
+ type: object
1016
+ properties:
1017
+ logs:
1018
+ type: array
1019
+ items:
1020
+ $ref: '#/components/schemas/Log'
1021
+ description: Collection of passthrough records
1022
+ total_count:
1023
+ type: integer
1024
+ description: total count of records without pagination
1025
+ format: int32
1026
+ example: 197
1027
+ ReportsResponse1:
1028
+ title: ReportsResponse1
1029
+ type: object
1030
+ properties:
1031
+ reports:
1032
+ type: array
1033
+ items:
1034
+ $ref: '#/components/schemas/Report'
1035
+ description: Collection of reports
1036
+ total_count:
1037
+ type: integer
1038
+ description: The total report count
1039
+ format: int32
1040
+ SummaryResponse1:
1041
+ title: SummaryResponse1
1042
+ type: object
1043
+ properties:
1044
+ day_count:
1045
+ type: integer
1046
+ format: int32
1047
+ example: 1
1048
+ query_type:
1049
+ type: string
1050
+ description: The query type that the aggregate is for
1051
+ example: blocked
1052
+ total_count:
1053
+ type: integer
1054
+ format: int32
1055
+ example: 0
1056
+ securitySchemes:
1057
+ external_auth:
1058
+ type: apiKey
1059
+ name: X-API-Key
1060
+ in: header
1061
+ security:
1062
+ - external_auth: []
1063
+ tags:
1064
+ - name: Overview
1065
+ - name: Logs
1066
+ - name: Passthrough
1067
+ - name: Reports