Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions py/parse_and_notify.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,7 @@
from dataclasses import dataclass
from typing import Any, Mapping, Sequence

from infra_event_notifier.notifier import Notifier
from infra_event_notifier.datadog_notifier import DatadogNotifier

SENTRY_REGION = os.getenv("SENTRY_REGION", "unknown")

Expand DownExpand Up@@ -155,7 +155,7 @@ def build(cls, raw_content: Mapping[str, Any]) -> UpdatedTopic:
def main():
token = os.getenv("DATADOG_API_KEY")
assert token is not None, "No Datadog token in DATADOG_API_KEY env var"
notifier = Notifier(datadog_api_key=token)
notifier = DatadogNotifier(datadog_api_key=token)

for line in sys.stdin:
topic = json.loads(line)
Expand DownExpand Up@@ -185,7 +185,7 @@ def main():
)
tags["topicctl_topic"] = topic_content.name

notifier.notify(title=title, tags=tags, text=text, alert_type="")
notifier.send(title=title, body=text, tags=tags, alert_type="")
print(f"{title}", file=sys.stderr)


Expand Down
2 changes: 1 addition & 1 deletion py/requirements.txt
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
--index-url https://pypi.devinfra.sentry.io/simple

sentry-infra-event-notifier==0.0.4
sentry-infra-event-notifier==0.0.5