render-lab-tasks-datadog
Unreleased Python port: 12 registered tasks from render-lab/render-tasks. Python 3.12+, Render SDK 1.0.1. Requires core 0.1.1 or later.
From the repository root:
uv sync --all-packages --locked
Import render_lab_tasks_datadog.tasks to register tasks. The package root is inert.
Compose the exported app with Workflows.from_workflows; call tasks through
ctx.run. Every operation also exports *_impl(ctx, input, *, deps=None) for
injection. Client(http, env) accepts a caller-owned HTTPX client, and
Deps(datadog=client) injects it. Default dependencies open and close the HTTP
client per invocation; credentials are read lazily at use. No HTTP retries or
background vendor polling occur; retry.py owns the durable retry policies.
Task surface
| Registered task | Python export |
|---|---|
datadog.awaitMonitorRecovery |
await_monitor_recovery |
datadog.cancelDowntime |
cancel_downtime |
datadog.createIncident |
create_incident |
datadog.createIncidentTodo |
create_incident_todo |
datadog.getIncident |
get_incident |
datadog.getMonitor |
get_monitor |
datadog.postEvent |
post_event |
datadog.scheduleDowntime |
schedule_downtime |
datadog.searchEvents |
search_events |
datadog.searchMonitors |
search_monitors |
datadog.updateIncident |
update_incident |
datadog.updateIncidentTodo |
update_incident_todo |
Typed JSON inputs and results are in types.py. Task names and JSON field names
match the pinned source; Python function names use snake_case.
Environment
| Variable | Requirement |
|---|---|
DD_API_KEY |
Required for all API calls. |
DD_APP_KEY |
Required for all API calls, including event intake. |
DD_SITE |
Optional; datadoghq.com by default; choose the account region. |
Behavior and limits
Create-incident, create-todo, schedule-downtime, and event-ingestion tasks disable retries. Cancellation treats 404 as success. Recovery polling distinguishes OK, pending alert states, and Unknown. Incident/todo permissions, the event-intake host, regional routing, and terminal-state behavior need live checks.
Verification
All registered tasks have hermetic contract fixtures executed independently against
the pinned TS implementation. SDK-backed tasks also have explicit HTTP request
fixtures. See tests/test_batch3_contracts.py and tests/test_batch3_edges.py.
These are not live vendor results.
Vendor webhooks subpaths and other registration-free TS exports are outside this batch unless explicitly listed above. Full registered-task coverage does not imply all supporting exports are ported.
Pending scopes, test resources, replay, and hosted checks are in the live-testing backlog and verification tracker.
Webhook adapter
render_lab_tasks_datadog.webhooks.datadog_shared_secret_adapter(on_event, ...) returns a
registration-free adapter for render_lab_triggers. The callback receives the
verified event and returns {"task": "namespace.task", "args": [event]} or None.
The signing credential DATADOG_WEBHOOK_SECRET is read inside verification unless
provided explicitly. Importing this module does not register tasks. Signature
checks use the raw body; live delivery remains in the testing backlog.
Installation
pip install render-lab-tasks-datadog==0.1.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file render_lab_tasks_datadog-0.1.0.tar.gz.
File metadata
- Download URL: render_lab_tasks_datadog-0.1.0.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d89b2e828a79f6d88f51b15723c29bad7f31846e33219cfc3fac893416a31a60
|
|
| MD5 |
03fbf4392a5cd788399df96a78073fc6
|
|
| BLAKE2b-256 |
01dde1fe40ec5b090b21d6b76c804c87f58132cbedd55e664f7eefdffeb03e4d
|
Provenance
The following attestation bundles were made for render_lab_tasks_datadog-0.1.0.tar.gz:
Publisher:
publish.yml on render-lab/render-tasks-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
render_lab_tasks_datadog-0.1.0.tar.gz -
Subject digest:
d89b2e828a79f6d88f51b15723c29bad7f31846e33219cfc3fac893416a31a60 - Sigstore transparency entry: 2767871639
- Sigstore integration time:
-
Permalink:
render-lab/render-tasks-python@b601664587ba5882dd7c8efabfc8908151008df6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/render-lab
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b601664587ba5882dd7c8efabfc8908151008df6 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file render_lab_tasks_datadog-0.1.0-py3-none-any.whl.
File metadata
- Download URL: render_lab_tasks_datadog-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3b2fcdcd0b5ca678c7f0b1522872ae1feeb4412e225bdefb783536d54ef72e2
|
|
| MD5 |
c43030d30d0279b16492cb2a5bac342f
|
|
| BLAKE2b-256 |
c8384386c9fa73c0f08080e27ca56258d8c7704abf5c868b2794b7eedc78fe01
|
Provenance
The following attestation bundles were made for render_lab_tasks_datadog-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on render-lab/render-tasks-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
render_lab_tasks_datadog-0.1.0-py3-none-any.whl -
Subject digest:
b3b2fcdcd0b5ca678c7f0b1522872ae1feeb4412e225bdefb783536d54ef72e2 - Sigstore transparency entry: 2767871678
- Sigstore integration time:
-
Permalink:
render-lab/render-tasks-python@b601664587ba5882dd7c8efabfc8908151008df6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/render-lab
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b601664587ba5882dd7c8efabfc8908151008df6 -
Trigger Event:
workflow_dispatch
-
Statement type: