rsdo 0.1.20260901

A Rust client library for the DigitalOcean API v2
Documentation
lang: Python
source: |-
  import os
  from pydo import Client

  client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

  req = {
    "name": "Landing page degraded performance",
    "type": "latency",
    "threshold": 300,
    "comparison": "greater_than",
    "notifications": {
      "email": [
        "bob@example.com"
      ],
      "slack": [
        {
          "channel": "Production Alerts",
          "url": "https://hooks.slack.com/services/REDACTED/EXAMPLE/WEBHOOK"
        }
      ]
    },
    "period": "2m"
  }

  resp = client.uptime.alert_update(check_id="4de7ac8b", alert_id="da9da9", body=req)