-
Notifications
You must be signed in to change notification settings - Fork 2
/
services.yaml
5391 lines (5389 loc) · 162 KB
/
services.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
swagger: '2.0'
info:
version: 'v1'
title: 'Services API'
contact:
email: [email protected]
description: |
Main OverOps API.
The REST API layer enables OverOps admins and users to perform and automate all actions
provided by the OverOps UI available at https://app.overops.com (or On-premises equivalent URL) via a platform independent programmatic interface.
A wrapper Java client API library that leverages these APIs for convenience by
Java and Scala developers is available at https://github.com/takipi/api-client and on Maven Central.
All calls must be authenticated using one of the following methods:
1. Using `x-api-key` header (To generate the token, go to `Settings` --> `Account Settings` in the OverOps App). This is the recommended method.
2. Using Basic auth with `username:password` combo.
securityDefinitions:
basicAuth:
type: basic
ApiKeyAuth:
type: apiKey
in: header
name: X-API-KEY
security:
- basicAuth: []
- ApiKeyAuth: []
host: api.overops.com
basePath: /api/v1
tags:
- name: General
description: Fetch general information about provisioned OverOps enviroments
- name: Events
description: Fetch and manipulate OverOps Automated Root Cause Events and Snapshots
- name: Views
description: Fetch and manipulate grouping of events (i.e. Views) according to attribute sets (e.g. "uncaught exceptions", "errors from package com.acme")
- name: Labels
description: Fetch and manipulate events labels
- name: Alerts
description: Fetch and manipulate alerting rules for detecting and disseminating anomalies such as introduction of new events and regressions to different communication channels (e.g. Email, Jira, Slack, Uder defined Functions).
- name: Timers
description: Fetch and manipulate OverOps Timers - bottleneck detection and performance diagnosis
- name: Publish Metrics
description: Fetch and manipulate dynamic data exported to StatsD, which enables using a variety of third-party tools, providing control over application data from OverOps.
- name: System Metrics
description: Fetch system metrics
- name: View Metrics
description: Fetch volumetric time series data about observed code events within OverOps monitored applications filtered by server cluster, application and deployments.
- name: Categories
description: Fetch and manipulate grouping of views into logical categories (e.g "CI/CD", "Favorites")
- name: UDFs
description: Fetch and manipulate User Defined Functinos - OverOps extensions using Lambdas.
- name: Team Management
description: APIs related to team management of a service
- name: Data Redaction
description: Fetch and manipulate data redaction of PII with target environments.
- name: Code Redaction
description: Fetch and manipulate code filters to include / exclude 3rd party and utility classes from OverOps analysis and data capture.
- name: Environment Management
description: Fetch monitoring status and control OverOps Agents and Collectors
schemes:
- "https"
paths:
#General
/services:
get:
tags:
- General
summary: "List all environments"
description: "List all environments accessible to the calling user"
parameters:
- in: query
name: name
description: Environment key name
type: string
responses:
200:
description: List of all accessible environments to the calling user
schema:
type: object
properties:
services:
type: array
description: list of environment
items:
$ref: "#/definitions/EnvironmentWithRole"
401:
$ref: "#/responses/UnauthorizedError"
put:
tags:
- General
summary: Generate a new environment key
description: "Defines a new environment"
parameters:
- in: body
name: name
schema:
type: object
properties:
name:
type: string
responses:
200:
description: New environment key properties
schema:
$ref: "#/definitions/EnvironmentBasic"
401:
$ref: "#/responses/UnauthorizedError"
/services/{env_id}:
get:
tags:
- General
summary: "Get information about an environment"
description: "Get information about an environment"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
responses:
200:
description: Environment data
schema:
type: object
properties:
services:
type: array
description: Data for a single environment
items:
$ref: "#/definitions/EnvironmentBasic"
post:
tags:
- General
summary: Rename an environment
description: "Rename an environment. This call is allowed for admins only"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: body
name: name
schema:
properties:
name:
type: string
responses:
200:
description: Updated environment properties
schema:
$ref: "#/definitions/EnvironmentBasic"
401:
$ref: "#/responses/UnauthorizedError"
/services/{env_id}/settings:
get:
tags:
- General
summary: "Get environment settings"
description: "Get environment settings"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
responses:
200:
$ref: "#/responses/TBD"
401:
$ref: "#/responses/UnauthorizedError"
/services/{env_id}/servers:
get:
tags:
- General
summary: "List servers"
description: "List all (or just active) servers that were used to monitor applications.
These can be either the IP/Hostname of a host or a cluster identifier. [How to name your Server](https://doc.overops.com/docs/naming-your-application-server-deployment)"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: query
name: active
description: Show only active servers
type: boolean
responses:
200:
description: List of servers
schema:
properties:
servers:
type: array
items:
$ref: "#/definitions/Server"
401:
$ref: "#/responses/UnauthorizedError"
/services/{env_id}/applications:
get:
tags:
- General
summary: "List applications"
description: "List all (or just active) applications that were used to monitor applications.
These can be either an application name, an integration suite name or a specific instance. [How to name your Application](https://doc.overops.com/docs/naming-your-application-server-deployment)"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: query
name: active
description: Show only active applications
type: boolean
responses:
200:
description: List of applications
schema:
properties:
applications:
type: array
items:
$ref: "#/definitions/Application"
401:
$ref: "#/responses/UnauthorizedError"
/services/{env_id}/deployments:
get:
tags:
- General
summary: "List deployments"
description: "List all (or just active) deployments that were monitoring in the environment.
These can be either the Jenkins build number, Git commit, Maven version, etc. [How to tag your deployment](https://doc.overops.com/docs/naming-your-application-server-deployment)"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: query
name: active
description: Show only active deployments
type: boolean
responses:
200:
description: List of deployments
schema:
properties:
deployments:
type: array
items:
$ref: "#/definitions/Deployment"
401:
$ref: "#/responses/UnauthorizedError"
/services/{env_id}/settings/storage-settings:
get:
tags:
- General
summary: "Get storage settings of an environment"
description: "In Hybrid OverOps installation, data collected from your JVMs is locally redacted for PII and encrypted using your private encryption key before it is stored in a server that resides behind your firewall. Use this API call to fetch the current settings of your storage server. Visit OverOps [On-Premises Data Installation](https://doc.overops.com/docs/hybrid-installation) for full information"
parameters:
- in: path
name: env_id
description: Environment to use
type: string
required: true
responses:
200:
description: Storage settings
schema:
$ref: "#/definitions/StorageSettings"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
post:
tags:
- General
summary: "Set storage settings for a service"
description: "In Hybrid OverOps installation, data collected from your JVMs is locally redacted for PII and encrypted using your private encryption key before it is stored in a server that resides behind your firewall. This API call allows you to configure your storage server as part of your Hybrid OverOps setup. Visit OverOps [On-Premises Data Installation](https://doc.overops.com/docs/hybrid-installation) for full information"
parameters:
- in: path
name: env_id
description: Environment to use
type: string
required: true
- in: body
name: storage_settings
schema:
$ref: "#/definitions/StorageSettings"
required: true
responses:
200:
$ref: "#/responses/OK"
400:
$ref: "#/responses/BadRequestError"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
/services/{env_id}/settings/advanced-settings:
get:
tags:
- General
summary: "Get advanced settings for an environment"
description: "Get advanced settings for an environment"
parameters:
- in: path
name: env_id
description: Environment to use
type: string
required: true
responses:
200:
description: Environment advanced settings
schema:
$ref: "#/definitions/EnvironmentAdvancedSettings"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
post:
tags:
- General
summary: "Set advanced settings for an environment"
description: "Set advanced settings for an environment"
parameters:
- in: path
name: env_id
description: Environment to use
type: string
required: true
- in: body
name: advanced_settings
schema:
$ref: "#/definitions/EnvironmentAdvancedSettings"
required: true
responses:
200:
$ref: "#/responses/OK"
400:
$ref: "#/responses/BadRequestError"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
/services/{env_id}/settings/reliability-settings:
get:
tags:
- General
summary: "Fetch reliability settings JSON"
description: "Fetch reliability settings JSON which defines all the thresholds and preferences for OverOps reliability tools - Grafana dashboards, Jenkins plugin, etc."
parameters:
- in: path
name: env_id
description: Environment to use
type: string
required: true
responses:
200:
description: Reliability dashboards settings JSON
schema:
type: object
properties:
reliability_settings_json:
type: string
format: binary
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
post:
tags:
- General
summary: "Upload reliability settings JSON"
description: "Upload reliability settings JSON which defines all the thresholds and preferences for OverOps reliability tools - Grafana dashboards, Jenkins plugin, etc."
parameters:
- in: path
name: env_id
description: Environment to use
type: string
required: true
- in: body
name: reliability_settings_json
schema:
type: object
properties:
reliability_settings_json:
type: string
format: binary
required: true
responses:
200:
$ref: "#/responses/OK"
400:
$ref: "#/responses/BadRequestError"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
#Events
/services/{env_id}/events/force-snapshots:
post:
tags:
- Events
summary: "Batch Force events snapshots"
description: "Force next snapshot for multiple events"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: body
name: items
description: list of events to force snapshot on next time when each of them occurs
schema:
type: object
properties:
items:
type: array
items:
type: object
properties:
event_id:
type: string
example: 42
responses:
200:
$ref: "#/responses/OK"
400:
$ref: "#/responses/BadRequestError"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
/services/{env_id}/events/{event_id}:
get:
tags:
- Events
summary: "Fetch event data"
description: "Fetch event data"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: path
name: event_id
description: Event to use
type: string
required: true
responses:
200:
description: Event data
schema:
$ref: "#/definitions/Event"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
/services/{env_id}/events/{event_id}/inbox:
post:
tags:
- Labels
summary: "Move to Inbox"
description: "Move the specified event into Inbox"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: path
name: event_id
description: Event to use
type: string
required: true
- in: query
name: force
description: Force adding labels, even if it exists
type: boolean
default: false
- in: query
name: handle_similar_events
description: Change the labels on all similar events
type: boolean
default: true
responses:
200:
$ref: "#/responses/OK"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
/services/{env_id}/events/{event_id}/delete:
post:
tags:
- Labels
summary: "Move to Trash"
description: "Move the specified event into Trash"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: path
name: event_id
description: Event to use
type: string
required: true
- in: query
name: force
description: Force adding labels, even if it exists
type: boolean
default: false
- in: query
name: handle_similar_events
description: Change the labels on all similar events
type: boolean
default: true
responses:
200:
$ref: "#/responses/OK"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
/services/{env_id}/events/{event_id}/resolve:
post:
tags:
- Labels
summary: "Mark as resolved"
description: "Marks the specified event as resolved"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: path
name: event_id
description: Event to use
type: string
required: true
- in: query
name: force
description: Force adding labels, even if it exists
type: boolean
default: false
- in: query
name: handle_similar_events
description: Change the labels on all similar events
type: boolean
default: true
responses:
200:
$ref: "#/responses/OK"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
/services/{env_id}/events/{event_id}/snapshot:
get:
tags:
- Events
summary: "Fetch event snapshot"
description: "Fetch event snapshot.
Fetches the last relevant snapshot for the specific filters provided.
All filters are optional."
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: path
name: event_id
description: Event to use
type: string
required: true
- in: query
name: from
type: string
description: Start time of requested events. Date in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZ)
required: true
- in: query
name: to
type: string
description: Start time of requested events. Date in ISO8601 format (yyyy-MM-ddTHH:mm:ss.SSSZ)
required: true
- in: query
name: server
type: string
description: Server(s) added to the filter
- in: query
name: app
type: string
description: Application(s) added to the filter
- in: query
name: deployment
type: string
description: Deployment(s) added to the filter
- in: query
name: similar_event_id
type: string
description: Event(s) added to the filter
responses:
200:
description: Link to snapshot
schema:
type: object
properties:
link:
type: string
example: "https://app.overops.com/tale.html?event=Ux42fkaa--"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
/services/{env_id}/events/{event_id}/snapshots:
delete:
tags:
- Events
summary: "Delete all event snapshots"
description: "Removes all existing snapshots for an event. All snapshots will be permanently deleted. Event statistics will be kept."
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: path
name: event_id
description: Event to use
type: string
required: true
responses:
200:
$ref: "#/responses/OK"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
/services/{env_id}/events/{event_id}/force-snapshot:
post:
tags:
- Events
summary: Force Event Snapshot
description: Force snapshot for the next time the event occurs
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: path
name: event_id
description: Event to use
type: string
required: true
responses:
200:
$ref: "#/responses/OK"
401:
$ref: "#/responses/UnauthorizedError"
/services/{env_id}/events/{event_id}/actions:
get:
tags:
- Events
summary: "Fetch event actions"
description: "Fetch event actions"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: path
name: event_id
description: Event to use
type: string
required: true
- in: query
name: type
description: Filter by specific type
type: string
responses:
200:
description: Event actions
schema:
type: array
items:
$ref: "#/definitions/EventAction"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
#Labels
/services/{env_id}/labels:
get:
tags:
- Labels
summary: "List labels"
description: "List all existing labels"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
responses:
200:
description: List of labels
schema:
type: object
properties:
labels:
type: array
items:
$ref: "#/definitions/Label"
401:
$ref: "#/responses/UnauthorizedError"
post:
tags:
- Labels
summary: "Create new label"
description: "Create a new label. Labels are used to tag events with custom classifications. Labels help support use cases such as classifying an event as severe / regressed, assign it to a specific developer or team (e.g prod-team-A) or any other user defined categorization."
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: body
name: label
description: Single label
schema:
$ref: "#/definitions/Label"
responses:
200:
$ref: "#/responses/OK"
400:
$ref: "#/responses/BadRequestError"
401:
$ref: "#/responses/UnauthorizedError"
409:
$ref: "#/responses/Conflict"
/services/{env_id}/events/labels:
post:
tags:
- Labels
summary: "Batch Add/Remove labels"
description: "Append/Detach labels to/from events"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: query
name: force
description: Force adding labels, even if it exists
type: boolean
default: false
- in: query
name: handle_similar_events
description: Change the labels on all similar events
type: boolean
default: true
- in: body
name: item
description: list of events and label names to append/detach
schema:
type: object
properties:
items:
type: array
items:
type: object
properties:
event_id:
type: string
example: 42
add:
type: array
items:
type: string
example: "Critical"
remove:
type: array
items:
type: string
example: "Low"
responses:
200:
$ref: "#/responses/OK"
400:
$ref: "#/responses/BadRequestError"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
/services/{env_id}/events/{event_id}/labels:
post:
tags:
- Labels
summary: "Add/Remove labels"
description: "Append and remove label(s) from an event"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: path
name: event_id
description: Event to use
type: string
required: true
- in: query
name: force
description: Force adding labels, even if it exists
type: boolean
default: false
- in: query
name: handle_similar_events
description: Change the labels on all similar events
type: boolean
default: true
- in: body
name: item
description: list of label names to add / remove
schema:
type: object
properties:
add:
type: array
items:
type: string
example: "Critical"
remove:
type: array
items:
type: string
example: "Low"
responses:
200:
$ref: "#/responses/OK"
400:
$ref: "#/responses/BadRequestError"
401:
$ref: "#/responses/UnauthorizedError"
404:
$ref: "#/responses/NotFoundError"
#Views
/services/{env_id}/views:
get:
tags:
- Views
summary: "List views"
description: "List views"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
responses:
200:
description: List of views including basic info about each view.
schema:
type: object
properties:
views:
type: array
items:
$ref: "#/definitions/ViewBasic"
401:
$ref: "#/responses/UnauthorizedError"
post:
tags:
- Views
summary: "Create view"
description: "Create view"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: body
name: view
description: Single view properties
schema:
$ref: "#/definitions/ViewFull"
responses:
200:
$ref: "#/responses/OK"
400:
$ref: "#/responses/BadRequestError"
409:
$ref: "#/responses/Conflict"
401:
$ref: "#/responses/UnauthorizedError"
/services/{env_id}/views/{view_id}:
get:
tags:
- Views
summary: "Get view properties"
description: "Get full list of view properties"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: path
name: view_id
description: View to use
type: string
required: true
responses:
200:
description: Full list of view properties
schema:
type: object
properties:
views:
type: array
items:
type: object
description: Single view full properties
properties:
id:
type: string
example: P12
name:
type: string
example: DB Errors
description:
type: string
example: This is a DB Errors View
shared:
type: boolean
example: false
admin:
type: boolean
description: TBD - NOT YET IMPLEMENTED
example: true
default:
type: boolean
description: TBD - NOT YET IMPLEMENTED
example: false
filters:
$ref: "#/definitions/Filter"
401:
$ref: "#/responses/UnauthorizedError"
403:
$ref: "#/responses/ForbiddenError"
404:
$ref: "#/responses/NotFoundError"
post:
tags:
- Views
summary: "Edit view data"
description: "Edit view data"
parameters:
- in: path
name: env_id
description: Environment ID to use (e.g. S1234)
type: string
required: true
- in: path
name: view_id
description: View to use
type: string
required: true
- in: body
name: view
description: Single view properties
schema:
$ref: "#/definitions/ViewFull"
responses:
200:
$ref: "#/responses/OK"
401:
$ref: "#/responses/UnauthorizedError"
403:
$ref: "#/responses/ForbiddenError"
404:
$ref: "#/responses/NotFoundError"
delete:
tags:
- Views
summary: "Delete view"