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.
Files changed (50) hide show
  1. {devhelm-0.6.0 → devhelm-0.6.1}/PKG-INFO +6 -1
  2. {devhelm-0.6.0 → devhelm-0.6.1}/README.md +5 -0
  3. {devhelm-0.6.0 → devhelm-0.6.1}/pyproject.toml +1 -1
  4. {devhelm-0.6.0 → devhelm-0.6.1}/tests/run_sdk.py +14 -0
  5. {devhelm-0.6.0 → devhelm-0.6.1}/uv.lock +1 -1
  6. {devhelm-0.6.0 → devhelm-0.6.1}/.github/workflows/ci.yml +0 -0
  7. {devhelm-0.6.0 → devhelm-0.6.1}/.github/workflows/release.yml +0 -0
  8. {devhelm-0.6.0 → devhelm-0.6.1}/.github/workflows/spec-check.yml +0 -0
  9. {devhelm-0.6.0 → devhelm-0.6.1}/.gitignore +0 -0
  10. {devhelm-0.6.0 → devhelm-0.6.1}/LICENSE +0 -0
  11. {devhelm-0.6.0 → devhelm-0.6.1}/Makefile +0 -0
  12. {devhelm-0.6.0 → devhelm-0.6.1}/docs/openapi/monitoring-api.json +0 -0
  13. {devhelm-0.6.0 → devhelm-0.6.1}/scripts/inject_strict_config.py +0 -0
  14. {devhelm-0.6.0 → devhelm-0.6.1}/scripts/regen-from.sh +0 -0
  15. {devhelm-0.6.0 → devhelm-0.6.1}/scripts/release.sh +0 -0
  16. {devhelm-0.6.0 → devhelm-0.6.1}/scripts/typegen.sh +0 -0
  17. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/__init__.py +0 -0
  18. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/_errors.py +0 -0
  19. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/_generated.py +0 -0
  20. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/_http.py +0 -0
  21. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/_pagination.py +0 -0
  22. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/_validation.py +0 -0
  23. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/client.py +0 -0
  24. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/py.typed +0 -0
  25. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/__init__.py +0 -0
  26. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/alert_channels.py +0 -0
  27. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/api_keys.py +0 -0
  28. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/dependencies.py +0 -0
  29. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/deploy_lock.py +0 -0
  30. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/environments.py +0 -0
  31. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/forensics.py +0 -0
  32. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/incidents.py +0 -0
  33. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/monitors.py +0 -0
  34. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/notification_policies.py +0 -0
  35. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/resource_groups.py +0 -0
  36. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/secrets.py +0 -0
  37. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/status.py +0 -0
  38. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/status_pages.py +0 -0
  39. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/tags.py +0 -0
  40. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/resources/webhooks.py +0 -0
  41. {devhelm-0.6.0 → devhelm-0.6.1}/src/devhelm/types.py +0 -0
  42. {devhelm-0.6.0 → devhelm-0.6.1}/tests/__init__.py +0 -0
  43. {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_client.py +0 -0
  44. {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_errors.py +0 -0
  45. {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_http.py +0 -0
  46. {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_negative_validation.py +0 -0
  47. {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_schemas.py +0 -0
  48. {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_spec_parity.py +0 -0
  49. {devhelm-0.6.0 → devhelm-0.6.1}/tests/test_typing.py +0 -0
  50. {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.0
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "devhelm"
3
- version = "0.6.0"
3
+ version = "0.6.1"
4
4
  description = "DevHelm SDK for Python — typed client for monitors, incidents, alerting, and more"
5
5
  authors = [{ name = "DevHelm", email = "hello@devhelm.io" }]
6
6
  license = "MIT"
@@ -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])
@@ -315,7 +315,7 @@ wheels = [
315
315
 
316
316
  [[package]]
317
317
  name = "devhelm"
318
- version = "0.6.0"
318
+ version = "0.6.1"
319
319
  source = { editable = "." }
320
320
  dependencies = [
321
321
  { name = "httpx" },
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