environment_utils Module
Utility logic for environment-related operations.
Functions
get_observability_authentication_scope
Returns the scope for authenticating to the observability service based on the current environment.
The scope can be overridden via the A365_OBSERVABILITY_SCOPE_OVERRIDE environment variable to enable testing against pre-production environments.
get_observability_authentication_scope() -> list[str]
Returns
| Type | Description |
|---|---|
|
The authentication scope for the current environment. |
is_development_environment
Returns True if the current environment is a development environment.
is_development_environment() -> bool
Returns
| Type | Description |
|---|---|
|
True if the current environment is development, False otherwise. |