rhino_health.lib.constants#

Constants that are used in the rest of the system

Module Contents#

Classes#

ApiEnvironment

Which environment you are hitting. By default you should be using PROD_API_URL

Dashboard

Which dashboard serves the environment

ECRService

Which ecr serves the environment

Attributes#

BASE_URL_TO_DASHBOARD

Mapping of Base URL to Dashboard

class rhino_health.lib.constants.ApiEnvironment#

Which environment you are hitting. By default you should be using PROD_API_URL

Examples

>>> from rhino_health import ApiEnvironment.LOCALHOST_API_URL, ApiEnvironment.DEV_URL, ApiEnvironment.PROD_API_URL, ApiEnvironment.DEMO_DEV_URL
LOCALHOST_API_URL = 'http://localhost:8080/api/'#
QA_URL = 'https://qa-cloud.rhinohealth.com/api/'#
DEV_URL = 'https://dev.rhinohealth.com/api/'#
DEV2_URL = 'https://dev2.rhinohealth.com/api/'#
DEV3_URL = 'https://dev3.rhinohealth.com/api/'#
DEMO_DEV_URL = 'https://demo-dev.rhinohealth.com/api/'#
DEMO_URL = 'https://demo-prod.rhinohealth.com/api'#
PROD_API_URL = 'https://prod.rhinohealth.com/api/'#
class rhino_health.lib.constants.Dashboard#

Which dashboard serves the environment

LOCALHOST_URL = 'http://localhost:3000'#
DEV_URL = 'https://dev-dashboard.rhinohealth.com'#
DEMO_DEV_URL = 'https://demo-dev-dashboard.rhinohealth.com'#
DEMO_URL = 'https://demo.rhinohealth.com'#
PROD_URL = 'https://dashboard.rhinohealth.com'#
class rhino_health.lib.constants.ECRService#

Which ecr serves the environment

TEST_URL = 'localhost:5201'#
LOCALHOST_URL = 'localhost:5001'#
DEV_URL = '913123821419.dkr.ecr.us-east-1.amazonaws.com'#
DEMO_DEV_URL = '913123821419.dkr.ecr.us-east-1.amazonaws.com'#
DEMO_URL = '913123821419.dkr.ecr.us-east-1.amazonaws.com'#
PROD_URL = '913123821419.dkr.ecr.us-east-1.amazonaws.com'#
rhino_health.lib.constants.BASE_URL_TO_DASHBOARD#

Mapping of Base URL to Dashboard