losant_rest 1.20.1 → 1.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +139 -13
  3. data/docs/_schemas.md +1413 -17
  4. data/docs/instanceNotificationRule.md +219 -0
  5. data/docs/instanceNotificationRules.md +91 -0
  6. data/lib/platform_rest/client.rb +10 -2
  7. data/lib/platform_rest/instance_notification_rule.rb +275 -0
  8. data/lib/platform_rest/instance_notification_rules.rb +136 -0
  9. data/lib/platform_rest/version.rb +1 -1
  10. data/lib/platform_rest.rb +2 -0
  11. data/schemas/apiTokenPost.json +9 -0
  12. data/schemas/applicationSearchResult.json +46 -6
  13. data/schemas/credentialLinkedResources.json +12 -0
  14. data/schemas/experienceEndpoint.json +6 -1
  15. data/schemas/experienceEndpointPatch.json +6 -1
  16. data/schemas/experienceEndpointPost.json +6 -1
  17. data/schemas/experienceEndpoints.json +6 -1
  18. data/schemas/experienceLinkedResources.json +18 -1
  19. data/schemas/flow.json +4 -0
  20. data/schemas/flowPatch.json +4 -0
  21. data/schemas/flowPost.json +4 -0
  22. data/schemas/flowVersion.json +8 -0
  23. data/schemas/flowVersionPost.json +4 -0
  24. data/schemas/flowVersions.json +8 -0
  25. data/schemas/flows.json +4 -0
  26. data/schemas/flowsImportPost.json +8 -0
  27. data/schemas/flowsImportResult.json +12 -0
  28. data/schemas/githubLogin.json +9 -0
  29. data/schemas/instance.json +9 -0
  30. data/schemas/instanceAuditLog.json +2 -1
  31. data/schemas/instanceAuditLogFilter.json +2 -1
  32. data/schemas/instanceOrg.json +4 -0
  33. data/schemas/instanceOrgs.json +4 -0
  34. data/schemas/instances.json +9 -0
  35. data/schemas/notificationRule.json +161 -0
  36. data/schemas/notificationRuleDeliveryLogs.json +123 -0
  37. data/schemas/notificationRuleEvaluationOptions.json +10 -0
  38. data/schemas/notificationRulePatch.json +128 -0
  39. data/schemas/notificationRulePost.json +140 -0
  40. data/schemas/notificationRules.json +212 -0
  41. data/schemas/samlResponse.json +9 -0
  42. data/schemas/userCredentials.json +9 -0
  43. data/schemas/userPost.json +9 -0
  44. metadata +12 -2
data/docs/_schemas.md CHANGED
@@ -244,6 +244,12 @@
244
244
  * [Notebook Patch](#notebook-patch)
245
245
  * [Notebook Post](#notebook-post)
246
246
  * [Notebooks](#notebooks)
247
+ * [Notification Rule](#notification-rule)
248
+ * [Notification Rule Delivery Logs](#notification-rule-delivery-logs)
249
+ * [Notification Rule Evaluation Options](#notification-rule-evaluation-options)
250
+ * [Notification Rule Patch](#notification-rule-patch)
251
+ * [Notification Rule Post](#notification-rule-post)
252
+ * [Notification Rules](#notification-rules)
247
253
  * [Organization](#organization)
248
254
  * [Organization Invitation](#organization-invitation)
249
255
  * [Organization Invitation Action](#organization-invitation-action)
@@ -13451,6 +13457,15 @@ Schema for the body of an API Token creation request
13451
13457
  "instanceCustomNode.delete",
13452
13458
  "instanceCustomNode.errors",
13453
13459
  "instanceCustomNode.stats",
13460
+ "instanceNotificationRules.*",
13461
+ "instanceNotificationRules.get",
13462
+ "instanceNotificationRules.post",
13463
+ "instanceNotificationRule.*",
13464
+ "instanceNotificationRule.get",
13465
+ "instanceNotificationRule.patch",
13466
+ "instanceNotificationRule.delete",
13467
+ "instanceNotificationRule.evaluate",
13468
+ "instanceNotificationRule.logs",
13454
13469
  "instanceSandbox.*",
13455
13470
  "instanceSandbox.get",
13456
13471
  "instanceSandbox.delete",
@@ -23962,18 +23977,57 @@ Results of a search of an application's resources
23962
23977
  "type": "string"
23963
23978
  },
23964
23979
  "metadata": {
23965
- "type": "object"
23966
- },
23967
- "viewType": {
23968
- "type": "string"
23980
+ "type": "object",
23981
+ "properties": {
23982
+ "descriptor": {
23983
+ "type": "string"
23984
+ },
23985
+ "parentDirectory": {
23986
+ "type": "string"
23987
+ },
23988
+ "contentType": {
23989
+ "type": "string"
23990
+ }
23991
+ }
23969
23992
  },
23970
23993
  "version": {
23971
23994
  "type": "string"
23972
23995
  },
23996
+ "viewType": {
23997
+ "type": "string",
23998
+ "enum": [
23999
+ "layout",
24000
+ "page",
24001
+ "component"
24002
+ ]
24003
+ },
24004
+ "flowClass": {
24005
+ "type": "string",
24006
+ "enum": [
24007
+ "standalone",
24008
+ "gateway",
24009
+ "peripheral",
24010
+ "floating",
24011
+ "edgeCompute",
24012
+ "system",
24013
+ "embedded"
24014
+ ]
24015
+ },
24016
+ "deviceClass": {
24017
+ "type": "string",
24018
+ "enum": [
24019
+ "cloud",
24020
+ "edge",
24021
+ "embedded",
24022
+ "experience",
24023
+ "customNode"
24024
+ ]
24025
+ },
23973
24026
  "_type": {
23974
24027
  "type": "string",
23975
24028
  "enum": [
23976
24029
  "applicationApiToken",
24030
+ "credential",
23977
24031
  "dashboard",
23978
24032
  "dataTable",
23979
24033
  "deviceRecipe",
@@ -23989,8 +24043,9 @@ Results of a search of an application's resources
23989
24043
  "file",
23990
24044
  "flow",
23991
24045
  "integration",
23992
- "webhook",
23993
- "notebook"
24046
+ "notebook",
24047
+ "resourceJob",
24048
+ "webhook"
23994
24049
  ]
23995
24050
  }
23996
24051
  },
@@ -27316,6 +27371,10 @@ The body of an credential linked resources response
27316
27371
  }
27317
27372
  },
27318
27373
  "maxItems": 100
27374
+ },
27375
+ "configName": {
27376
+ "type": "string",
27377
+ "maxLength": 1024
27319
27378
  }
27320
27379
  },
27321
27380
  "additionalProperties": false
@@ -30443,6 +30502,10 @@ The body of an credential linked resources response
30443
30502
  }
30444
30503
  },
30445
30504
  "maxItems": 100
30505
+ },
30506
+ "configName": {
30507
+ "type": "string",
30508
+ "maxLength": 1024
30446
30509
  }
30447
30510
  },
30448
30511
  "additionalProperties": false
@@ -33479,6 +33542,10 @@ The body of an credential linked resources response
33479
33542
  }
33480
33543
  },
33481
33544
  "maxItems": 100
33545
+ },
33546
+ "configName": {
33547
+ "type": "string",
33548
+ "maxLength": 1024
33482
33549
  }
33483
33550
  },
33484
33551
  "additionalProperties": false
@@ -84870,9 +84937,14 @@ Schema for a single Experience Endpoint
84870
84937
  "enum": [
84871
84938
  "public",
84872
84939
  "authenticated",
84873
- "group"
84940
+ "group",
84941
+ "device"
84874
84942
  ]
84875
84943
  },
84944
+ "deviceIdTemplate": {
84945
+ "type": "string",
84946
+ "maxLength": 255
84947
+ },
84876
84948
  "endpointTags": {
84877
84949
  "type": "object",
84878
84950
  "patternProperties": {
@@ -85031,9 +85103,14 @@ Schema for the body of an Experience Endpoint modification request
85031
85103
  "enum": [
85032
85104
  "public",
85033
85105
  "authenticated",
85034
- "group"
85106
+ "group",
85107
+ "device"
85035
85108
  ]
85036
85109
  },
85110
+ "deviceIdTemplate": {
85111
+ "type": "string",
85112
+ "maxLength": 255
85113
+ },
85037
85114
  "endpointTags": {
85038
85115
  "type": "object",
85039
85116
  "patternProperties": {
@@ -85173,9 +85250,14 @@ Schema for the body of an Experience Endpoint creation request
85173
85250
  "enum": [
85174
85251
  "public",
85175
85252
  "authenticated",
85176
- "group"
85253
+ "group",
85254
+ "device"
85177
85255
  ]
85178
85256
  },
85257
+ "deviceIdTemplate": {
85258
+ "type": "string",
85259
+ "maxLength": 255
85260
+ },
85179
85261
  "endpointTags": {
85180
85262
  "type": "object",
85181
85263
  "patternProperties": {
@@ -85427,9 +85509,14 @@ Schema for a collection of Experience Endpoints
85427
85509
  "enum": [
85428
85510
  "public",
85429
85511
  "authenticated",
85430
- "group"
85512
+ "group",
85513
+ "device"
85431
85514
  ]
85432
85515
  },
85516
+ "deviceIdTemplate": {
85517
+ "type": "string",
85518
+ "maxLength": 255
85519
+ },
85433
85520
  "endpointTags": {
85434
85521
  "type": "object",
85435
85522
  "patternProperties": {
@@ -86464,9 +86551,14 @@ The body of an experience linked resources response
86464
86551
  "enum": [
86465
86552
  "public",
86466
86553
  "authenticated",
86467
- "group"
86554
+ "group",
86555
+ "device"
86468
86556
  ]
86469
86557
  },
86558
+ "deviceIdTemplate": {
86559
+ "type": "string",
86560
+ "maxLength": 255
86561
+ },
86470
86562
  "endpointTags": {
86471
86563
  "type": "object",
86472
86564
  "patternProperties": {
@@ -86999,6 +87091,10 @@ The body of an experience linked resources response
86999
87091
  }
87000
87092
  },
87001
87093
  "maxItems": 100
87094
+ },
87095
+ "configName": {
87096
+ "type": "string",
87097
+ "maxLength": 1024
87002
87098
  }
87003
87099
  },
87004
87100
  "additionalProperties": false
@@ -90126,6 +90222,10 @@ The body of an experience linked resources response
90126
90222
  }
90127
90223
  },
90128
90224
  "maxItems": 100
90225
+ },
90226
+ "configName": {
90227
+ "type": "string",
90228
+ "maxLength": 1024
90129
90229
  }
90130
90230
  },
90131
90231
  "additionalProperties": false
@@ -93162,6 +93262,10 @@ The body of an experience linked resources response
93162
93262
  }
93163
93263
  },
93164
93264
  "maxItems": 100
93265
+ },
93266
+ "configName": {
93267
+ "type": "string",
93268
+ "maxLength": 1024
93165
93269
  }
93166
93270
  },
93167
93271
  "additionalProperties": false
@@ -98630,6 +98734,10 @@ Schema for a single Workflow
98630
98734
  }
98631
98735
  },
98632
98736
  "maxItems": 100
98737
+ },
98738
+ "configName": {
98739
+ "type": "string",
98740
+ "maxLength": 1024
98633
98741
  }
98634
98742
  },
98635
98743
  "additionalProperties": false
@@ -101900,6 +102008,10 @@ Schema for the body of a Workflow modification request
101900
102008
  }
101901
102009
  },
101902
102010
  "maxItems": 100
102011
+ },
102012
+ "configName": {
102013
+ "type": "string",
102014
+ "maxLength": 1024
101903
102015
  }
101904
102016
  },
101905
102017
  "additionalProperties": false
@@ -104923,6 +105035,10 @@ Schema for the body of a Workflow creation request
104923
105035
  }
104924
105036
  },
104925
105037
  "maxItems": 100
105038
+ },
105039
+ "configName": {
105040
+ "type": "string",
105041
+ "maxLength": 1024
104926
105042
  }
104927
105043
  },
104928
105044
  "additionalProperties": false
@@ -108218,6 +108334,10 @@ Schema for a single Workflow Version
108218
108334
  }
108219
108335
  },
108220
108336
  "maxItems": 100
108337
+ },
108338
+ "configName": {
108339
+ "type": "string",
108340
+ "maxLength": 1024
108221
108341
  }
108222
108342
  },
108223
108343
  "additionalProperties": false
@@ -111254,6 +111374,10 @@ Schema for a single Workflow Version
111254
111374
  }
111255
111375
  },
111256
111376
  "maxItems": 100
111377
+ },
111378
+ "configName": {
111379
+ "type": "string",
111380
+ "maxLength": 1024
111257
111381
  }
111258
111382
  },
111259
111383
  "additionalProperties": false
@@ -114001,6 +114125,10 @@ Schema for the body of a Workflow Version creation request
114001
114125
  }
114002
114126
  },
114003
114127
  "maxItems": 100
114128
+ },
114129
+ "configName": {
114130
+ "type": "string",
114131
+ "maxLength": 1024
114004
114132
  }
114005
114133
  },
114006
114134
  "additionalProperties": false
@@ -117063,6 +117191,10 @@ Schema for a collection of Workflow Versions
117063
117191
  }
117064
117192
  },
117065
117193
  "maxItems": 100
117194
+ },
117195
+ "configName": {
117196
+ "type": "string",
117197
+ "maxLength": 1024
117066
117198
  }
117067
117199
  },
117068
117200
  "additionalProperties": false
@@ -120099,6 +120231,10 @@ Schema for a collection of Workflow Versions
120099
120231
  }
120100
120232
  },
120101
120233
  "maxItems": 100
120234
+ },
120235
+ "configName": {
120236
+ "type": "string",
120237
+ "maxLength": 1024
120102
120238
  }
120103
120239
  },
120104
120240
  "additionalProperties": false
@@ -124075,6 +124211,10 @@ Schema for a collection of Workflows
124075
124211
  }
124076
124212
  },
124077
124213
  "maxItems": 100
124214
+ },
124215
+ "configName": {
124216
+ "type": "string",
124217
+ "maxLength": 1024
124078
124218
  }
124079
124219
  },
124080
124220
  "additionalProperties": false
@@ -127222,6 +127362,10 @@ Schema for the body of a workflow import request
127222
127362
  }
127223
127363
  },
127224
127364
  "maxItems": 100
127365
+ },
127366
+ "configName": {
127367
+ "type": "string",
127368
+ "maxLength": 1024
127225
127369
  }
127226
127370
  },
127227
127371
  "additionalProperties": false
@@ -130247,6 +130391,10 @@ Schema for the body of a workflow import request
130247
130391
  }
130248
130392
  },
130249
130393
  "maxItems": 100
130394
+ },
130395
+ "configName": {
130396
+ "type": "string",
130397
+ "maxLength": 1024
130250
130398
  }
130251
130399
  },
130252
130400
  "additionalProperties": false
@@ -133346,6 +133494,10 @@ Schema for the result of a workflow import request
133346
133494
  }
133347
133495
  },
133348
133496
  "maxItems": 100
133497
+ },
133498
+ "configName": {
133499
+ "type": "string",
133500
+ "maxLength": 1024
133349
133501
  }
133350
133502
  },
133351
133503
  "additionalProperties": false
@@ -136422,6 +136574,10 @@ Schema for the result of a workflow import request
136422
136574
  }
136423
136575
  },
136424
136576
  "maxItems": 100
136577
+ },
136578
+ "configName": {
136579
+ "type": "string",
136580
+ "maxLength": 1024
136425
136581
  }
136426
136582
  },
136427
136583
  "additionalProperties": false
@@ -139458,6 +139614,10 @@ Schema for the result of a workflow import request
139458
139614
  }
139459
139615
  },
139460
139616
  "maxItems": 100
139617
+ },
139618
+ "configName": {
139619
+ "type": "string",
139620
+ "maxLength": 1024
139461
139621
  }
139462
139622
  },
139463
139623
  "additionalProperties": false
@@ -142320,6 +142480,15 @@ Schema for the body of a Github login request
142320
142480
  "instanceCustomNode.delete",
142321
142481
  "instanceCustomNode.errors",
142322
142482
  "instanceCustomNode.stats",
142483
+ "instanceNotificationRules.*",
142484
+ "instanceNotificationRules.get",
142485
+ "instanceNotificationRules.post",
142486
+ "instanceNotificationRule.*",
142487
+ "instanceNotificationRule.get",
142488
+ "instanceNotificationRule.patch",
142489
+ "instanceNotificationRule.delete",
142490
+ "instanceNotificationRule.evaluate",
142491
+ "instanceNotificationRule.logs",
142323
142492
  "instanceSandbox.*",
142324
142493
  "instanceSandbox.get",
142325
142494
  "instanceSandbox.delete",
@@ -144110,6 +144279,15 @@ Schema for a single Instance
144110
144279
  "organization": {
144111
144280
  "type": "integer"
144112
144281
  },
144282
+ "instanceApiToken": {
144283
+ "type": "integer"
144284
+ },
144285
+ "instanceNotificationRule": {
144286
+ "type": "integer"
144287
+ },
144288
+ "instanceCustomNode": {
144289
+ "type": "integer"
144290
+ },
144113
144291
  "apitoken": {
144114
144292
  "type": "integer"
144115
144293
  },
@@ -144480,7 +144658,8 @@ Schema for a single Instance Audit Log entry
144480
144658
  "Organization",
144481
144659
  "ApiToken",
144482
144660
  "User",
144483
- "InstanceCustomNode"
144661
+ "InstanceCustomNode",
144662
+ "NotificationRule"
144484
144663
  ]
144485
144664
  },
144486
144665
  "primaryTargetName": {
@@ -144601,7 +144780,8 @@ Schema for the filter of an instance audit log query
144601
144780
  "Organization",
144602
144781
  "ApiToken",
144603
144782
  "User",
144604
- "InstanceCustomNode"
144783
+ "InstanceCustomNode",
144784
+ "NotificationRule"
144605
144785
  ]
144606
144786
  },
144607
144787
  "name": {
@@ -147840,6 +148020,10 @@ Schema for the body of an Organization owned by an instance
147840
148020
  "type": "string",
147841
148021
  "pattern": "^[A-Fa-f\\d]{24}$"
147842
148022
  },
148023
+ "orgId": {
148024
+ "type": "string",
148025
+ "pattern": "^[A-Fa-f\\d]{24}$"
148026
+ },
147843
148027
  "instanceId": {
147844
148028
  "type": "string",
147845
148029
  "pattern": "^[A-Fa-f\\d]{24}$"
@@ -148385,13 +148569,106 @@ Schema for the body of an Organization owned by an instance
148385
148569
 
148386
148570
  ```json
148387
148571
  {
148572
+ "creationDate": "2022-10-26T19:27:42.736Z",
148573
+ "lastUpdated": "2024-10-24T17:04:32.009Z",
148388
148574
  "name": "My Org",
148389
148575
  "id": "60106426dc03c6aad06540bb",
148576
+ "orgId": "60106426dc03c6aad06540bb",
148390
148577
  "instanceId": "60106426dc03c6aad06560ba",
148578
+ "description": "My Org Description",
148579
+ "iconColor": "#057180",
148391
148580
  "limits": {
148392
- "member": 500
148581
+ "apitoken": 1000,
148582
+ "application": 100,
148583
+ "applicationcertificate": 1000,
148584
+ "applicationcertificateauthority": 1000,
148585
+ "applicationkey": 1000,
148586
+ "credential": 100,
148587
+ "dashboard": 100,
148588
+ "datatable": 100,
148589
+ "device": 1000,
148590
+ "devicerecipe": 1000,
148591
+ "experiencedomain": 100,
148592
+ "experienceendpoint": 500,
148593
+ "experienceslug": 100,
148594
+ "experienceversion": 1000,
148595
+ "experienceview": 500,
148596
+ "experiencegroup": 100,
148597
+ "experienceuser": 1000,
148598
+ "file": 1000,
148599
+ "flow": 1000,
148600
+ "integration": 50,
148601
+ "notebook": 100,
148602
+ "resourcejob": 100,
148603
+ "webhook": 1000,
148604
+ "dataTTL": 15552000,
148605
+ "member": 100,
148606
+ "payload": 75000000,
148607
+ "storage": 1073741824,
148608
+ "notebookMinutesPerRun": 60,
148609
+ "notebookMinutesPerMonth": 930,
148610
+ "notebookInParallel": 5,
148611
+ "systemInterval": 5,
148612
+ "experienceFlowSlots": 30,
148613
+ "applicationFlowSlots": 350
148393
148614
  },
148394
- "auditLogEnabled": true
148615
+ "summary": {
148616
+ "apiTokenCount": 0,
148617
+ "appCount": 2,
148618
+ "certificateAuthorityCount": 0,
148619
+ "certificateCount": 0,
148620
+ "credentialCount": 4,
148621
+ "dashCount": 2,
148622
+ "dataTableCount": 1,
148623
+ "deviceCount": 6,
148624
+ "deviceRecipeCount": 1,
148625
+ "experienceDomainCount": 0,
148626
+ "experienceEndpointCount": 10,
148627
+ "experienceGroupCount": 4,
148628
+ "experienceSlugCount": 0,
148629
+ "experienceUserCount": 2,
148630
+ "experienceVersionCount": 4,
148631
+ "experienceViewCount": 9,
148632
+ "fileCount": 0,
148633
+ "flowCount": 30,
148634
+ "integrationCount": 6,
148635
+ "notebookCount": 0,
148636
+ "resourceJobCount": 5,
148637
+ "keyCount": 17,
148638
+ "memberCount": 1,
148639
+ "payloadCount": {
148640
+ "integration": {
148641
+ "integration.flow": 67679
148642
+ }
148643
+ },
148644
+ "storageStats": {
148645
+ "count": 0,
148646
+ "size": 0
148647
+ },
148648
+ "notebookStats": {
148649
+ "awaitingCompletion": 0,
148650
+ "minutesThisPeriod": 0,
148651
+ "runsThisPeriod": 0
148652
+ },
148653
+ "webhookCount": 0
148654
+ },
148655
+ "whitelistedEmailDomains": [],
148656
+ "auditLogEnabled": false,
148657
+ "disabledAt": false,
148658
+ "isReadOnly": false,
148659
+ "tags": [
148660
+ {
148661
+ "key": "my",
148662
+ "value": "tag"
148663
+ }
148664
+ ],
148665
+ "mfaMode": "notRequired",
148666
+ "banner": {
148667
+ "message": "A banner message",
148668
+ "level": "warning"
148669
+ },
148670
+ "currentPeriodStart": "2023-01-01T00:00:00.000Z",
148671
+ "currentPeriodEnd": "2023-01-31T11:59:59.999Z"
148395
148672
  }
148396
148673
  ```
148397
148674
 
@@ -149533,6 +149810,10 @@ Schema for a collection of Organizations within an instance
149533
149810
  "type": "string",
149534
149811
  "pattern": "^[A-Fa-f\\d]{24}$"
149535
149812
  },
149813
+ "orgId": {
149814
+ "type": "string",
149815
+ "pattern": "^[A-Fa-f\\d]{24}$"
149816
+ },
149536
149817
  "instanceId": {
149537
149818
  "type": "string",
149538
149819
  "pattern": "^[A-Fa-f\\d]{24}$"
@@ -150118,13 +150399,106 @@ Schema for a collection of Organizations within an instance
150118
150399
  {
150119
150400
  "items": [
150120
150401
  {
150402
+ "creationDate": "2022-10-26T19:27:42.736Z",
150403
+ "lastUpdated": "2024-10-24T17:04:32.009Z",
150121
150404
  "name": "My Org",
150122
150405
  "id": "60106426dc03c6aad06540bb",
150406
+ "orgId": "60106426dc03c6aad06540bb",
150123
150407
  "instanceId": "60106426dc03c6aad06560ba",
150408
+ "description": "My Org Description",
150409
+ "iconColor": "#057180",
150124
150410
  "limits": {
150125
- "member": 500
150411
+ "apitoken": 1000,
150412
+ "application": 100,
150413
+ "applicationcertificate": 1000,
150414
+ "applicationcertificateauthority": 1000,
150415
+ "applicationkey": 1000,
150416
+ "credential": 100,
150417
+ "dashboard": 100,
150418
+ "datatable": 100,
150419
+ "device": 1000,
150420
+ "devicerecipe": 1000,
150421
+ "experiencedomain": 100,
150422
+ "experienceendpoint": 500,
150423
+ "experienceslug": 100,
150424
+ "experienceversion": 1000,
150425
+ "experienceview": 500,
150426
+ "experiencegroup": 100,
150427
+ "experienceuser": 1000,
150428
+ "file": 1000,
150429
+ "flow": 1000,
150430
+ "integration": 50,
150431
+ "notebook": 100,
150432
+ "resourcejob": 100,
150433
+ "webhook": 1000,
150434
+ "dataTTL": 15552000,
150435
+ "member": 100,
150436
+ "payload": 75000000,
150437
+ "storage": 1073741824,
150438
+ "notebookMinutesPerRun": 60,
150439
+ "notebookMinutesPerMonth": 930,
150440
+ "notebookInParallel": 5,
150441
+ "systemInterval": 5,
150442
+ "experienceFlowSlots": 30,
150443
+ "applicationFlowSlots": 350
150444
+ },
150445
+ "summary": {
150446
+ "apiTokenCount": 0,
150447
+ "appCount": 2,
150448
+ "certificateAuthorityCount": 0,
150449
+ "certificateCount": 0,
150450
+ "credentialCount": 4,
150451
+ "dashCount": 2,
150452
+ "dataTableCount": 1,
150453
+ "deviceCount": 6,
150454
+ "deviceRecipeCount": 1,
150455
+ "experienceDomainCount": 0,
150456
+ "experienceEndpointCount": 10,
150457
+ "experienceGroupCount": 4,
150458
+ "experienceSlugCount": 0,
150459
+ "experienceUserCount": 2,
150460
+ "experienceVersionCount": 4,
150461
+ "experienceViewCount": 9,
150462
+ "fileCount": 0,
150463
+ "flowCount": 30,
150464
+ "integrationCount": 6,
150465
+ "notebookCount": 0,
150466
+ "resourceJobCount": 5,
150467
+ "keyCount": 17,
150468
+ "memberCount": 1,
150469
+ "payloadCount": {
150470
+ "integration": {
150471
+ "integration.flow": 67679
150472
+ }
150473
+ },
150474
+ "storageStats": {
150475
+ "count": 0,
150476
+ "size": 0
150477
+ },
150478
+ "notebookStats": {
150479
+ "awaitingCompletion": 0,
150480
+ "minutesThisPeriod": 0,
150481
+ "runsThisPeriod": 0
150482
+ },
150483
+ "webhookCount": 0
150484
+ },
150485
+ "whitelistedEmailDomains": [],
150486
+ "auditLogEnabled": false,
150487
+ "disabledAt": false,
150488
+ "isReadOnly": false,
150489
+ "tags": [
150490
+ {
150491
+ "key": "my",
150492
+ "value": "tag"
150493
+ }
150494
+ ],
150495
+ "mfaMode": "notRequired",
150496
+ "banner": {
150497
+ "message": "A banner message",
150498
+ "level": "warning"
150126
150499
  },
150127
- "auditLogEnabled": true
150500
+ "currentPeriodStart": "2023-01-01T00:00:00.000Z",
150501
+ "currentPeriodEnd": "2023-01-31T11:59:59.999Z"
150128
150502
  }
150129
150503
  ],
150130
150504
  "count": 1,
@@ -151775,6 +152149,15 @@ Schema for a collection of Instances
151775
152149
  "organization": {
151776
152150
  "type": "integer"
151777
152151
  },
152152
+ "instanceApiToken": {
152153
+ "type": "integer"
152154
+ },
152155
+ "instanceNotificationRule": {
152156
+ "type": "integer"
152157
+ },
152158
+ "instanceCustomNode": {
152159
+ "type": "integer"
152160
+ },
151778
152161
  "apitoken": {
151779
152162
  "type": "integer"
151780
152163
  },
@@ -161976,6 +162359,992 @@ Schema for a collection of Notebooks
161976
162359
 
161977
162360
  <br/>
161978
162361
 
162362
+ ## Notification Rule
162363
+
162364
+ Schema for a single notification rule
162365
+
162366
+ ### <a name="notification-rule-schema"></a> Schema
162367
+
162368
+ ```json
162369
+ {
162370
+ "$schema": "http://json-schema.org/draft-07/schema#",
162371
+ "type": "object",
162372
+ "properties": {
162373
+ "id": {
162374
+ "type": "string",
162375
+ "pattern": "^[A-Fa-f\\d]{24}$"
162376
+ },
162377
+ "notificationRuleId": {
162378
+ "type": "string",
162379
+ "pattern": "^[A-Fa-f\\d]{24}$"
162380
+ },
162381
+ "ownerId": {
162382
+ "type": "string",
162383
+ "pattern": "^[A-Fa-f\\d]{24}$"
162384
+ },
162385
+ "ownerType": {
162386
+ "type": "string",
162387
+ "enum": [
162388
+ "instance"
162389
+ ]
162390
+ },
162391
+ "creationDate": {
162392
+ "type": "string",
162393
+ "format": "date-time"
162394
+ },
162395
+ "lastUpdated": {
162396
+ "type": "string",
162397
+ "format": "date-time"
162398
+ },
162399
+ "createdById": {
162400
+ "type": "string",
162401
+ "pattern": "^[A-Fa-f\\d]{24}$"
162402
+ },
162403
+ "createdByType": {
162404
+ "type": "string",
162405
+ "enum": [
162406
+ "apiToken",
162407
+ "user"
162408
+ ]
162409
+ },
162410
+ "lastUpdatedById": {
162411
+ "type": "string",
162412
+ "pattern": "^[A-Fa-f\\d]{24}$"
162413
+ },
162414
+ "lastUpdatedByType": {
162415
+ "type": "string",
162416
+ "enum": [
162417
+ "apiToken",
162418
+ "user"
162419
+ ]
162420
+ },
162421
+ "targetType": {
162422
+ "type": "string",
162423
+ "enum": [
162424
+ "organization"
162425
+ ]
162426
+ },
162427
+ "targetQueryJson": {
162428
+ "type": "string",
162429
+ "maxLength": 8192
162430
+ },
162431
+ "name": {
162432
+ "type": "string",
162433
+ "minLength": 1,
162434
+ "maxLength": 255
162435
+ },
162436
+ "description": {
162437
+ "type": "string",
162438
+ "maxLength": 32767
162439
+ },
162440
+ "enabled": {
162441
+ "type": "boolean"
162442
+ },
162443
+ "callbackUrl": {
162444
+ "type": "string",
162445
+ "format": "uri",
162446
+ "maxLength": 1024
162447
+ },
162448
+ "emailConfig": {
162449
+ "type": "object",
162450
+ "properties": {
162451
+ "subjectTemplate": {
162452
+ "type": "string",
162453
+ "minLength": 1,
162454
+ "maxLength": 1024
162455
+ },
162456
+ "bodyTemplate": {
162457
+ "type": "string",
162458
+ "maxLength": 32767
162459
+ },
162460
+ "sendToTarget": {
162461
+ "type": "string",
162462
+ "enum": [
162463
+ "admins",
162464
+ "members",
162465
+ "none"
162466
+ ]
162467
+ },
162468
+ "sendToOwner": {
162469
+ "type": "string",
162470
+ "enum": [
162471
+ "admins",
162472
+ "members",
162473
+ "none"
162474
+ ]
162475
+ },
162476
+ "sendToAddresses": {
162477
+ "type": "array",
162478
+ "maxItems": 10,
162479
+ "items": {
162480
+ "type": "string",
162481
+ "format": "email",
162482
+ "maxLength": 1024
162483
+ }
162484
+ }
162485
+ },
162486
+ "required": [
162487
+ "subjectTemplate",
162488
+ "bodyTemplate"
162489
+ ],
162490
+ "additionalProperties": false
162491
+ },
162492
+ "ruleConfig": {
162493
+ "type": "object",
162494
+ "properties": {
162495
+ "ruleType": {
162496
+ "type": "string",
162497
+ "enum": [
162498
+ "payloadUsage",
162499
+ "notebookMinuteUsage"
162500
+ ]
162501
+ },
162502
+ "thresholdType": {
162503
+ "type": "string",
162504
+ "enum": [
162505
+ "percentOfLimit"
162506
+ ]
162507
+ },
162508
+ "threshold": {
162509
+ "type": "number",
162510
+ "minimum": 0,
162511
+ "maximum": 1000
162512
+ },
162513
+ "maxFrequency": {
162514
+ "type": "string",
162515
+ "enum": [
162516
+ "billingCycle",
162517
+ "daily"
162518
+ ]
162519
+ }
162520
+ },
162521
+ "required": [
162522
+ "ruleType",
162523
+ "thresholdType",
162524
+ "threshold"
162525
+ ],
162526
+ "additionalProperties": false
162527
+ }
162528
+ }
162529
+ }
162530
+ ```
162531
+ ### <a name="notification-rule-example"></a> Example
162532
+
162533
+ ```json
162534
+ {
162535
+ "id": "585ec7417ae143cd83dc4a95",
162536
+ "notificationRuleId": "585ec7417ae143cd83dc4a95",
162537
+ "ownerId": "60106426dc03c6aad06560ba",
162538
+ "ownerType": "instance",
162539
+ "creationDate": "2016-06-13T04:00:00.000Z",
162540
+ "lastUpdated": "2016-06-13T04:00:00.000Z",
162541
+ "createdById": "575ed70c7ae143cd83dc4aa9",
162542
+ "createdByType": "user",
162543
+ "lastUpdatedById": "575ed70c7ae143cd83dc4aa9",
162544
+ "lastUpdatedByType": "user",
162545
+ "targetType": "organization",
162546
+ "targetQueryJson": "{}",
162547
+ "name": "My Notification Rule",
162548
+ "enabled": true,
162549
+ "emailConfig": {
162550
+ "subjectTemplate": "Limit Exceeded",
162551
+ "bodyTemplate": "Org has exceeded its payload limit",
162552
+ "sendToTarget": "admins",
162553
+ "sendToOwner": "none",
162554
+ "sendToAddresses": []
162555
+ },
162556
+ "ruleConfig": {
162557
+ "ruleType": "payloadUsage",
162558
+ "thresholdType": "percentOfLimit",
162559
+ "threshold": 100,
162560
+ "maxFrequency": "billingCycle"
162561
+ }
162562
+ }
162563
+ ```
162564
+
162565
+ <br/>
162566
+
162567
+ ## Notification Rule Delivery Logs
162568
+
162569
+ Schema for a set of Notification Rule delivery logs
162570
+
162571
+ ### <a name="notification-rule-delivery-logs-schema"></a> Schema
162572
+
162573
+ ```json
162574
+ {
162575
+ "$schema": "http://json-schema.org/draft-07/schema#",
162576
+ "type": "array",
162577
+ "items": {
162578
+ "type": "object",
162579
+ "properties": {
162580
+ "id": {
162581
+ "type": "string",
162582
+ "pattern": "^[A-Fa-f\\d]{24}$"
162583
+ },
162584
+ "notificationRuleDeliveryId": {
162585
+ "type": "string",
162586
+ "pattern": "^[A-Fa-f\\d]{24}$"
162587
+ },
162588
+ "notificationRuleId": {
162589
+ "type": "string",
162590
+ "pattern": "^[A-Fa-f\\d]{24}$"
162591
+ },
162592
+ "ownerId": {
162593
+ "type": "string",
162594
+ "pattern": "^[A-Fa-f\\d]{24}$"
162595
+ },
162596
+ "ownerType": {
162597
+ "type": "string",
162598
+ "enum": [
162599
+ "instance"
162600
+ ]
162601
+ },
162602
+ "requestedById": {
162603
+ "type": "string",
162604
+ "pattern": "^[A-Fa-f\\d]{24}$"
162605
+ },
162606
+ "requestedByType": {
162607
+ "type": "string",
162608
+ "enum": [
162609
+ "user",
162610
+ "apiToken",
162611
+ "system"
162612
+ ]
162613
+ },
162614
+ "sentAt": {
162615
+ "type": "string",
162616
+ "format": "date-time"
162617
+ },
162618
+ "targetType": {
162619
+ "type": "string",
162620
+ "enum": [
162621
+ "organization"
162622
+ ]
162623
+ },
162624
+ "targetId": {
162625
+ "type": "string",
162626
+ "pattern": "^[A-Fa-f\\d]{24}$"
162627
+ },
162628
+ "targetName": {
162629
+ "type": "string",
162630
+ "minLength": 1,
162631
+ "maxLength": 255
162632
+ },
162633
+ "callbackUrl": {
162634
+ "type": "string",
162635
+ "format": "uri",
162636
+ "maxLength": 1024
162637
+ },
162638
+ "email": {
162639
+ "type": "object",
162640
+ "properties": {
162641
+ "subject": {
162642
+ "type": "string"
162643
+ },
162644
+ "body": {
162645
+ "type": "string"
162646
+ },
162647
+ "addresses": {
162648
+ "type": "array",
162649
+ "items": {
162650
+ "type": "string",
162651
+ "format": "email",
162652
+ "maxLength": 1024
162653
+ }
162654
+ }
162655
+ }
162656
+ },
162657
+ "evaluation": {
162658
+ "type": "object",
162659
+ "properties": {
162660
+ "value": {
162661
+ "type": "number"
162662
+ },
162663
+ "limit": {
162664
+ "type": "number"
162665
+ },
162666
+ "ruleType": {
162667
+ "type": "string",
162668
+ "enum": [
162669
+ "payloadUsage",
162670
+ "notebookMinuteUsage"
162671
+ ]
162672
+ },
162673
+ "thresholdType": {
162674
+ "type": "string",
162675
+ "enum": [
162676
+ "percentOfLimit"
162677
+ ]
162678
+ },
162679
+ "threshold": {
162680
+ "type": "number",
162681
+ "minimum": 0,
162682
+ "maximum": 1000
162683
+ },
162684
+ "maxFrequency": {
162685
+ "type": "string",
162686
+ "enum": [
162687
+ "billingCycle",
162688
+ "daily",
162689
+ "unlimited"
162690
+ ]
162691
+ }
162692
+ }
162693
+ }
162694
+ }
162695
+ }
162696
+ }
162697
+ ```
162698
+ ### <a name="notification-rule-delivery-logs-example"></a> Example
162699
+
162700
+ ```json
162701
+ [
162702
+ {
162703
+ "id": "585ec7417ae143cd83dc4a85",
162704
+ "notificationRuleDeliveryId": "585ec7417ae143cd83dc4a85",
162705
+ "notificationRuleId": "585ec7417ae143cd83dc4a95",
162706
+ "ownerId": "60106426dc03c6aad06560ba",
162707
+ "ownerType": "instance",
162708
+ "requestedById": "000000000000000000000000",
162709
+ "requestedByType": "system",
162710
+ "sentAt": "2016-06-13T04:00:00.000Z",
162711
+ "targetType": "organization",
162712
+ "targetId": "585ec7417ae143cd83dc4a75",
162713
+ "targetName": "My Org",
162714
+ "email": {
162715
+ "subject": "Limit Exceeded",
162716
+ "body": "Org has exceeded its payload limit",
162717
+ "addresses": [
162718
+ "alice@exmaple.com"
162719
+ ]
162720
+ },
162721
+ "evaluation": {
162722
+ "ruleType": "payloadUsage",
162723
+ "thresholdType": "percentOfLimit",
162724
+ "threshold": 100,
162725
+ "maxFrequency": "billingCycle",
162726
+ "value": 1001040,
162727
+ "limit": 1000000
162728
+ }
162729
+ }
162730
+ ]
162731
+ ```
162732
+
162733
+ <br/>
162734
+
162735
+ ## Notification Rule Evaluation Options
162736
+
162737
+ Schema for evaluation options for a notification rule
162738
+
162739
+ ### <a name="notification-rule-evaluation-options-schema"></a> Schema
162740
+
162741
+ ```json
162742
+ {
162743
+ "$schema": "http://json-schema.org/draft-07/schema#",
162744
+ "type": "object",
162745
+ "properties": {
162746
+ "ignoreFrequencyCheck": {
162747
+ "type": "boolean"
162748
+ }
162749
+ },
162750
+ "additionalProperties": false
162751
+ }
162752
+ ```
162753
+ ### <a name="notification-rule-evaluation-options-example"></a> Example
162754
+
162755
+ ```json
162756
+ {
162757
+ "ignoreFrequencyCheck": true
162758
+ }
162759
+ ```
162760
+
162761
+ <br/>
162762
+
162763
+ ## Notification Rule Patch
162764
+
162765
+ Schema for the body of a notification rule modification request
162766
+
162767
+ ### <a name="notification-rule-patch-schema"></a> Schema
162768
+
162769
+ ```json
162770
+ {
162771
+ "$schema": "http://json-schema.org/draft-07/schema#",
162772
+ "type": "object",
162773
+ "properties": {
162774
+ "targetQueryJson": {
162775
+ "type": "string",
162776
+ "maxLength": 8192
162777
+ },
162778
+ "name": {
162779
+ "type": "string",
162780
+ "minLength": 1,
162781
+ "maxLength": 255
162782
+ },
162783
+ "description": {
162784
+ "type": "string",
162785
+ "maxLength": 32767
162786
+ },
162787
+ "enabled": {
162788
+ "type": "boolean"
162789
+ },
162790
+ "callbackUrl": {
162791
+ "oneOf": [
162792
+ {
162793
+ "type": "string",
162794
+ "format": "uri",
162795
+ "maxLength": 1024
162796
+ },
162797
+ {
162798
+ "type": "null"
162799
+ },
162800
+ {
162801
+ "type": "string",
162802
+ "enum": [
162803
+ ""
162804
+ ]
162805
+ }
162806
+ ]
162807
+ },
162808
+ "emailConfig": {
162809
+ "oneOf": [
162810
+ {
162811
+ "type": "object",
162812
+ "properties": {
162813
+ "subjectTemplate": {
162814
+ "type": "string",
162815
+ "minLength": 1,
162816
+ "maxLength": 1024
162817
+ },
162818
+ "bodyTemplate": {
162819
+ "type": "string",
162820
+ "maxLength": 32767
162821
+ },
162822
+ "sendToTarget": {
162823
+ "type": "string",
162824
+ "enum": [
162825
+ "admins",
162826
+ "members",
162827
+ "none"
162828
+ ]
162829
+ },
162830
+ "sendToOwner": {
162831
+ "type": "string",
162832
+ "enum": [
162833
+ "admins",
162834
+ "members",
162835
+ "none"
162836
+ ]
162837
+ },
162838
+ "sendToAddresses": {
162839
+ "type": "array",
162840
+ "maxItems": 10,
162841
+ "items": {
162842
+ "type": "string",
162843
+ "format": "email",
162844
+ "maxLength": 1024
162845
+ }
162846
+ }
162847
+ },
162848
+ "required": [
162849
+ "subjectTemplate",
162850
+ "bodyTemplate"
162851
+ ],
162852
+ "additionalProperties": false
162853
+ },
162854
+ {
162855
+ "type": "null"
162856
+ }
162857
+ ]
162858
+ },
162859
+ "ruleConfig": {
162860
+ "type": "object",
162861
+ "properties": {
162862
+ "ruleType": {
162863
+ "type": "string",
162864
+ "enum": [
162865
+ "payloadUsage",
162866
+ "notebookMinuteUsage"
162867
+ ]
162868
+ },
162869
+ "thresholdType": {
162870
+ "type": "string",
162871
+ "enum": [
162872
+ "percentOfLimit"
162873
+ ]
162874
+ },
162875
+ "threshold": {
162876
+ "type": "number",
162877
+ "minimum": 0,
162878
+ "maximum": 1000
162879
+ },
162880
+ "maxFrequency": {
162881
+ "type": "string",
162882
+ "enum": [
162883
+ "billingCycle",
162884
+ "daily"
162885
+ ]
162886
+ }
162887
+ },
162888
+ "required": [
162889
+ "ruleType",
162890
+ "thresholdType",
162891
+ "threshold"
162892
+ ],
162893
+ "additionalProperties": false
162894
+ }
162895
+ },
162896
+ "additionalProperties": false
162897
+ }
162898
+ ```
162899
+ ### <a name="notification-rule-patch-example"></a> Example
162900
+
162901
+ ```json
162902
+ {
162903
+ "name": "My Updated Notification Rule",
162904
+ "enabled": false
162905
+ }
162906
+ ```
162907
+
162908
+ <br/>
162909
+
162910
+ ## Notification Rule Post
162911
+
162912
+ Schema for the body of a notification rule creation request
162913
+
162914
+ ### <a name="notification-rule-post-schema"></a> Schema
162915
+
162916
+ ```json
162917
+ {
162918
+ "$schema": "http://json-schema.org/draft-07/schema#",
162919
+ "type": "object",
162920
+ "properties": {
162921
+ "targetType": {
162922
+ "type": "string",
162923
+ "enum": [
162924
+ "organization"
162925
+ ]
162926
+ },
162927
+ "targetQueryJson": {
162928
+ "type": "string",
162929
+ "maxLength": 8192
162930
+ },
162931
+ "name": {
162932
+ "type": "string",
162933
+ "minLength": 1,
162934
+ "maxLength": 255
162935
+ },
162936
+ "description": {
162937
+ "type": "string",
162938
+ "maxLength": 32767
162939
+ },
162940
+ "enabled": {
162941
+ "type": "boolean"
162942
+ },
162943
+ "callbackUrl": {
162944
+ "oneOf": [
162945
+ {
162946
+ "type": "string",
162947
+ "format": "uri",
162948
+ "maxLength": 1024
162949
+ },
162950
+ {
162951
+ "type": "null"
162952
+ },
162953
+ {
162954
+ "type": "string",
162955
+ "enum": [
162956
+ ""
162957
+ ]
162958
+ }
162959
+ ]
162960
+ },
162961
+ "emailConfig": {
162962
+ "oneOf": [
162963
+ {
162964
+ "type": "object",
162965
+ "properties": {
162966
+ "subjectTemplate": {
162967
+ "type": "string",
162968
+ "minLength": 1,
162969
+ "maxLength": 1024
162970
+ },
162971
+ "bodyTemplate": {
162972
+ "type": "string",
162973
+ "maxLength": 32767
162974
+ },
162975
+ "sendToTarget": {
162976
+ "type": "string",
162977
+ "enum": [
162978
+ "admins",
162979
+ "members",
162980
+ "none"
162981
+ ]
162982
+ },
162983
+ "sendToOwner": {
162984
+ "type": "string",
162985
+ "enum": [
162986
+ "admins",
162987
+ "members",
162988
+ "none"
162989
+ ]
162990
+ },
162991
+ "sendToAddresses": {
162992
+ "type": "array",
162993
+ "maxItems": 10,
162994
+ "items": {
162995
+ "type": "string",
162996
+ "format": "email",
162997
+ "maxLength": 1024
162998
+ }
162999
+ }
163000
+ },
163001
+ "required": [
163002
+ "subjectTemplate",
163003
+ "bodyTemplate"
163004
+ ],
163005
+ "additionalProperties": false
163006
+ },
163007
+ {
163008
+ "type": "null"
163009
+ }
163010
+ ]
163011
+ },
163012
+ "ruleConfig": {
163013
+ "type": "object",
163014
+ "properties": {
163015
+ "ruleType": {
163016
+ "type": "string",
163017
+ "enum": [
163018
+ "payloadUsage",
163019
+ "notebookMinuteUsage"
163020
+ ]
163021
+ },
163022
+ "thresholdType": {
163023
+ "type": "string",
163024
+ "enum": [
163025
+ "percentOfLimit"
163026
+ ]
163027
+ },
163028
+ "threshold": {
163029
+ "type": "number",
163030
+ "minimum": 0,
163031
+ "maximum": 1000
163032
+ },
163033
+ "maxFrequency": {
163034
+ "type": "string",
163035
+ "enum": [
163036
+ "billingCycle",
163037
+ "daily"
163038
+ ]
163039
+ }
163040
+ },
163041
+ "required": [
163042
+ "ruleType",
163043
+ "thresholdType",
163044
+ "threshold"
163045
+ ],
163046
+ "additionalProperties": false
163047
+ }
163048
+ },
163049
+ "additionalProperties": false,
163050
+ "required": [
163051
+ "targetType",
163052
+ "targetQueryJson",
163053
+ "name",
163054
+ "ruleConfig"
163055
+ ]
163056
+ }
163057
+ ```
163058
+ ### <a name="notification-rule-post-example"></a> Example
163059
+
163060
+ ```json
163061
+ {
163062
+ "name": "My New Notification Rule",
163063
+ "targetType": "organization",
163064
+ "targetQueryJson": "{}",
163065
+ "emailConfig": {
163066
+ "subjectTemplate": "Limit Exceeded",
163067
+ "bodyTemplate": "Org has exceeded its payload limit",
163068
+ "sendToTarget": "admins"
163069
+ },
163070
+ "ruleConfig": {
163071
+ "ruleType": "payloadUsage",
163072
+ "thresholdType": "percentOfLimit",
163073
+ "threshold": 100
163074
+ }
163075
+ }
163076
+ ```
163077
+
163078
+ <br/>
163079
+
163080
+ ## Notification Rules
163081
+
163082
+ Schema for a collection of notification rules
163083
+
163084
+ ### <a name="notification-rules-schema"></a> Schema
163085
+
163086
+ ```json
163087
+ {
163088
+ "$schema": "http://json-schema.org/draft-07/schema#",
163089
+ "type": "object",
163090
+ "properties": {
163091
+ "items": {
163092
+ "type": "array",
163093
+ "items": {
163094
+ "title": "Notification Rule",
163095
+ "description": "Schema for a single notification rule",
163096
+ "type": "object",
163097
+ "properties": {
163098
+ "id": {
163099
+ "type": "string",
163100
+ "pattern": "^[A-Fa-f\\d]{24}$"
163101
+ },
163102
+ "notificationRuleId": {
163103
+ "type": "string",
163104
+ "pattern": "^[A-Fa-f\\d]{24}$"
163105
+ },
163106
+ "ownerId": {
163107
+ "type": "string",
163108
+ "pattern": "^[A-Fa-f\\d]{24}$"
163109
+ },
163110
+ "ownerType": {
163111
+ "type": "string",
163112
+ "enum": [
163113
+ "instance"
163114
+ ]
163115
+ },
163116
+ "creationDate": {
163117
+ "type": "string",
163118
+ "format": "date-time"
163119
+ },
163120
+ "lastUpdated": {
163121
+ "type": "string",
163122
+ "format": "date-time"
163123
+ },
163124
+ "createdById": {
163125
+ "type": "string",
163126
+ "pattern": "^[A-Fa-f\\d]{24}$"
163127
+ },
163128
+ "createdByType": {
163129
+ "type": "string",
163130
+ "enum": [
163131
+ "apiToken",
163132
+ "user"
163133
+ ]
163134
+ },
163135
+ "lastUpdatedById": {
163136
+ "type": "string",
163137
+ "pattern": "^[A-Fa-f\\d]{24}$"
163138
+ },
163139
+ "lastUpdatedByType": {
163140
+ "type": "string",
163141
+ "enum": [
163142
+ "apiToken",
163143
+ "user"
163144
+ ]
163145
+ },
163146
+ "targetType": {
163147
+ "type": "string",
163148
+ "enum": [
163149
+ "organization"
163150
+ ]
163151
+ },
163152
+ "targetQueryJson": {
163153
+ "type": "string",
163154
+ "maxLength": 8192
163155
+ },
163156
+ "name": {
163157
+ "type": "string",
163158
+ "minLength": 1,
163159
+ "maxLength": 255
163160
+ },
163161
+ "description": {
163162
+ "type": "string",
163163
+ "maxLength": 32767
163164
+ },
163165
+ "enabled": {
163166
+ "type": "boolean"
163167
+ },
163168
+ "callbackUrl": {
163169
+ "type": "string",
163170
+ "format": "uri",
163171
+ "maxLength": 1024
163172
+ },
163173
+ "emailConfig": {
163174
+ "type": "object",
163175
+ "properties": {
163176
+ "subjectTemplate": {
163177
+ "type": "string",
163178
+ "minLength": 1,
163179
+ "maxLength": 1024
163180
+ },
163181
+ "bodyTemplate": {
163182
+ "type": "string",
163183
+ "maxLength": 32767
163184
+ },
163185
+ "sendToTarget": {
163186
+ "type": "string",
163187
+ "enum": [
163188
+ "admins",
163189
+ "members",
163190
+ "none"
163191
+ ]
163192
+ },
163193
+ "sendToOwner": {
163194
+ "type": "string",
163195
+ "enum": [
163196
+ "admins",
163197
+ "members",
163198
+ "none"
163199
+ ]
163200
+ },
163201
+ "sendToAddresses": {
163202
+ "type": "array",
163203
+ "maxItems": 10,
163204
+ "items": {
163205
+ "type": "string",
163206
+ "format": "email",
163207
+ "maxLength": 1024
163208
+ }
163209
+ }
163210
+ },
163211
+ "required": [
163212
+ "subjectTemplate",
163213
+ "bodyTemplate"
163214
+ ],
163215
+ "additionalProperties": false
163216
+ },
163217
+ "ruleConfig": {
163218
+ "type": "object",
163219
+ "properties": {
163220
+ "ruleType": {
163221
+ "type": "string",
163222
+ "enum": [
163223
+ "payloadUsage",
163224
+ "notebookMinuteUsage"
163225
+ ]
163226
+ },
163227
+ "thresholdType": {
163228
+ "type": "string",
163229
+ "enum": [
163230
+ "percentOfLimit"
163231
+ ]
163232
+ },
163233
+ "threshold": {
163234
+ "type": "number",
163235
+ "minimum": 0,
163236
+ "maximum": 1000
163237
+ },
163238
+ "maxFrequency": {
163239
+ "type": "string",
163240
+ "enum": [
163241
+ "billingCycle",
163242
+ "daily"
163243
+ ]
163244
+ }
163245
+ },
163246
+ "required": [
163247
+ "ruleType",
163248
+ "thresholdType",
163249
+ "threshold"
163250
+ ],
163251
+ "additionalProperties": false
163252
+ }
163253
+ }
163254
+ }
163255
+ },
163256
+ "count": {
163257
+ "type": "integer"
163258
+ },
163259
+ "totalCount": {
163260
+ "type": "integer"
163261
+ },
163262
+ "perPage": {
163263
+ "type": "integer"
163264
+ },
163265
+ "page": {
163266
+ "type": "integer"
163267
+ },
163268
+ "filter": {
163269
+ "type": "string"
163270
+ },
163271
+ "filterField": {
163272
+ "type": "string"
163273
+ },
163274
+ "sortField": {
163275
+ "type": "string"
163276
+ },
163277
+ "sortDirection": {
163278
+ "type": "string",
163279
+ "enum": [
163280
+ "asc",
163281
+ "desc",
163282
+ "ASC",
163283
+ "DESC",
163284
+ ""
163285
+ ]
163286
+ },
163287
+ "ownerId": {
163288
+ "type": "string",
163289
+ "pattern": "^[A-Fa-f\\d]{24}$"
163290
+ },
163291
+ "ownerType": {
163292
+ "type": "string",
163293
+ "enum": [
163294
+ "instance"
163295
+ ]
163296
+ }
163297
+ }
163298
+ }
163299
+ ```
163300
+ ### <a name="notification-rules-example"></a> Example
163301
+
163302
+ ```json
163303
+ {
163304
+ "items": [
163305
+ {
163306
+ "id": "585ec7417ae143cd83dc4a95",
163307
+ "notificationRuleId": "585ec7417ae143cd83dc4a95",
163308
+ "ownerId": "60106426dc03c6aad06560ba",
163309
+ "ownerType": "instance",
163310
+ "creationDate": "2016-06-13T04:00:00.000Z",
163311
+ "lastUpdated": "2016-06-13T04:00:00.000Z",
163312
+ "createdById": "575ed70c7ae143cd83dc4aa9",
163313
+ "createdByType": "user",
163314
+ "lastUpdatedById": "575ed70c7ae143cd83dc4aa9",
163315
+ "lastUpdatedByType": "user",
163316
+ "targetType": "organization",
163317
+ "targetQueryJson": "{}",
163318
+ "name": "My Notification Rule",
163319
+ "enabled": true,
163320
+ "emailConfig": {
163321
+ "subjectTemplate": "Limit Exceeded",
163322
+ "bodyTemplate": "Org has exceeded its payload limit",
163323
+ "sendToTarget": "admins",
163324
+ "sendToOwner": "none",
163325
+ "sendToAddresses": []
163326
+ },
163327
+ "ruleConfig": {
163328
+ "ruleType": "payloadUsage",
163329
+ "thresholdType": "percentOfLimit",
163330
+ "threshold": 100,
163331
+ "maxFrequency": "billingCycle"
163332
+ }
163333
+ }
163334
+ ],
163335
+ "count": 1,
163336
+ "totalCount": 4,
163337
+ "perPage": 1,
163338
+ "page": 0,
163339
+ "sortField": "name",
163340
+ "sortDirection": "asc",
163341
+ "ownerId": "60106426dc03c6aad06560ba",
163342
+ "ownerType": "instance"
163343
+ }
163344
+ ```
163345
+
163346
+ <br/>
163347
+
161979
163348
  ## Organization
161980
163349
 
161981
163350
  Schema for a single Organization
@@ -167380,6 +168749,15 @@ SAML Response body for login
167380
168749
  "instanceCustomNode.delete",
167381
168750
  "instanceCustomNode.errors",
167382
168751
  "instanceCustomNode.stats",
168752
+ "instanceNotificationRules.*",
168753
+ "instanceNotificationRules.get",
168754
+ "instanceNotificationRules.post",
168755
+ "instanceNotificationRule.*",
168756
+ "instanceNotificationRule.get",
168757
+ "instanceNotificationRule.patch",
168758
+ "instanceNotificationRule.delete",
168759
+ "instanceNotificationRule.evaluate",
168760
+ "instanceNotificationRule.logs",
167383
168761
  "instanceSandbox.*",
167384
168762
  "instanceSandbox.get",
167385
168763
  "instanceSandbox.delete",
@@ -170533,6 +171911,15 @@ Schema for the body of a User authentication request
170533
171911
  "instanceCustomNode.delete",
170534
171912
  "instanceCustomNode.errors",
170535
171913
  "instanceCustomNode.stats",
171914
+ "instanceNotificationRules.*",
171915
+ "instanceNotificationRules.get",
171916
+ "instanceNotificationRules.post",
171917
+ "instanceNotificationRule.*",
171918
+ "instanceNotificationRule.get",
171919
+ "instanceNotificationRule.patch",
171920
+ "instanceNotificationRule.delete",
171921
+ "instanceNotificationRule.evaluate",
171922
+ "instanceNotificationRule.logs",
170536
171923
  "instanceSandbox.*",
170537
171924
  "instanceSandbox.get",
170538
171925
  "instanceSandbox.delete",
@@ -171116,6 +172503,15 @@ Schema for the body of a User creation request
171116
172503
  "instanceCustomNode.delete",
171117
172504
  "instanceCustomNode.errors",
171118
172505
  "instanceCustomNode.stats",
172506
+ "instanceNotificationRules.*",
172507
+ "instanceNotificationRules.get",
172508
+ "instanceNotificationRules.post",
172509
+ "instanceNotificationRule.*",
172510
+ "instanceNotificationRule.get",
172511
+ "instanceNotificationRule.patch",
172512
+ "instanceNotificationRule.delete",
172513
+ "instanceNotificationRule.evaluate",
172514
+ "instanceNotificationRule.logs",
171119
172515
  "instanceSandbox.*",
171120
172516
  "instanceSandbox.get",
171121
172517
  "instanceSandbox.delete",