forked from aficionado/mistk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mistk-model-api.yaml
845 lines (845 loc) · 28 KB
/
mistk-model-api.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
---
swagger: "2.0"
info:
version: "1.0.0"
title: "Model Integration Software ToolKit"
basePath: "/v1/mistk"
schemes:
- "http"
consumes:
- "application/json"
produces:
- "application/json"
paths:
/initialize:
post:
tags:
- "Model Instance Endpoint"
summary: "Initialize the model"
description: "Instructs the model instance to initialize."
operationId: "initialize_model"
parameters:
- in: "body"
name: "initializationParameters"
description: "Initialization parameters for the model including the objectives,\
\ properties, and hparams. Objectives are a list of objectives for this\
\ model instance from the following options {train, predict, stream_predict,\
\ generate, transfer_learning}. Properties are a dictionary of properties\
\ for this model instance. Hparams are a dictionary of hyperparameters\
\ for this model instance.\n"
required: true
schema:
$ref: "#/definitions/ModelInstanceInitParams"
responses:
200:
description: "Returns 200 if the task was successfully submitted."
400:
description: "Returns 400 if there is a task running when called."
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
schema:
$ref: "#/definitions/ServiceError"
x-swagger-router-controller: "mistk.model.service"
/loadData:
post:
tags:
- "Model Instance Endpoint"
summary: "Loads data for the model"
description: "Loads data onto a staging area for use by the model"
operationId: "load_data"
parameters:
- in: "body"
name: "datasets"
description: "A dictionary mapping objectives to MistkDataset objects. Dictionary\
\ keys must be one of the following {train, test, generate}\n"
required: true
schema:
type: "object"
example:
train:
object_info:
name: "image_training_dataset"
kind: "MistkDataset"
modality: "image"
format: "image"
test:
object_info:
name: "image_testing_dataset"
kind: "MistkDataset"
modality: "image"
format: "image"
generate:
object_info:
name: "image_generation_dataset"
kind: "MistkDataset"
modality: "text"
format: "raw"
responses:
200:
description: "Returns 200 if the task was successfully submitted."
400:
description: "Returns 400 if there is a task running when called."
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
schema:
$ref: "#/definitions/ServiceError"
x-swagger-router-controller: "mistk.model.service"
/buildModel:
post:
tags:
- "Model Instance Endpoint"
summary: "Build the model"
description: "Instructs the container to construct the model"
operationId: "build_model"
parameters:
- name: "modelPath"
in: "query"
description: "The absolute path to the directory where the model's checkpoint/snapshot\
\ file can be found. \n"
required: false
type: "string"
responses:
200:
description: "Returns 200 if the task was successfully submitted."
400:
description: "Returns 400 if there is a task running when called."
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
schema:
$ref: "#/definitions/ServiceError"
x-swagger-router-controller: "mistk.model.service"
/train:
post:
tags:
- "Model Instance Endpoint"
summary: "Train the model"
description: "Trains the model with the training dataset previously loaded"
operationId: "train"
parameters: []
responses:
200:
description: "Returns 200 if the task was successfully submitted."
400:
description: "Returns 400 if there is a task running when called."
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
schema:
$ref: "#/definitions/ServiceError"
x-swagger-router-controller: "mistk.model.service"
/saveModel:
post:
tags:
- "Model Instance Endpoint"
summary: "Save the model snapshot"
description: "Instructs the container to serialize the model to the specified\
\ path\n"
operationId: "save_model"
parameters:
- name: "modelPath"
in: "query"
description: "A path pointing to the directory where the model is to be saved.\n"
required: true
type: "string"
responses:
200:
description: "Returns 200 if the task was successfully submitted."
400:
description: "Returns 400 if there is a task running when called."
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
schema:
$ref: "#/definitions/ServiceError"
x-swagger-router-controller: "mistk.model.service"
/predict:
post:
tags:
- "Model Instance Endpoint"
summary: "Perform predictions with the model"
description: "Perform predictions with the test dataset previously loaded"
operationId: "predict"
parameters: []
responses:
200:
description: "Returns 200 if the task was successfully submitted."
400:
description: "Returns 400 if there is a task running when called."
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
schema:
$ref: "#/definitions/ServiceError"
x-swagger-router-controller: "mistk.model.service"
/streamPredict:
post:
tags:
- "Model Instance Endpoint"
summary: "Perform streaming predictions with the model"
description: "Perform predictions with the test dataset previously loaded"
operationId: "stream_predict"
parameters:
- in: "body"
name: "dataMap"
description: "Dictionary of IDs to b64 encoded data"
required: true
schema:
type: "object"
additionalProperties:
type: "string"
responses:
200:
description: "Dictionary of IDs to predictions"
schema:
type: "object"
properties: {}
400:
description: "Returns 400 if there is a task running when called."
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
schema:
$ref: "#/definitions/ServiceError"
x-swagger-router-controller: "mistk.model.service"
/savePredictions:
post:
tags:
- "Model Instance Endpoint"
summary: "Save the predictions made by the model"
description: "Instructs the container to save the predictions to the specified\
\ path\n"
operationId: "save_predictions"
parameters:
- name: "dataPath"
in: "query"
description: "A path pointing to the directory where the predictions are to\
\ be saved.\n"
required: true
type: "string"
responses:
200:
description: "Returns 200 if the task was successfully submitted."
400:
description: "Returns 400 if there is a task running when called."
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
schema:
$ref: "#/definitions/ServiceError"
x-swagger-router-controller: "mistk.model.service"
/generate:
post:
tags:
- "Model Instance Endpoint"
summary: "Perform generations with the model"
description: "Perform generations with the model"
operationId: "generate"
parameters: []
responses:
200:
description: "Returns 200 if the task was successfully submitted."
400:
description: "Returns 400 if there is a task running when called."
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
schema:
$ref: "#/definitions/ServiceError"
x-swagger-router-controller: "mistk.model.service"
/saveGenerations:
post:
tags:
- "Model Instance Endpoint"
summary: "Save the generations made by the model"
description: "Instructs the container to save the generations to the specified\
\ path\n"
operationId: "save_generations"
parameters:
- name: "dataPath"
in: "query"
description: "A path pointing to the directory where the generations are to\
\ be saved.\n"
required: true
type: "string"
responses:
200:
description: "Returns 200 if the task was successfully submitted."
400:
description: "Returns 400 if there is a task running when called."
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
schema:
$ref: "#/definitions/ServiceError"
x-swagger-router-controller: "mistk.model.service"
/pause:
post:
tags:
- "Model Instance Endpoint"
summary: "Pause the model"
description: "Instructs the container to pause the current training or prediction\
\ activity\n"
operationId: "pause"
parameters: []
responses:
200:
description: "Returns 200 if the task was successfully submitted.\n"
400:
description: "Returns 400 if there is a task running when called.\n"
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
schema:
$ref: "#/definitions/ServiceError"
x-swagger-router-controller: "mistk.model.service"
/resumeTraining:
post:
tags:
- "Model Instance Endpoint"
summary: "Resume training on a paused model"
description: "Resumes the training activity\n"
operationId: "resume_training"
parameters: []
responses:
200:
description: "Returns 200 if the task was successfully submitted.\n"
400:
description: "Returns 400 if there is a task running when called.\n"
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
schema:
$ref: "#/definitions/ServiceError"
x-swagger-router-controller: "mistk.model.service"
/resumePredict:
post:
tags:
- "Model Instance Endpoint"
summary: "Resume predicitons on a paused model"
description: "Resumes the training activity\n"
operationId: "resume_predict"
parameters: []
responses:
200:
description: "Returns 200 if the task was successfully submitted.\n"
400:
description: "Returns 400 if there is a task running when called.\n"
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
schema:
$ref: "#/definitions/ServiceError"
x-swagger-router-controller: "mistk.model.service"
/status:
get:
tags:
- "Model Instance Endpoint"
summary: "Get the status of the model"
description: "Retrieves the current status of the model"
operationId: "get_status"
parameters:
- name: "watch"
in: "query"
description: "Watch for changes to the described resources and return them\
\ as a stream of add, update, and remove notifications. Specify resourceVersion.\n"
required: false
type: "boolean"
default: false
- name: "resourceVersion"
in: "query"
description: "When specified with a watch call, shows changes that occur after\
\ that particular version of a resource. Defaults to changes from the beginning\
\ of history.\n"
required: false
type: "integer"
responses:
200:
description: "Returns the status"
schema:
$ref: "#/definitions/ModelInstanceStatus"
x-swagger-router-controller: "mistk.model.service"
/shutdown:
post:
tags:
- "Model Instance Endpoint"
summary: "Shut down the model"
description: "Shuts down the model"
operationId: "terminate"
parameters: []
responses:
200:
description: "Returns 200 if the task was successfully submitted.\n"
400:
description: "Returns 400 if there is a task running when called.\n"
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
schema:
$ref: "#/definitions/ServiceError"
x-swagger-router-controller: "mistk.model.service"
/reset:
post:
tags:
- "Model Instance Endpoint"
summary: "Resets the model"
description: "Resets the model"
operationId: "reset"
parameters: []
responses:
200:
description: "Returns 200 if the task was successfully submitted.\n"
400:
description: "Returns 400 if there is a task running when called.\n"
schema:
$ref: "#/definitions/ServiceError"
500:
description: "General server runtime exception"
x-swagger-router-controller: "mistk.model.service"
/apiVersion:
get:
tags:
- "Model Instance Endpoint"
summary: "Returns the version of the MISTK API"
description: "Returns the version of the MISTK API"
operationId: "get_api_version"
parameters: []
responses:
200:
description: "The MISTK API Version.\n"
schema:
type: "string"
500:
description: "General server runtime exception"
x-swagger-router-controller: "mistk.model.service"
definitions:
MistkDataset:
allOf:
- $ref: "#/definitions/Dataset"
- type: "object"
properties:
dataPath:
type: "string"
MistkMetric:
allOf:
- $ref: "#/definitions/Metric"
MistkMetricList:
type: "object"
properties:
items:
type: "array"
items:
$ref: "#/definitions/MistkMetric"
continueToken:
type: "string"
description: "A list of Metrics."
MistkDataRecord:
allOf:
- $ref: "#/definitions/DataRecord"
MistkWatchEvent:
allOf:
- $ref: "#/definitions/WatchEvent"
ModelInstanceInitParams:
type: "object"
properties:
objectives:
type: "array"
description: "The objectives inform the model how it will be used while running\n"
items:
type: "string"
enum:
- "training"
- "prediction"
- "streaming_prediction"
- "transfer_learning"
- "generation"
modelProperties:
type: "object"
example:
arch: "densenet"
model_load_file: "checkpoint.pth"
num_labels: 1000
description: "A dictionary of settings or configuration values that are passed\
\ from the ecosystem, but are not considered model hyperparameters. Model\
\ properties are typically defined by a specific implementation of an \
\ algorithm (ie. a PyTorch implementation of Densenet may have different\
\ properties than a Tensorflow implementation). \n"
properties: {}
hyperparameters:
type: "object"
example:
learning_rate: 0.001
momentum: 0.9
weight_decay: 4.0E-4
description: "A dictionary of hyperparameters that are used by the model.\
\ Hyperparameters are typically defined by the algorithm that a model is\
\ based on. \n"
properties: {}
example:
hyperparameters:
learning_rate: 0.001
momentum: 0.9
weight_decay: 4.0E-4
objectives:
- "training"
- "training"
modelProperties:
arch: "densenet"
model_load_file: "checkpoint.pth"
num_labels: 1000
ServiceError:
type: "object"
required:
- "message"
properties:
code:
type: "integer"
format: "int32"
message:
type: "string"
description: "An custom error class used by component services"
ModelInstanceStatus:
type: "object"
required:
- "objectInfo"
properties:
objectInfo:
$ref: "#/definitions/ObjectInfo"
state:
type: "string"
description: "The current state of the model"
enum:
- "started"
- "initializing"
- "initialized"
- "failed"
- "loading_data"
- "building_model"
- "ready"
- "pausing"
- "paused"
- "training"
- "predicting"
- "generating"
- "saving_model"
- "saving_predictions"
- "saving_generations"
payload:
type: "object"
description: "Additional arbitrary information relevant to the current state.\n"
properties: {}
description: "A model instance status object represents the state of a running\
\ model instance. \n"
example:
payload: "{}"
state: "started"
objectInfo:
summary: "summary"
owner: "owner"
creationTime: "2000-01-23T04:56:07.000+00:00"
kind: "kind"
displayName: "displayName"
resourceVersion: 0
description: "description"
project: "project"
resources:
- "resources"
- "resources"
labels: "{}"
public: true
modificationTime: "2000-01-23T04:56:07.000+00:00"
name: "name"
id: "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
ObjectInfo:
type: "object"
properties:
kind:
type: "string"
description: "This is the type of the resource (e.g., Model, Dataset). The\
\ field is primarily used when returning watch events, where the type of\
\ the field will be unknown. When submitting resources, this field will\
\ often simply be inferred from the context of the submission.\n"
id:
type: "string"
format: "uuid"
description: "The unique identifier of the object. This will be generated\
\ automatically.\n"
name:
type: "string"
description: "The unique name of the object. Names of SML resources should\
\ be up to maximum length of 253 characters and consist of lower case alphanumeric\
\ characters, -, and .\n"
displayName:
type: "string"
description: "The name of this resoure, as presented via this UI. This field\
\ can have spaces and upper and lower case alphanumeric characters as well\
\ as spaces.\n"
description:
type: "string"
description: "A documentation description of the resource. This string can\
\ be in Markdown form.\n"
summary:
type: "string"
description: "A short description of this object\n"
owner:
type: "string"
description: "The owner/creator of this object.\n"
project:
type: "string"
description: "The project for this object (assuming the resource is project-scoped)\n"
public:
type: "boolean"
description: "Boolean flag indicating whether this resource will be accessible\
\ to members outside of the project\n"
labels:
type: "object"
description: "Key-value pairs of annotations associate with the object.\n"
properties: {}
resources:
type: "array"
description: "An array of resources/reference URIs\n"
items:
type: "string"
resourceVersion:
type: "integer"
description: "This is the server-managed version for the object. It is used\
\ to support monitoring of resources. This should not be set by the client\
\ (and will likely be ignored if it is)\n"
creationTime:
type: "string"
format: "date-time"
description: "The date time at which this object was initially created. This\
\ will be auto generated by the underlying database. Any user input for\
\ this field will be ignored. This will be in the isoformat of 'YYYY-MM-DDTHH:MM:SS.ffffff'\n"
modificationTime:
type: "string"
format: "date-time"
description: "The date time at which this object was last modified. This will\
\ be auto generated by the underlying database. Any user input for this\
\ field will be ignored. This will be in the isoformat of 'YYYY-MM-DDTHH:MM:SS.ffffff'\n"
description: "This is the set of fields common to all objects."
example:
summary: "summary"
owner: "owner"
creationTime: "2000-01-23T04:56:07.000+00:00"
kind: "kind"
displayName: "displayName"
resourceVersion: 0
description: "description"
project: "project"
resources:
- "resources"
- "resources"
labels: "{}"
public: true
modificationTime: "2000-01-23T04:56:07.000+00:00"
name: "name"
id: "046b6c7f-0b8a-43b9-b35d-6489e6daee91"
Dataset:
type: "object"
required:
- "objectInfo"
properties:
objectInfo:
$ref: "#/definitions/ObjectInfo"
datastashId:
type: "string"
description: "The id of the datastash associated with this dataset where all\
\ of its files will be stored.\n"
datastashSubDir:
type: "string"
description: "This field denotes the sub path within the datastash where this\
\ dataset's data resides.\n"
modality:
type: "string"
description: "The type of the data, one of image, audio, video, text. This\
\ does not specify the format of the data.\n"
enum:
- "image"
- "audio"
- "video"
- "text"
- "prediction"
- "evaluation"
- "metrics"
format:
type: "string"
description: "A string representing the name of the format of the dataset.\
\ This should be sufficient to ensure that models and transforms\n are able\
\ to read and parse the data.\n"
statistics:
$ref: "#/definitions/DatasetStatistics"
defaultGroundTruthSetReference:
description: "A reference to the default ground truth set that is associated\
\ with this dataset\n \n"
$ref: "#/definitions/ObjectReference"
description: "Defines the location within the data lake where a dataset can be\
\ found. It is linked to a DatasetClass\n"
x-sml-resource: "Dataset"
x-smlclient-verbs:
- "create"
- "read"
- "update"
- "delete"
- "list"
- "export"
x-sml-scope: "project"
DatasetStatistics:
type: "object"
properties:
size:
type: "integer"
format: "int32"
description: "The size (in bytes) of the dataset"
default: 0
ObjectReference:
type: "object"
properties:
kind:
type: "string"
description: "The type of the object being referenced. This is often optional\
\ as it will be inferrred by the context.\n"
project:
type: "string"
description: "The project (namespace) of this object.\n"
id:
type: "string"
format: "uuid"
description: "The unique identifier of the object."
name:
type: "string"
description: "The unique name of the object."
instance:
type: "object"
description: "Optionally, the object reference can contain the complete object.\
\ This is useful for unit testing where you don't want to go out to the\
\ SRM to obtain the referenced object.\n"
properties: {}
description: "A reference to another declared object. At least one of id or name\
\ fields must be specified.\n"
Metric:
type: "object"
required:
- "objectInfo"
properties:
objectInfo:
$ref: "#/definitions/ObjectInfo"
implementationReference:
$ref: "#/definitions/ObjectReference"
package:
type: "string"
description: "The name of the package containing the implementation of this\
\ metric.\n"
method:
type: "string"
description: "The name of the method to be called when applying the metric.\n"
defaultArgs:
type: "object"
description: "The default arguments passed to the method when the metric is\
\ called. These can be overwritten when the metric is associated with an\
\ assessment.\n"
properties: {}
dataParameters:
$ref: "#/definitions/MetricDataParameters"
assessmentTypes:
type: "array"
description: "The types of assessments this metric can be used for.\n"
items:
type: "string"
version:
type: "string"
description: "The version of this metric"
description: "Evaluation criteria for measuring the performance of an algorithm’\
s implementation.\n"
x-sml-resource: "Metric"
x-smlclient-verbs:
- "create"
- "read"
- "update"
- "delete"
- "list"
x-sml-scope: "project"
MetricDataParameters:
type: "object"
properties:
predictionLabels:
type: "string"
description: "The arg name for prediction labels"
truthLabels:
type: "string"
description: "The arg name for ground truth labels"
predictionScores:
type: "string"
description: "The arg name for prediction scores"
truthBounds:
type: "string"
description: "The arg name for ground truth bounds"
predictionBounds:
type: "string"
description: "The arg name for prediction bounds"
description: "The data parameters provides a mapping for data into the arguments\
\ passed to the metric. \n"
DataRecord:
type: "object"
required:
- "recordId"
- "referencedSetId"
properties:
recordId:
type: "string"
description: "The id of this record"
referenceSetProject:
type: "string"
format: "string"
description: "the project associated with the data record set\n"
referencedSetId:
type: "string"
format: "uuid"
description: "The UUID of the Data Record Set this record is associated with.\
\ This should be the ObjectId of a GroundTruthSet or PredictionSet\n"
values:
type: "array"
description: "A list of labels, optionally this could be a list of dictionaries\
\ instead where the dictionaries contain the ground truth label plus a\
\ bounding box, etc, this could also include certainty assessments. \n"
items:
type: "object"
properties: {}
description: "A record of values associated with a GroundTruthSet, PredictionSet,\
\ or EvaluationSet\n"
WatchEvent:
type: "object"
required:
- "eventType"
- "payload"
properties:
payload:
type: "object"
description: "The object/resource which was changed. If the type of the event\
\ was *added* or *modified*, then this field is the new state of the resource.\
\ If the field is *deleted* then the value is the state just before deletion.\n"
properties: {}
eventType:
type: "string"
enum:
- "added"
- "modified"
- "deleted"
description: "An event indicating that an object or resource was modified. The\
\ event type is one of [added, modified, deleted].\n"