Skip to content

Commit

Permalink
Merge pull request #258 from octplane/api_endpoint
Browse files Browse the repository at this point in the history
Change API endpoint
  • Loading branch information
yannmh authored Jun 26, 2018
2 parents e37e1d5 + f6085c5 commit 6126c14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datadog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def initialize(api_key=None, app_key=None, host_name=None, api_host=None,
api._application_key = app_key if app_key is not None else os.environ.get('DATADOG_APP_KEY')
api._host_name = host_name if host_name is not None else get_hostname()
api._api_host = api_host if api_host is not None else \
os.environ.get('DATADOG_HOST', 'https://app.datadoghq.com')
os.environ.get('DATADOG_HOST', 'https://api.datadoghq.com')

# Statsd configuration
# ...overrides the default `statsd` instance attributes
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/api/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def test_api_params_from_params(env_name, parameter, attr_name, value ):
# Default values
test_api_params_default("DATADOG_API_KEY", "_api_key", None)
test_api_params_default("DATADOG_APP_KEY", "_application_key", None)
test_api_params_default("DATADOG_HOST", "_api_host", "https://app.datadoghq.com")
test_api_params_default("DATADOG_HOST", "_api_host", "https://api.datadoghq.com")

# From environment
test_api_params_from_env("DATADOG_API_KEY", "_api_key", env_value="apikey")
Expand Down

0 comments on commit 6126c14

Please sign in to comment.