-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
17843 lines (17843 loc) · 688 KB
/
openapi.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
openapi: 3.0.1
x-speakeasy-test: true
info:
title: FireHydrant API
version: 0.0.1
servers:
- url: https://api.firehydrant.io/
security:
- api_key: []
tags:
- name: Incidents
description: Operations related to Incidents
- name: Account Settings
description: Operations related to Account Settings
- name: Incident Settings
description: Operations related to Incident Settings
- name: Alerts
description: Operations related to Alerts
- name: Services
description: Operations related to Services
- name: Environments
description: Operations related to Environments
- name: Functionalities
description: Operations related to Functionalities
- name: Teams
description: Operations related to Teams
- name: Users
description: Operations related to Users
- name: Changes
description: Operations related to Changes
- name: Runbooks
description: Operations related to Runbooks
- name: Tasks
description: Operations related to Tasks
- name: Status Pages
description: Operations related to Status Pages
- name: Communication
description: Operations related to Communication
- name: Metrics/Reporting
description: Operations related to Metrics/Reporting
- name: Integrations
description: Operations related to Integrations
- name: Webhooks
description: Operations related to Webhooks
- name: Conversations
description: Operations related to Conversations
- name: Retrospectives
description: Operations related to Retrospectives
- name: Signals
description: Operations related to Signals
- name: SCIM
description: Operations related to SCIM
paths:
"/v1/ai/preferences":
get:
tags:
- Account Settings
summary: Get AI preferences
description: Retrieves the current AI preferences
operationId: getAiPreferences
responses:
'200':
description: Retrieves the current AI preferences
content:
application/json:
schema:
"$ref": "#/components/schemas/AI_Entities_PreferencesEntity"
patch:
tags:
- Account Settings
summary: Update AI preferences
description: Updates the AI preferences
operationId: updateAiPreferences
requestBody:
content:
application/json:
schema:
type: object
properties:
ai:
type: boolean
description: Whether to enable AI features
summaries:
type: boolean
description: Whether to enable incident summaries
description:
type: boolean
description: Whether to enable incident descriptions
impact:
type: boolean
description: Whether to enable incident impact
updates:
type: boolean
description: Whether to enable incident updates
retros:
type: boolean
description: Whether to enable incident retrospectives
followups:
type: boolean
description: Whether to enable incident followups
similar_incidents:
type: boolean
description: Whether to enable similar incidents
responses:
'200':
description: Updates the AI preferences
content:
application/json:
schema:
"$ref": "#/components/schemas/AI_Entities_PreferencesEntity"
"/v1/ai/summarize_incident/{incident_id}/{generated_summary_id}/vote":
put:
tags:
- Account Settings
operationId: voteOnIncidentSummary
parameters:
- name: incident_id
in: path
required: true
schema:
type: string
- name: generated_summary_id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
required:
- direction
type: object
properties:
direction:
type: string
enum:
- up
- down
required: true
responses:
'200':
description: updated Vote
content: {}
summary: Vote on an AI-generated incident summary
"/v1/ai/summarize_incident/{incident_id}/{generated_summary_id}/voted":
get:
tags:
- Incidents
operationId: getIncidentAiSummaryVoteStatus
parameters:
- name: incident_id
in: path
required: true
schema:
type: string
- name: generated_summary_id
in: path
required: true
schema:
type: string
responses:
'200':
description: get Voted(s)
content: {}
summary: Get the vote status for an AI-generated incident summary
"/v1/alerts":
get:
tags:
- Alerts
summary: List alerts
description: Retrieve all alerts from third parties
operationId: listAlerts
parameters:
- name: page
in: query
schema:
type: integer
format: int32
- name: per_page
in: query
schema:
type: integer
format: int32
- name: query
in: query
description: A text query for alerts
schema:
type: string
- name: users
in: query
description: A comma separated list of user IDs. This currently only works for Signals alerts.
schema:
type: string
- name: teams
in: query
description: A comma separated list of team IDs. This currently only works for Signals alerts.
schema:
type: string
- name: signal_rules
in: query
description: A comma separated list of signals rule IDs. This currently only works for Signals alerts.
schema:
type: string
- name: environments
in: query
description: A comma separated list of environment IDs. This currently only works for Signals alerts.
schema:
type: string
- name: functionalities
in: query
description: A comma separated list of functionality IDs. This currently only works for Signals alerts.
schema:
type: string
- name: services
in: query
description: A comma separated list of service IDs. This currently only works for Signals alerts.
schema:
type: string
- name: tags
in: query
description: A comma separated list of tags. This currently only works for Signals alerts.
schema:
type: string
- name: tag_match_strategy
in: query
description: The strategy to match tags. `any` will return alerts that have at least one of the supplied tags, `match_all` will return only alerts that have all of the supplied tags, and `exclude` will only return alerts that have none of the supplied tags. This currently only works for Signals alerts.
schema:
type: string
enum:
- any
- match_all
- exclude
- name: statuses
in: query
description: 'A comma separated list of statuses to filter by. Valid statuses are: opened, acknowledged, resolved, ignored, or expired'
schema:
type: string
responses:
'200':
description: Retrieve all alerts from third parties
content:
application/json:
schema:
"$ref": "#/components/schemas/Alerts_AlertEntityPaginated"
"/v1/alerts/{alert_id}":
get:
tags:
- Alerts
summary: Get an alert
description: Retrieve a single alert
operationId: getAlert
parameters:
- name: alert_id
in: path
required: true
schema:
type: string
responses:
'200':
description: Retrieve a single alert
content:
application/json:
schema:
"$ref": "#/components/schemas/Alerts_AlertEntity"
"/v1/bootstrap":
get:
tags:
- Account Settings
operationId: getBootstrap
responses:
'200':
description: get Bootstrap(s)
content: {}
summary: Get initial application configuration and settings
"/v1/catalogs/{catalog_id}/ingest":
post:
tags:
- Services
summary: Ingest service catalog data
description: Accepts catalog data in the configured format and asyncronously processes the data to incorporate changes into service catalog.
operationId: ingestCatalogData
parameters:
- name: catalog_id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/postV1CatalogsCatalogIdIngest"
required: true
responses:
'201':
description: Accepts catalog data in the configured format and asyncronously processes the data to incorporate changes into service catalog.
content:
application/json:
schema:
"$ref": "#/components/schemas/Imports_ImportEntity"
x-codegen-request-body-name: postV1CatalogsCatalogIdIngest
"/v1/catalogs/{catalog_id}/refresh":
get:
tags:
- Services
summary: Refresh a service catalog
description: Schedules an async task to re-import catalog info and update catalog data accordingly.
operationId: refreshCatalog
parameters:
- name: catalog_id
in: path
required: true
schema:
type: string
responses:
'200':
description: Schedules an async task to re-import catalog info and update catalog data accordingly.
content: {}
"/v1/change_types":
get:
tags:
- Changes
description: Lists all change types
operationId: listChangeTypes
parameters:
- name: page
in: query
schema:
type: integer
format: int32
- name: per_page
in: query
schema:
type: integer
format: int32
responses:
'200':
description: Lists all change types
content:
application/json:
schema:
"$ref": "#/components/schemas/ChangeTypeEntityPaginated"
summary: List change types
"/v1/changes":
get:
tags:
- Changes
description: Lists all changes
operationId: listChanges
parameters:
- name: page
in: query
schema:
type: integer
format: int32
- name: per_page
in: query
schema:
type: integer
format: int32
- name: query
in: query
description: Filter changes by summary
schema:
type: string
responses:
'200':
description: Lists all changes
content: {}
summary: List changes
post:
tags:
- Changes
description: Create a new change entry
operationId: createChange
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/postV1Changes"
required: true
responses:
'201':
description: Create a new change entry
content:
application/json:
schema:
"$ref": "#/components/schemas/ChangeEntity"
'400':
description: Bad Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorEntity"
x-codegen-request-body-name: postV1Changes
summary: Create a change
"/v1/changes/events":
get:
tags:
- Changes
summary: List change events
description: 'List change events for the organization. Note: Not all information is included on a change event like attachments and related changes. You must fetch a change event separately to retrieve all of the information about it'
operationId: listChangeEvents
parameters:
- name: page
in: query
schema:
type: integer
format: int32
- name: per_page
in: query
schema:
type: integer
format: int32
- name: saved_search_id
in: query
description: The id of a previously saved search.
schema:
type: string
- name: query
in: query
description: A text query for change events
schema:
type: string
- name: labels
in: query
description: A comma separated list of label key / values in the format of "key=value,key2=value2". To filter change events that have a key (with no specific value), omit the value
schema:
type: string
- name: environments
in: query
description: A comma separated list of environment IDs
schema:
type: string
- name: services
in: query
description: A comma separated list of service IDs
schema:
type: string
- name: starts_at
in: query
description: The start time to start returning change events from
schema:
type: string
- name: ends_at
in: query
description: The end time to return change events up to
schema:
type: string
format: date-time
responses:
'200':
description: 'List change events for the organization. Note: Not all information is included on a change event like attachments and related changes. You must fetch a change event separately to retrieve all of the information about it'
content:
application/json:
schema:
"$ref": "#/components/schemas/ChangeEventSlimEntityPaginated"
post:
tags:
- Changes
summary: Create a change event
description: Create a change event
operationId: createChangeEvent
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/ChangesEvents"
required: true
responses:
'201':
description: Create a change event
content:
application/json:
schema:
"$ref": "#/components/schemas/ChangeEventEntity"
x-codegen-request-body-name: postV1ChangesEvents
"/v1/changes/events/{change_event_id}":
get:
tags:
- Changes
summary: Get a change event
description: Retrieve a change event
operationId: getChangeEvent
parameters:
- name: change_event_id
in: path
required: true
schema:
type: string
responses:
'200':
description: Retrieve a change event
content:
application/json:
schema:
"$ref": "#/components/schemas/ChangeEventEntity"
delete:
tags:
- Changes
summary: Delete a change event
description: Delete a change event
operationId: deleteChangeEvent
parameters:
- name: change_event_id
in: path
required: true
schema:
type: string
responses:
'204':
description: Delete a change event
content: {}
patch:
tags:
- Changes
summary: Update a change event
description: Update a change event
operationId: updateChangeEvent
parameters:
- name: change_event_id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/patchV1ChangesEventsChangeEventId"
required: true
responses:
'200':
description: Update a change event
content:
application/json:
schema:
"$ref": "#/components/schemas/ChangeEventEntity"
x-codegen-request-body-name: patchV1ChangesEventsChangeEventId
"/v1/changes/{change_id}":
delete:
tags:
- Changes
description: Archive a change entry
operationId: deleteChange
parameters:
- name: change_id
in: path
required: true
schema:
type: string
responses:
'204':
description: Archive a change entry
content: {}
summary: Archive a change
patch:
tags:
- Changes
description: Update a change entry
operationId: updateChange
parameters:
- name: change_id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/patchV1ChangesChangeId"
required: true
responses:
'200':
description: Update a change entry
content:
application/json:
schema:
"$ref": "#/components/schemas/ChangeEntity"
x-codegen-request-body-name: patchV1ChangesChangeId
summary: Update a change
"/v1/changes/{change_id}/identities":
get:
tags:
- Changes
description: Retrieve all identities for the change
operationId: listChangeIdentities
parameters:
- name: page
in: query
schema:
type: integer
format: int32
- name: per_page
in: query
schema:
type: integer
format: int32
- name: change_id
in: path
required: true
schema:
type: string
responses:
'200':
description: Retrieve all identities for the change
content:
application/json:
schema:
"$ref": "#/components/schemas/ChangeIdentityEntityPaginated"
summary: List identities for a change
post:
tags:
- Changes
description: Create an identity for this change
operationId: createChangeIdentity
parameters:
- name: change_id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/postV1ChangesChangeIdIdentities"
required: true
responses:
'201':
description: Create an identity for this change
content:
application/json:
schema:
"$ref": "#/components/schemas/ChangeIdentityEntity"
'400':
description: Bad Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorEntity"
x-codegen-request-body-name: postV1ChangesChangeIdIdentities
summary: Create an identity for a change
"/v1/changes/{change_id}/identities/{identity_id}":
delete:
tags:
- Changes
description: Delete an identity
operationId: deleteChangeIdentity
parameters:
- name: identity_id
in: path
required: true
schema:
type: string
- name: change_id
in: path
required: true
schema:
type: string
responses:
'204':
description: Delete an identity
content: {}
'400':
description: Bad Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorEntity"
summary: Delete an identity from a change
patch:
tags:
- Changes
description: Update an identity
operationId: updateChangeIdentity
parameters:
- name: identity_id
in: path
required: true
schema:
type: string
- name: change_id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/patchV1ChangesChangeIdIdentitiesIdentityId"
required: true
responses:
'200':
description: Update an identity
content:
application/json:
schema:
"$ref": "#/components/schemas/ChangeIdentityEntity"
'400':
description: Bad Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorEntity"
x-codegen-request-body-name: patchV1ChangesChangeIdIdentitiesIdentityId
summary: Update an identity for a change
"/v1/checklist_templates":
get:
tags:
- Tasks
summary: List checklist templates
description: List all of the checklist templates that have been added to the organization
operationId: listChecklistTemplates
parameters:
- name: page
in: query
schema:
type: integer
format: int32
- name: per_page
in: query
schema:
type: integer
format: int32
- name: query
in: query
description: A query to search checklist templates by their name
schema:
type: string
responses:
'200':
description: List all of the checklist templates that have been added to the organization
content:
application/json:
schema:
"$ref": "#/components/schemas/ChecklistTemplateEntityPaginated"
post:
tags:
- Tasks
summary: Create a checklist template
description: Creates a checklist template for the organization
operationId: createChecklistTemplate
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/postV1ChecklistTemplates"
required: true
responses:
'201':
description: Creates a checklist template for the organization
content:
application/json:
schema:
"$ref": "#/components/schemas/ChecklistTemplateEntity"
'400':
description: Bad Request
content:
application/json:
schema:
"$ref": "#/components/schemas/ErrorEntity"
x-codegen-request-body-name: postV1ChecklistTemplates
"/v1/checklist_templates/{id}":
get:
tags:
- Tasks
summary: Get a checklist template
description: Retrieves a single checklist template by ID
operationId: getChecklistTemplate
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: Retrieves a single checklist template by ID
content:
application/json:
schema:
"$ref": "#/components/schemas/ChecklistTemplateEntity"
delete:
tags:
- Tasks
summary: Archive a checklist template
description: Archive a checklist template
operationId: deleteChecklistTemplate
parameters:
- name: id
in: path
description: Checklist Template UUID
required: true
schema:
type: string
responses:
'200':
description: Archive a checklist template
content:
application/json:
schema:
"$ref": "#/components/schemas/ChecklistTemplateEntity"
patch:
tags:
- Tasks
summary: Update a checklist template
description: Update a checklist templates attributes
operationId: updateChecklistTemplate
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/patchV1ChecklistTemplatesId"
required: true
responses:
'200':
description: Update a checklist templates attributes
content:
application/json:
schema:
"$ref": "#/components/schemas/ChecklistTemplateEntity"
x-codegen-request-body-name: patchV1ChecklistTemplatesId
"/v1/conversations/{conversation_id}/comments":
get:
tags:
- Conversations
summary: List comments for a conversation
description: ALPHA - List all of the comments that have been added to the organization
operationId: listConversationComments
parameters:
- name: before
in: query
description: An ISO8601 timestamp that allows filtering for comments posted before the provided time.
schema:
type: string
format: date-time
- name: after
in: query
description: An ISO8601 timestamp that allows filtering for comments posted after the provided time.
schema:
type: string
format: date-time
- name: sort
in: query
description: Allows sorting comments by the time they were posted, ascending or descending.
schema:
type: string
default: asc
enum:
- asc
- desc
- name: conversation_id
in: path
required: true
schema:
type: string
responses:
'200':
description: ALPHA - List all of the comments that have been added to the organization
content: {}
post:
tags:
- Conversations
summary: Create a comment for a conversation
description: ALPHA - Creates a comment for a project
operationId: createConversationComment
parameters:
- name: conversation_id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/postV1ConversationsConversationIdComments"
required: true
responses:
'201':
description: ALPHA - Creates a comment for a project
content: {}
x-codegen-request-body-name: postV1ConversationsConversationIdComments
"/v1/conversations/{conversation_id}/comments/{comment_id}":
get:
tags:
- Conversations
summary: Get a conversation comment
description: ALPHA - Retrieves a single comment by ID
operationId: getConversationComment
parameters:
- name: comment_id
in: path
required: true
schema:
type: string
- name: conversation_id
in: path
required: true
schema:
type: string
responses:
'200':
description: ALPHA - Retrieves a single comment by ID
content: {}
delete:
tags:
- Conversations
summary: Delete a conversation comment
description: ALPHA - Archive a comment
operationId: deleteConversationComment
parameters:
- name: comment_id
in: path
required: true
schema:
type: string
- name: conversation_id
in: path
required: true
schema:
type: string
responses:
'204':
description: ALPHA - Archive a comment
content: {}
patch:
tags:
- Conversations
summary: Update a conversation comment
description: ALPHA - Update a comment's attributes
operationId: updateConversationComment
parameters:
- name: comment_id
in: path
required: true
schema:
type: string
- name: conversation_id
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
"$ref": "#/components/schemas/patchV1ConversationsConversationIdCommentsCommentId"
required: true
responses:
'200':
description: ALPHA - Update a comment's attributes
content: {}
x-codegen-request-body-name: patchV1ConversationsConversationIdCommentsCommentId
"/v1/conversations/{conversation_id}/comments/{comment_id}/reactions":
get:
tags:
- Conversations
summary: List reactions for a conversation comment
description: ALPHA - List all of the reactions that have been added to a comment
operationId: listConversationCommentReactions
parameters:
- name: conversation_id
in: path
required: true
schema:
type: string
- name: comment_id
in: path
required: true
schema:
type: string
responses:
'200':
description: ALPHA - List all of the reactions that have been added to a comment
content: {}
post:
tags:
- Conversations
summary: Create a reaction for a conversation comment
description: ALPHA - Create a reaction on a comment
operationId: createConversationCommentReaction
parameters:
- name: conversation_id
in: path
required: true
schema:
type: string
- name: comment_id
in: path