Skip to content

Commit f6d3c90

Browse files
committed
create LW delete eap-items schema and topic
1 parent 362e228 commit f6d3c90

File tree

3 files changed

+74
-0
lines changed

3 files changed

+74
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"storage_name": "eap_items",
3+
"rows_to_delete": 1000,
4+
"conditions": {
5+
"organization_id": [1],
6+
"project_id": [1],
7+
"trace_id": [
8+
"550e8400-e29b-41d4-a716-446655440000",
9+
"6ba7b810-9dad-11d1-80b4-00c04fd430c8",
10+
"f47ac10b-58cc-4372-a567-0e02b2c3d479"
11+
]
12+
},
13+
"tenant_ids": {
14+
"project_id": 1,
15+
"organization_id": 1,
16+
"referrer": "some_referrer"
17+
}
18+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"title": "lw_delete_eap_items",
4+
"type": "object",
5+
"properties": {
6+
"storage_name": {
7+
"type": "string"
8+
},
9+
"rows_to_delete": {
10+
"type": "integer"
11+
},
12+
"conditions": {
13+
"type": "object",
14+
"properties": {
15+
"organization_id": {
16+
"type": "array",
17+
"items": { "type": "integer" }
18+
},
19+
"project_id": {
20+
"type": "array",
21+
"items": { "type": "integer" }
22+
},
23+
"trace_id": {
24+
"type": "array",
25+
"items": { "type": "string" }
26+
}
27+
}
28+
},
29+
"tenant_ids": {
30+
"type": "object",
31+
"additionalProperties": {
32+
"anyOf": [{ "type": "string" }, { "type": "integer", "minimum": 1 }]
33+
}
34+
}
35+
},
36+
"required": ["storage_name", "rows_to_delete", "conditions", "tenant_ids"]
37+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
pipeline: items
2+
description: Snuba Lightweight Deletes (EAP Items)
3+
services:
4+
consumers:
5+
- getsentry/snuba
6+
producers:
7+
- getsentry/snuba
8+
schemas:
9+
- version: 1
10+
compatibility_mode: none
11+
type: json
12+
resource: snuba-lw-deletions-eap-items.v1.schema.json
13+
examples:
14+
- snuba-lw-deletions-eap-items/1/
15+
topic_creation_config:
16+
compression.type: lz4
17+
max.message.bytes: "50000000"
18+
retention.ms: "86400000"
19+
message.timestamp.type: LogAppendTime

0 commit comments

Comments
 (0)