Skip to content

Commit

Permalink
feat: add Handler config example
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMin5 committed Dec 17, 2023
1 parent 68d29d8 commit dfaab4f
Showing 1 changed file with 33 additions and 25 deletions.
58 changes: 33 additions & 25 deletions src/spaceone/cost_analysis/conf/global_conf.py
Original file line number Diff line number Diff line change
@@ -1,40 +1,48 @@
DATABASE_AUTO_CREATE_INDEX = True
DATABASES = {
'default': {
'db': 'cost-analysis',
'host': 'localhost',
'port': 27017,
'username': '',
'password': ''
"default": {
"db": "cost-analysis",
"host": "localhost",
"port": 27017,
"username": "",
"password": "",
}
}

CACHES = {
'default': {},
'local': {
'backend': 'spaceone.core.cache.local_cache.LocalCache',
'max_size': 128,
'ttl': 300
}
"default": {},
"local": {
"backend": "spaceone.core.cache.local_cache.LocalCache",
"max_size": 128,
"ttl": 300,
},
}

HANDLERS = {
# "authentication": [{
# "backend": "spaceone.core.handler.authentication_handler:SpaceONEAuthenticationHandler"
# }],
# "authorization": [{
# "backend": "spaceone.core.handler.authorization_handler:SpaceONEAuthorizationHandler"
# }],
# "mutation": [{
# "backend": "spaceone.core.handler.mutation_handler:SpaceONEMutationHandler"
# }],
# "event": []
}

CONNECTORS = {
'SpaceConnector': {
'backend': 'spaceone.core.connector.space_connector.SpaceConnector',
'endpoints': {
'identity': 'grpc://identity:50051',
'plugin': 'grpc://plugin:50051',
'repository': 'grpc://repository:50051',
'secret': 'grpc://secret:50051',
'notification': 'grpc://notification:50051'

}
},
'DataSourcePluginConnector': {
"SpaceConnector": {
"backend": "spaceone.core.connector.space_connector.SpaceConnector",
"endpoints": {
"identity": "grpc://identity:50051",
"plugin": "grpc://plugin:50051",
"repository": "grpc://repository:50051",
"secret": "grpc://secret:50051",
"notification": "grpc://notification:50051",
},
},
"DataSourcePluginConnector": {},
}

# Scheduler Settings
Expand All @@ -47,7 +55,7 @@
# Job Settings
JOB_TIMEOUT = 600
DATA_SOURCE_SYNC_HOUR = 16 # Hour (UTC)
COST_QUERY_CACHE_TIME = 4 # Day
COST_QUERY_CACHE_TIME = 4 # Day

DEFAULT_EXCHANGE_RATE = {
# 'KRW': 1178.7,
Expand Down

0 comments on commit dfaab4f

Please sign in to comment.