Expand description
Datadog credential management.
Loads and saves Datadog API credentials from/to the
~/.omni-dev/settings.json file using the existing env map.
Structs§
- Auth
Status - Aggregate credential status across every known Datadog scope.
- Datadog
Credentials - Datadog API credentials.
- Datadog
Scope Status - Summary of a single Datadog credential scope.
Constants§
- DATADOG_
API_ KEY - Environment variable / settings key for the Datadog API key.
- DATADOG_
API_ URL - Environment variable / settings key for an explicit Datadog API base URL.
- DATADOG_
APP_ KEY - Environment variable / settings key for the Datadog application key.
- DATADOG_
SITE - Environment variable / settings key for the Datadog site (e.g.
datadoghq.com). - DEFAULT_
SITE - Default Datadog site when none is configured (US1 region).
- KNOWN_
SITES - Datadog sites recognised as non-warning.
Functions§
- base_
url_ for_ site - Returns the Datadog API base URL for a given site.
- load_
credentials - Loads Datadog credentials from environment variables or settings.json.
- normalize_
site - Normalises a user-supplied site string.
- remove_
credentials - Removes Datadog credential keys from
~/.omni-dev/settings.json. - save_
credentials - Saves Datadog credentials to
~/.omni-dev/settings.json. - status
- Builds an
AuthStatusfrom the current settings / environment.