@fleetless/contracts 13.0.1 → 13.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/artifacts/openapi.json +17 -17
- package/artifacts/routes.json +17 -25
- package/artifacts/schema/journal-deletion-manifest.schema.json +213 -3
- package/artifacts/schema/journal-manifest-batch.schema.json +142 -2
- package/artifacts/schema/journal-manifest-binding.schema.json +213 -3
- package/artifacts/schema/journal-manifest-row.schema.json +71 -1
- package/dist/assets.d.ts +1 -1
- package/dist/assets.js +1 -1
- package/dist/journal-manifests.d.ts +126 -0
- package/dist/journal-manifests.js +74 -1
- package/dist/rest.js +4 -4
- package/dist/routes.js +27 -30
- package/package.json +1 -1
|
@@ -843,9 +843,79 @@
|
|
|
843
843
|
"audit_id"
|
|
844
844
|
],
|
|
845
845
|
"additionalProperties": false
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"type": "object",
|
|
849
|
+
"properties": {
|
|
850
|
+
"type": {
|
|
851
|
+
"type": "string",
|
|
852
|
+
"const": "retention_range"
|
|
853
|
+
},
|
|
854
|
+
"membership_kind": {
|
|
855
|
+
"type": "string",
|
|
856
|
+
"const": "affected"
|
|
857
|
+
},
|
|
858
|
+
"table": {
|
|
859
|
+
"type": "string",
|
|
860
|
+
"enum": [
|
|
861
|
+
"datapoint_series_samples",
|
|
862
|
+
"bridge_latency_buckets"
|
|
863
|
+
],
|
|
864
|
+
"description": "The table the range was deleted from."
|
|
865
|
+
},
|
|
866
|
+
"org_id": {
|
|
867
|
+
"type": "string",
|
|
868
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
869
|
+
},
|
|
870
|
+
"robot_id": {
|
|
871
|
+
"type": "string",
|
|
872
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
873
|
+
},
|
|
874
|
+
"series_id": {
|
|
875
|
+
"description": "The one datapoint series of the range; absent when the range covers every series of the robot. Never set for latency buckets.",
|
|
876
|
+
"type": "integer",
|
|
877
|
+
"minimum": 1,
|
|
878
|
+
"maximum": 9007199254740991
|
|
879
|
+
},
|
|
880
|
+
"from": {
|
|
881
|
+
"type": "string",
|
|
882
|
+
"format": "date-time",
|
|
883
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
884
|
+
"description": "Inclusive lower bound of the deleted range (UTC, milliseconds)."
|
|
885
|
+
},
|
|
886
|
+
"cutoff": {
|
|
887
|
+
"type": "string",
|
|
888
|
+
"format": "date-time",
|
|
889
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
890
|
+
"description": "Exclusive upper bound of the deleted range (UTC, milliseconds). Replay deletes every row of the table inside [from, cutoff) for this robot and series and no row at or after the cutoff."
|
|
891
|
+
},
|
|
892
|
+
"row_count": {
|
|
893
|
+
"type": "integer",
|
|
894
|
+
"minimum": 1,
|
|
895
|
+
"maximum": 9007199254740991,
|
|
896
|
+
"description": "How many rows the range held when it was frozen."
|
|
897
|
+
},
|
|
898
|
+
"rows_digest": {
|
|
899
|
+
"type": "string",
|
|
900
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
901
|
+
"description": "SHA-256 over the sorted row keys the range held when it was frozen (retention range digest v1); lets a backup of the range be checked against what was deleted."
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
"required": [
|
|
905
|
+
"type",
|
|
906
|
+
"membership_kind",
|
|
907
|
+
"table",
|
|
908
|
+
"org_id",
|
|
909
|
+
"robot_id",
|
|
910
|
+
"from",
|
|
911
|
+
"cutoff",
|
|
912
|
+
"row_count",
|
|
913
|
+
"rows_digest"
|
|
914
|
+
],
|
|
915
|
+
"additionalProperties": false
|
|
846
916
|
}
|
|
847
917
|
],
|
|
848
|
-
"description": "JSON Schema consumers must also check uuid_row generation equality
|
|
918
|
+
"description": "JSON Schema consumers must also check uuid_row generation equality, exact physical identity and that a retention range starts before it ends."
|
|
849
919
|
}
|
|
850
920
|
},
|
|
851
921
|
"batches": {
|
|
@@ -1464,9 +1534,79 @@
|
|
|
1464
1534
|
"audit_id"
|
|
1465
1535
|
],
|
|
1466
1536
|
"additionalProperties": false
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"type": "object",
|
|
1540
|
+
"properties": {
|
|
1541
|
+
"type": {
|
|
1542
|
+
"type": "string",
|
|
1543
|
+
"const": "retention_range"
|
|
1544
|
+
},
|
|
1545
|
+
"membership_kind": {
|
|
1546
|
+
"type": "string",
|
|
1547
|
+
"const": "affected"
|
|
1548
|
+
},
|
|
1549
|
+
"table": {
|
|
1550
|
+
"type": "string",
|
|
1551
|
+
"enum": [
|
|
1552
|
+
"datapoint_series_samples",
|
|
1553
|
+
"bridge_latency_buckets"
|
|
1554
|
+
],
|
|
1555
|
+
"description": "The table the range was deleted from."
|
|
1556
|
+
},
|
|
1557
|
+
"org_id": {
|
|
1558
|
+
"type": "string",
|
|
1559
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
1560
|
+
},
|
|
1561
|
+
"robot_id": {
|
|
1562
|
+
"type": "string",
|
|
1563
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
1564
|
+
},
|
|
1565
|
+
"series_id": {
|
|
1566
|
+
"description": "The one datapoint series of the range; absent when the range covers every series of the robot. Never set for latency buckets.",
|
|
1567
|
+
"type": "integer",
|
|
1568
|
+
"minimum": 1,
|
|
1569
|
+
"maximum": 9007199254740991
|
|
1570
|
+
},
|
|
1571
|
+
"from": {
|
|
1572
|
+
"type": "string",
|
|
1573
|
+
"format": "date-time",
|
|
1574
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
1575
|
+
"description": "Inclusive lower bound of the deleted range (UTC, milliseconds)."
|
|
1576
|
+
},
|
|
1577
|
+
"cutoff": {
|
|
1578
|
+
"type": "string",
|
|
1579
|
+
"format": "date-time",
|
|
1580
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
1581
|
+
"description": "Exclusive upper bound of the deleted range (UTC, milliseconds). Replay deletes every row of the table inside [from, cutoff) for this robot and series and no row at or after the cutoff."
|
|
1582
|
+
},
|
|
1583
|
+
"row_count": {
|
|
1584
|
+
"type": "integer",
|
|
1585
|
+
"minimum": 1,
|
|
1586
|
+
"maximum": 9007199254740991,
|
|
1587
|
+
"description": "How many rows the range held when it was frozen."
|
|
1588
|
+
},
|
|
1589
|
+
"rows_digest": {
|
|
1590
|
+
"type": "string",
|
|
1591
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
1592
|
+
"description": "SHA-256 over the sorted row keys the range held when it was frozen (retention range digest v1); lets a backup of the range be checked against what was deleted."
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
"required": [
|
|
1596
|
+
"type",
|
|
1597
|
+
"membership_kind",
|
|
1598
|
+
"table",
|
|
1599
|
+
"org_id",
|
|
1600
|
+
"robot_id",
|
|
1601
|
+
"from",
|
|
1602
|
+
"cutoff",
|
|
1603
|
+
"row_count",
|
|
1604
|
+
"rows_digest"
|
|
1605
|
+
],
|
|
1606
|
+
"additionalProperties": false
|
|
1467
1607
|
}
|
|
1468
1608
|
],
|
|
1469
|
-
"description": "JSON Schema consumers must also check uuid_row generation equality
|
|
1609
|
+
"description": "JSON Schema consumers must also check uuid_row generation equality, exact physical identity and that a retention range starts before it ends."
|
|
1470
1610
|
}
|
|
1471
1611
|
}
|
|
1472
1612
|
},
|
|
@@ -2069,9 +2209,79 @@
|
|
|
2069
2209
|
"audit_id"
|
|
2070
2210
|
],
|
|
2071
2211
|
"additionalProperties": false
|
|
2212
|
+
},
|
|
2213
|
+
{
|
|
2214
|
+
"type": "object",
|
|
2215
|
+
"properties": {
|
|
2216
|
+
"type": {
|
|
2217
|
+
"type": "string",
|
|
2218
|
+
"const": "retention_range"
|
|
2219
|
+
},
|
|
2220
|
+
"membership_kind": {
|
|
2221
|
+
"type": "string",
|
|
2222
|
+
"const": "affected"
|
|
2223
|
+
},
|
|
2224
|
+
"table": {
|
|
2225
|
+
"type": "string",
|
|
2226
|
+
"enum": [
|
|
2227
|
+
"datapoint_series_samples",
|
|
2228
|
+
"bridge_latency_buckets"
|
|
2229
|
+
],
|
|
2230
|
+
"description": "The table the range was deleted from."
|
|
2231
|
+
},
|
|
2232
|
+
"org_id": {
|
|
2233
|
+
"type": "string",
|
|
2234
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
2235
|
+
},
|
|
2236
|
+
"robot_id": {
|
|
2237
|
+
"type": "string",
|
|
2238
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
2239
|
+
},
|
|
2240
|
+
"series_id": {
|
|
2241
|
+
"description": "The one datapoint series of the range; absent when the range covers every series of the robot. Never set for latency buckets.",
|
|
2242
|
+
"type": "integer",
|
|
2243
|
+
"minimum": 1,
|
|
2244
|
+
"maximum": 9007199254740991
|
|
2245
|
+
},
|
|
2246
|
+
"from": {
|
|
2247
|
+
"type": "string",
|
|
2248
|
+
"format": "date-time",
|
|
2249
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
2250
|
+
"description": "Inclusive lower bound of the deleted range (UTC, milliseconds)."
|
|
2251
|
+
},
|
|
2252
|
+
"cutoff": {
|
|
2253
|
+
"type": "string",
|
|
2254
|
+
"format": "date-time",
|
|
2255
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
2256
|
+
"description": "Exclusive upper bound of the deleted range (UTC, milliseconds). Replay deletes every row of the table inside [from, cutoff) for this robot and series and no row at or after the cutoff."
|
|
2257
|
+
},
|
|
2258
|
+
"row_count": {
|
|
2259
|
+
"type": "integer",
|
|
2260
|
+
"minimum": 1,
|
|
2261
|
+
"maximum": 9007199254740991,
|
|
2262
|
+
"description": "How many rows the range held when it was frozen."
|
|
2263
|
+
},
|
|
2264
|
+
"rows_digest": {
|
|
2265
|
+
"type": "string",
|
|
2266
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
2267
|
+
"description": "SHA-256 over the sorted row keys the range held when it was frozen (retention range digest v1); lets a backup of the range be checked against what was deleted."
|
|
2268
|
+
}
|
|
2269
|
+
},
|
|
2270
|
+
"required": [
|
|
2271
|
+
"type",
|
|
2272
|
+
"membership_kind",
|
|
2273
|
+
"table",
|
|
2274
|
+
"org_id",
|
|
2275
|
+
"robot_id",
|
|
2276
|
+
"from",
|
|
2277
|
+
"cutoff",
|
|
2278
|
+
"row_count",
|
|
2279
|
+
"rows_digest"
|
|
2280
|
+
],
|
|
2281
|
+
"additionalProperties": false
|
|
2072
2282
|
}
|
|
2073
2283
|
],
|
|
2074
|
-
"description": "JSON Schema consumers must also check uuid_row generation equality
|
|
2284
|
+
"description": "JSON Schema consumers must also check uuid_row generation equality, exact physical identity and that a retention range starts before it ends."
|
|
2075
2285
|
}
|
|
2076
2286
|
}
|
|
2077
2287
|
},
|
|
@@ -613,9 +613,79 @@
|
|
|
613
613
|
"audit_id"
|
|
614
614
|
],
|
|
615
615
|
"additionalProperties": false
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"type": "object",
|
|
619
|
+
"properties": {
|
|
620
|
+
"type": {
|
|
621
|
+
"type": "string",
|
|
622
|
+
"const": "retention_range"
|
|
623
|
+
},
|
|
624
|
+
"membership_kind": {
|
|
625
|
+
"type": "string",
|
|
626
|
+
"const": "affected"
|
|
627
|
+
},
|
|
628
|
+
"table": {
|
|
629
|
+
"type": "string",
|
|
630
|
+
"enum": [
|
|
631
|
+
"datapoint_series_samples",
|
|
632
|
+
"bridge_latency_buckets"
|
|
633
|
+
],
|
|
634
|
+
"description": "The table the range was deleted from."
|
|
635
|
+
},
|
|
636
|
+
"org_id": {
|
|
637
|
+
"type": "string",
|
|
638
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
639
|
+
},
|
|
640
|
+
"robot_id": {
|
|
641
|
+
"type": "string",
|
|
642
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
643
|
+
},
|
|
644
|
+
"series_id": {
|
|
645
|
+
"description": "The one datapoint series of the range; absent when the range covers every series of the robot. Never set for latency buckets.",
|
|
646
|
+
"type": "integer",
|
|
647
|
+
"minimum": 1,
|
|
648
|
+
"maximum": 9007199254740991
|
|
649
|
+
},
|
|
650
|
+
"from": {
|
|
651
|
+
"type": "string",
|
|
652
|
+
"format": "date-time",
|
|
653
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
654
|
+
"description": "Inclusive lower bound of the deleted range (UTC, milliseconds)."
|
|
655
|
+
},
|
|
656
|
+
"cutoff": {
|
|
657
|
+
"type": "string",
|
|
658
|
+
"format": "date-time",
|
|
659
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
660
|
+
"description": "Exclusive upper bound of the deleted range (UTC, milliseconds). Replay deletes every row of the table inside [from, cutoff) for this robot and series and no row at or after the cutoff."
|
|
661
|
+
},
|
|
662
|
+
"row_count": {
|
|
663
|
+
"type": "integer",
|
|
664
|
+
"minimum": 1,
|
|
665
|
+
"maximum": 9007199254740991,
|
|
666
|
+
"description": "How many rows the range held when it was frozen."
|
|
667
|
+
},
|
|
668
|
+
"rows_digest": {
|
|
669
|
+
"type": "string",
|
|
670
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
671
|
+
"description": "SHA-256 over the sorted row keys the range held when it was frozen (retention range digest v1); lets a backup of the range be checked against what was deleted."
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"required": [
|
|
675
|
+
"type",
|
|
676
|
+
"membership_kind",
|
|
677
|
+
"table",
|
|
678
|
+
"org_id",
|
|
679
|
+
"robot_id",
|
|
680
|
+
"from",
|
|
681
|
+
"cutoff",
|
|
682
|
+
"row_count",
|
|
683
|
+
"rows_digest"
|
|
684
|
+
],
|
|
685
|
+
"additionalProperties": false
|
|
616
686
|
}
|
|
617
687
|
],
|
|
618
|
-
"description": "JSON Schema consumers must also check uuid_row generation equality
|
|
688
|
+
"description": "JSON Schema consumers must also check uuid_row generation equality, exact physical identity and that a retention range starts before it ends."
|
|
619
689
|
}
|
|
620
690
|
}
|
|
621
691
|
},
|
|
@@ -1218,9 +1288,79 @@
|
|
|
1218
1288
|
"audit_id"
|
|
1219
1289
|
],
|
|
1220
1290
|
"additionalProperties": false
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
"type": "object",
|
|
1294
|
+
"properties": {
|
|
1295
|
+
"type": {
|
|
1296
|
+
"type": "string",
|
|
1297
|
+
"const": "retention_range"
|
|
1298
|
+
},
|
|
1299
|
+
"membership_kind": {
|
|
1300
|
+
"type": "string",
|
|
1301
|
+
"const": "affected"
|
|
1302
|
+
},
|
|
1303
|
+
"table": {
|
|
1304
|
+
"type": "string",
|
|
1305
|
+
"enum": [
|
|
1306
|
+
"datapoint_series_samples",
|
|
1307
|
+
"bridge_latency_buckets"
|
|
1308
|
+
],
|
|
1309
|
+
"description": "The table the range was deleted from."
|
|
1310
|
+
},
|
|
1311
|
+
"org_id": {
|
|
1312
|
+
"type": "string",
|
|
1313
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
1314
|
+
},
|
|
1315
|
+
"robot_id": {
|
|
1316
|
+
"type": "string",
|
|
1317
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
1318
|
+
},
|
|
1319
|
+
"series_id": {
|
|
1320
|
+
"description": "The one datapoint series of the range; absent when the range covers every series of the robot. Never set for latency buckets.",
|
|
1321
|
+
"type": "integer",
|
|
1322
|
+
"minimum": 1,
|
|
1323
|
+
"maximum": 9007199254740991
|
|
1324
|
+
},
|
|
1325
|
+
"from": {
|
|
1326
|
+
"type": "string",
|
|
1327
|
+
"format": "date-time",
|
|
1328
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
1329
|
+
"description": "Inclusive lower bound of the deleted range (UTC, milliseconds)."
|
|
1330
|
+
},
|
|
1331
|
+
"cutoff": {
|
|
1332
|
+
"type": "string",
|
|
1333
|
+
"format": "date-time",
|
|
1334
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
1335
|
+
"description": "Exclusive upper bound of the deleted range (UTC, milliseconds). Replay deletes every row of the table inside [from, cutoff) for this robot and series and no row at or after the cutoff."
|
|
1336
|
+
},
|
|
1337
|
+
"row_count": {
|
|
1338
|
+
"type": "integer",
|
|
1339
|
+
"minimum": 1,
|
|
1340
|
+
"maximum": 9007199254740991,
|
|
1341
|
+
"description": "How many rows the range held when it was frozen."
|
|
1342
|
+
},
|
|
1343
|
+
"rows_digest": {
|
|
1344
|
+
"type": "string",
|
|
1345
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
1346
|
+
"description": "SHA-256 over the sorted row keys the range held when it was frozen (retention range digest v1); lets a backup of the range be checked against what was deleted."
|
|
1347
|
+
}
|
|
1348
|
+
},
|
|
1349
|
+
"required": [
|
|
1350
|
+
"type",
|
|
1351
|
+
"membership_kind",
|
|
1352
|
+
"table",
|
|
1353
|
+
"org_id",
|
|
1354
|
+
"robot_id",
|
|
1355
|
+
"from",
|
|
1356
|
+
"cutoff",
|
|
1357
|
+
"row_count",
|
|
1358
|
+
"rows_digest"
|
|
1359
|
+
],
|
|
1360
|
+
"additionalProperties": false
|
|
1221
1361
|
}
|
|
1222
1362
|
],
|
|
1223
|
-
"description": "JSON Schema consumers must also check uuid_row generation equality
|
|
1363
|
+
"description": "JSON Schema consumers must also check uuid_row generation equality, exact physical identity and that a retention range starts before it ends."
|
|
1224
1364
|
}
|
|
1225
1365
|
}
|
|
1226
1366
|
},
|
|
@@ -2273,9 +2273,79 @@
|
|
|
2273
2273
|
"audit_id"
|
|
2274
2274
|
],
|
|
2275
2275
|
"additionalProperties": false
|
|
2276
|
+
},
|
|
2277
|
+
{
|
|
2278
|
+
"type": "object",
|
|
2279
|
+
"properties": {
|
|
2280
|
+
"type": {
|
|
2281
|
+
"type": "string",
|
|
2282
|
+
"const": "retention_range"
|
|
2283
|
+
},
|
|
2284
|
+
"membership_kind": {
|
|
2285
|
+
"type": "string",
|
|
2286
|
+
"const": "affected"
|
|
2287
|
+
},
|
|
2288
|
+
"table": {
|
|
2289
|
+
"type": "string",
|
|
2290
|
+
"enum": [
|
|
2291
|
+
"datapoint_series_samples",
|
|
2292
|
+
"bridge_latency_buckets"
|
|
2293
|
+
],
|
|
2294
|
+
"description": "The table the range was deleted from."
|
|
2295
|
+
},
|
|
2296
|
+
"org_id": {
|
|
2297
|
+
"type": "string",
|
|
2298
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
2299
|
+
},
|
|
2300
|
+
"robot_id": {
|
|
2301
|
+
"type": "string",
|
|
2302
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
2303
|
+
},
|
|
2304
|
+
"series_id": {
|
|
2305
|
+
"description": "The one datapoint series of the range; absent when the range covers every series of the robot. Never set for latency buckets.",
|
|
2306
|
+
"type": "integer",
|
|
2307
|
+
"minimum": 1,
|
|
2308
|
+
"maximum": 9007199254740991
|
|
2309
|
+
},
|
|
2310
|
+
"from": {
|
|
2311
|
+
"type": "string",
|
|
2312
|
+
"format": "date-time",
|
|
2313
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
2314
|
+
"description": "Inclusive lower bound of the deleted range (UTC, milliseconds)."
|
|
2315
|
+
},
|
|
2316
|
+
"cutoff": {
|
|
2317
|
+
"type": "string",
|
|
2318
|
+
"format": "date-time",
|
|
2319
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
2320
|
+
"description": "Exclusive upper bound of the deleted range (UTC, milliseconds). Replay deletes every row of the table inside [from, cutoff) for this robot and series and no row at or after the cutoff."
|
|
2321
|
+
},
|
|
2322
|
+
"row_count": {
|
|
2323
|
+
"type": "integer",
|
|
2324
|
+
"minimum": 1,
|
|
2325
|
+
"maximum": 9007199254740991,
|
|
2326
|
+
"description": "How many rows the range held when it was frozen."
|
|
2327
|
+
},
|
|
2328
|
+
"rows_digest": {
|
|
2329
|
+
"type": "string",
|
|
2330
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
2331
|
+
"description": "SHA-256 over the sorted row keys the range held when it was frozen (retention range digest v1); lets a backup of the range be checked against what was deleted."
|
|
2332
|
+
}
|
|
2333
|
+
},
|
|
2334
|
+
"required": [
|
|
2335
|
+
"type",
|
|
2336
|
+
"membership_kind",
|
|
2337
|
+
"table",
|
|
2338
|
+
"org_id",
|
|
2339
|
+
"robot_id",
|
|
2340
|
+
"from",
|
|
2341
|
+
"cutoff",
|
|
2342
|
+
"row_count",
|
|
2343
|
+
"rows_digest"
|
|
2344
|
+
],
|
|
2345
|
+
"additionalProperties": false
|
|
2276
2346
|
}
|
|
2277
2347
|
],
|
|
2278
|
-
"description": "JSON Schema consumers must also check uuid_row generation equality
|
|
2348
|
+
"description": "JSON Schema consumers must also check uuid_row generation equality, exact physical identity and that a retention range starts before it ends."
|
|
2279
2349
|
}
|
|
2280
2350
|
},
|
|
2281
2351
|
"batches": {
|
|
@@ -2894,9 +2964,79 @@
|
|
|
2894
2964
|
"audit_id"
|
|
2895
2965
|
],
|
|
2896
2966
|
"additionalProperties": false
|
|
2967
|
+
},
|
|
2968
|
+
{
|
|
2969
|
+
"type": "object",
|
|
2970
|
+
"properties": {
|
|
2971
|
+
"type": {
|
|
2972
|
+
"type": "string",
|
|
2973
|
+
"const": "retention_range"
|
|
2974
|
+
},
|
|
2975
|
+
"membership_kind": {
|
|
2976
|
+
"type": "string",
|
|
2977
|
+
"const": "affected"
|
|
2978
|
+
},
|
|
2979
|
+
"table": {
|
|
2980
|
+
"type": "string",
|
|
2981
|
+
"enum": [
|
|
2982
|
+
"datapoint_series_samples",
|
|
2983
|
+
"bridge_latency_buckets"
|
|
2984
|
+
],
|
|
2985
|
+
"description": "The table the range was deleted from."
|
|
2986
|
+
},
|
|
2987
|
+
"org_id": {
|
|
2988
|
+
"type": "string",
|
|
2989
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
2990
|
+
},
|
|
2991
|
+
"robot_id": {
|
|
2992
|
+
"type": "string",
|
|
2993
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
2994
|
+
},
|
|
2995
|
+
"series_id": {
|
|
2996
|
+
"description": "The one datapoint series of the range; absent when the range covers every series of the robot. Never set for latency buckets.",
|
|
2997
|
+
"type": "integer",
|
|
2998
|
+
"minimum": 1,
|
|
2999
|
+
"maximum": 9007199254740991
|
|
3000
|
+
},
|
|
3001
|
+
"from": {
|
|
3002
|
+
"type": "string",
|
|
3003
|
+
"format": "date-time",
|
|
3004
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
3005
|
+
"description": "Inclusive lower bound of the deleted range (UTC, milliseconds)."
|
|
3006
|
+
},
|
|
3007
|
+
"cutoff": {
|
|
3008
|
+
"type": "string",
|
|
3009
|
+
"format": "date-time",
|
|
3010
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
3011
|
+
"description": "Exclusive upper bound of the deleted range (UTC, milliseconds). Replay deletes every row of the table inside [from, cutoff) for this robot and series and no row at or after the cutoff."
|
|
3012
|
+
},
|
|
3013
|
+
"row_count": {
|
|
3014
|
+
"type": "integer",
|
|
3015
|
+
"minimum": 1,
|
|
3016
|
+
"maximum": 9007199254740991,
|
|
3017
|
+
"description": "How many rows the range held when it was frozen."
|
|
3018
|
+
},
|
|
3019
|
+
"rows_digest": {
|
|
3020
|
+
"type": "string",
|
|
3021
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
3022
|
+
"description": "SHA-256 over the sorted row keys the range held when it was frozen (retention range digest v1); lets a backup of the range be checked against what was deleted."
|
|
3023
|
+
}
|
|
3024
|
+
},
|
|
3025
|
+
"required": [
|
|
3026
|
+
"type",
|
|
3027
|
+
"membership_kind",
|
|
3028
|
+
"table",
|
|
3029
|
+
"org_id",
|
|
3030
|
+
"robot_id",
|
|
3031
|
+
"from",
|
|
3032
|
+
"cutoff",
|
|
3033
|
+
"row_count",
|
|
3034
|
+
"rows_digest"
|
|
3035
|
+
],
|
|
3036
|
+
"additionalProperties": false
|
|
2897
3037
|
}
|
|
2898
3038
|
],
|
|
2899
|
-
"description": "JSON Schema consumers must also check uuid_row generation equality
|
|
3039
|
+
"description": "JSON Schema consumers must also check uuid_row generation equality, exact physical identity and that a retention range starts before it ends."
|
|
2900
3040
|
}
|
|
2901
3041
|
}
|
|
2902
3042
|
},
|
|
@@ -3499,9 +3639,79 @@
|
|
|
3499
3639
|
"audit_id"
|
|
3500
3640
|
],
|
|
3501
3641
|
"additionalProperties": false
|
|
3642
|
+
},
|
|
3643
|
+
{
|
|
3644
|
+
"type": "object",
|
|
3645
|
+
"properties": {
|
|
3646
|
+
"type": {
|
|
3647
|
+
"type": "string",
|
|
3648
|
+
"const": "retention_range"
|
|
3649
|
+
},
|
|
3650
|
+
"membership_kind": {
|
|
3651
|
+
"type": "string",
|
|
3652
|
+
"const": "affected"
|
|
3653
|
+
},
|
|
3654
|
+
"table": {
|
|
3655
|
+
"type": "string",
|
|
3656
|
+
"enum": [
|
|
3657
|
+
"datapoint_series_samples",
|
|
3658
|
+
"bridge_latency_buckets"
|
|
3659
|
+
],
|
|
3660
|
+
"description": "The table the range was deleted from."
|
|
3661
|
+
},
|
|
3662
|
+
"org_id": {
|
|
3663
|
+
"type": "string",
|
|
3664
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
3665
|
+
},
|
|
3666
|
+
"robot_id": {
|
|
3667
|
+
"type": "string",
|
|
3668
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
|
|
3669
|
+
},
|
|
3670
|
+
"series_id": {
|
|
3671
|
+
"description": "The one datapoint series of the range; absent when the range covers every series of the robot. Never set for latency buckets.",
|
|
3672
|
+
"type": "integer",
|
|
3673
|
+
"minimum": 1,
|
|
3674
|
+
"maximum": 9007199254740991
|
|
3675
|
+
},
|
|
3676
|
+
"from": {
|
|
3677
|
+
"type": "string",
|
|
3678
|
+
"format": "date-time",
|
|
3679
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
3680
|
+
"description": "Inclusive lower bound of the deleted range (UTC, milliseconds)."
|
|
3681
|
+
},
|
|
3682
|
+
"cutoff": {
|
|
3683
|
+
"type": "string",
|
|
3684
|
+
"format": "date-time",
|
|
3685
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
|
|
3686
|
+
"description": "Exclusive upper bound of the deleted range (UTC, milliseconds). Replay deletes every row of the table inside [from, cutoff) for this robot and series and no row at or after the cutoff."
|
|
3687
|
+
},
|
|
3688
|
+
"row_count": {
|
|
3689
|
+
"type": "integer",
|
|
3690
|
+
"minimum": 1,
|
|
3691
|
+
"maximum": 9007199254740991,
|
|
3692
|
+
"description": "How many rows the range held when it was frozen."
|
|
3693
|
+
},
|
|
3694
|
+
"rows_digest": {
|
|
3695
|
+
"type": "string",
|
|
3696
|
+
"pattern": "^[0-9a-f]{64}$",
|
|
3697
|
+
"description": "SHA-256 over the sorted row keys the range held when it was frozen (retention range digest v1); lets a backup of the range be checked against what was deleted."
|
|
3698
|
+
}
|
|
3699
|
+
},
|
|
3700
|
+
"required": [
|
|
3701
|
+
"type",
|
|
3702
|
+
"membership_kind",
|
|
3703
|
+
"table",
|
|
3704
|
+
"org_id",
|
|
3705
|
+
"robot_id",
|
|
3706
|
+
"from",
|
|
3707
|
+
"cutoff",
|
|
3708
|
+
"row_count",
|
|
3709
|
+
"rows_digest"
|
|
3710
|
+
],
|
|
3711
|
+
"additionalProperties": false
|
|
3502
3712
|
}
|
|
3503
3713
|
],
|
|
3504
|
-
"description": "JSON Schema consumers must also check uuid_row generation equality
|
|
3714
|
+
"description": "JSON Schema consumers must also check uuid_row generation equality, exact physical identity and that a retention range starts before it ends."
|
|
3505
3715
|
}
|
|
3506
3716
|
}
|
|
3507
3717
|
},
|