devhelm 0.6.0__tar.gz → 0.6.1__tar.gz
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.
- {devhelm-0.6.0 → devhelm-0.6.1}/PKG-INFO +6 -1
- {devhelm-0.6.0 → devhelm-0.6.1}/README.md +5 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/pyproject.toml +1 -1
- {devhelm-0.6.0 → devhelm-0.6.1}/tests/run_sdk.py +14 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/uv.lock +1 -1
- {devhelm-0.6.0 → devhelm-0.6.1}/.github/workflows/ci.yml +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/.github/workflows/release.yml +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/.github/workflows/spec-check.yml +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/.gitignore +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/LICENSE +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/Makefile +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/docs/openapi/monitoring-api.json +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/scripts/inject_strict_config.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/scripts/regen-from.sh +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/scripts/release.sh +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/scripts/typegen.sh +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/__init__.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/_errors.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/_generated.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/_http.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/_pagination.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/_validation.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/client.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/py.typed +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/__init__.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/alert_channels.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/api_keys.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/dependencies.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/deploy_lock.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/environments.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/forensics.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/incidents.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/monitors.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/notification_policies.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/resource_groups.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/secrets.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/status.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/status_pages.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/tags.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/webhooks.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/types.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/tests/__init__.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_client.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_errors.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_http.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_negative_validation.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_schemas.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_spec_parity.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_typing.py +0 -0
- {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_validation_helpers.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: devhelm
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.1
|
|
4
4
|
Summary: DevHelm SDK for Python — typed client for monitors, incidents, alerting, and more
|
|
5
5
|
Project-URL: Homepage, https://github.com/devhelmhq/sdk-python
|
|
6
6
|
Project-URL: Repository, https://github.com/devhelmhq/sdk-python.git
|
|
@@ -55,6 +55,11 @@ monitor = client.monitors.create({
|
|
|
55
55
|
"config": {"url": "https://api.example.com/health", "method": "GET"},
|
|
56
56
|
"frequencySeconds": 60,
|
|
57
57
|
"regions": ["us-east"],
|
|
58
|
+
# `managedBy` records who reconciles drift on this resource. Use
|
|
59
|
+
# "DASHBOARD" (the default for one-off SDK scripts), "CLI" if the
|
|
60
|
+
# monitor lives in a `devhelm.yml` you re-deploy, or "TERRAFORM"
|
|
61
|
+
# if it lives in `.tf` you re-apply.
|
|
62
|
+
"managedBy": "DASHBOARD",
|
|
58
63
|
})
|
|
59
64
|
|
|
60
65
|
# Get a single monitor
|
|
@@ -31,6 +31,11 @@ monitor = client.monitors.create({
|
|
|
31
31
|
"config": {"url": "https://api.example.com/health", "method": "GET"},
|
|
32
32
|
"frequencySeconds": 60,
|
|
33
33
|
"regions": ["us-east"],
|
|
34
|
+
# `managedBy` records who reconciles drift on this resource. Use
|
|
35
|
+
# "DASHBOARD" (the default for one-off SDK scripts), "CLI" if the
|
|
36
|
+
# monitor lives in a `devhelm.yml` you re-deploy, or "TERRAFORM"
|
|
37
|
+
# if it lives in `.tf` you re-apply.
|
|
38
|
+
"managedBy": "DASHBOARD",
|
|
34
39
|
})
|
|
35
40
|
|
|
36
41
|
# Get a single monitor
|
|
@@ -393,6 +393,20 @@ def run(client: Devhelm, resource: str, action: str, rest: list[str]) -> Any: #
|
|
|
393
393
|
client.status_pages.subscribers.remove(rest[0], rest[1])
|
|
394
394
|
return None
|
|
395
395
|
|
|
396
|
+
# -- Forensics --
|
|
397
|
+
if op == "forensics.incident-timeline":
|
|
398
|
+
return client.forensics.incident_timeline(rest[0])
|
|
399
|
+
if op == "forensics.check-trace":
|
|
400
|
+
return client.forensics.check_trace(rest[0])
|
|
401
|
+
if op == "forensics.policy-snapshot":
|
|
402
|
+
return client.forensics.policy_snapshot(rest[0])
|
|
403
|
+
if op == "forensics.monitor-rule-evaluations":
|
|
404
|
+
opts = json.loads(rest[1]) if len(rest) > 1 and rest[1] else {}
|
|
405
|
+
return client.forensics.monitor_rule_evaluations(rest[0], **opts)
|
|
406
|
+
if op == "forensics.monitor-transitions":
|
|
407
|
+
opts = json.loads(rest[1]) if len(rest) > 1 and rest[1] else {}
|
|
408
|
+
return client.forensics.monitor_transitions(rest[0], **opts)
|
|
409
|
+
|
|
396
410
|
# -- Status Page Domains --
|
|
397
411
|
if op == "status-pages.domains.list":
|
|
398
412
|
return client.status_pages.domains.list(rest[0])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|