-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add the scheduled subscription topics (#243)
- Loading branch information
Showing
9 changed files
with
185 additions
and
8 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"version": 3, | ||
"payload": { | ||
"subscription_id": "1/944ec0c4eed611ee8c912e62feddd7b5", | ||
"request": { | ||
"query": "MATCH (events) SELECT count() AS count", | ||
"tenant_ids": { "referrer": "subscription", "organization_id": 1 } | ||
}, | ||
"result": { | ||
"data": [{ "count": 1 }], | ||
"meta": [{ "type": "UInt64", "name": "count" }] | ||
}, | ||
"timestamp": "2024-03-30T13:46:27.363030", | ||
"entity": "events" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"type": "object", | ||
"properties": { | ||
"version": { | ||
"type": "integer" | ||
}, | ||
"payload": { | ||
"type": "object", | ||
"properties": { | ||
"subscription_id": { | ||
"type": "string" | ||
}, | ||
"request": { | ||
"type": "object" | ||
}, | ||
"result": { | ||
"type": "object", | ||
"properties": { | ||
"data": { | ||
"type": "array", | ||
"items": { | ||
"type": "object" | ||
} | ||
}, | ||
"meta": { | ||
"type": "array" | ||
} | ||
}, | ||
"required": ["data", "meta"] | ||
}, | ||
"timestamp": { | ||
"type": "string" | ||
}, | ||
"entity": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"entity", | ||
"request", | ||
"result", | ||
"subscription_id", | ||
"timestamp" | ||
] | ||
} | ||
}, | ||
"required": ["payload", "version"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
topic: scheduled-subscriptions-events | ||
pipeline: errors | ||
description: Scheduled subscriptions for errors pipeline | ||
services: | ||
producers: | ||
- getsentry/snuba | ||
consumers: | ||
- getsentry/snuba | ||
schemas: | ||
- version: 1 | ||
compatibility_mode: none | ||
type: json | ||
resource: subscription-scheduled.v1.schema.json | ||
examples: | ||
- subscription-scheduled/1/ | ||
topic_creation_config: | ||
compression.type: lz4 |
17 changes: 17 additions & 0 deletions
17
topics/scheduled-subscriptions-generic-metrics-counters.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
topic: scheduled-subscriptions-generic-metrics-counters | ||
pipeline: generic-metrics | ||
description: Scheduled subscriptions | ||
services: | ||
producers: | ||
- getsentry/snuba | ||
consumers: | ||
- getsentry/snuba | ||
schemas: | ||
- version: 1 | ||
compatibility_mode: none | ||
type: json | ||
resource: subscription-scheduled.v1.schema.json | ||
examples: | ||
- subscription-scheduled/1/ | ||
topic_creation_config: | ||
compression.type: lz4 |
17 changes: 17 additions & 0 deletions
17
topics/scheduled-subscriptions-generic-metrics-distributions.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
topic: scheduled-subscriptions-generic-metrics-distributions | ||
pipeline: generic-metrics | ||
description: Scheduled subscriptions | ||
services: | ||
producers: | ||
- getsentry/snuba | ||
consumers: | ||
- getsentry/snuba | ||
schemas: | ||
- version: 1 | ||
compatibility_mode: none | ||
type: json | ||
resource: subscription-scheduled.v1.schema.json | ||
examples: | ||
- subscription-scheduled/1/ | ||
topic_creation_config: | ||
compression.type: lz4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
topic: scheduled-subscriptions-generic-metrics-sets | ||
pipeline: generic-metrics | ||
description: Scheduled subscriptions | ||
services: | ||
producers: | ||
- getsentry/snuba | ||
consumers: | ||
- getsentry/snuba | ||
schemas: | ||
- version: 1 | ||
compatibility_mode: none | ||
type: json | ||
resource: subscription-scheduled.v1.schema.json | ||
examples: | ||
- subscription-scheduled/1/ | ||
topic_creation_config: | ||
compression.type: lz4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
topic: scheduled-subscriptions-metrics | ||
pipeline: release-health | ||
description: Scheduled subscriptions | ||
services: | ||
producers: | ||
- getsentry/snuba | ||
consumers: | ||
- getsentry/snuba | ||
schemas: | ||
- version: 1 | ||
compatibility_mode: none | ||
type: json | ||
resource: subscription-scheduled.v1.schema.json | ||
examples: | ||
- subscription-scheduled/1/ | ||
topic_creation_config: | ||
compression.type: lz4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
topic: scheduled-subscriptions-transactions | ||
pipeline: transactions | ||
description: Scheduled subscriptions | ||
services: | ||
producers: | ||
- getsentry/snuba | ||
consumers: | ||
- getsentry/snuba | ||
schemas: | ||
- version: 1 | ||
compatibility_mode: none | ||
type: json | ||
resource: subscription-scheduled.v1.schema.json | ||
examples: | ||
- subscription-scheduled/1/ | ||
topic_creation_config: | ||
compression.type: lz4 |