Remove the class Service in favor of service_type ENUM #302
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
CREATE TYPE cdb_dataservices_server.service_type AS ENUM (
|
||||||
|
'isolines',
|
||||||
|
'hires_geocoder',
|
||||||
|
'routing',
|
||||||
|
'observatory',
|
||||||
|
'internal_geocoder'
|
||||||
|
);
|
||||||
|
|
||||||
CREATE TYPE cdb_dataservices_server.service_params AS (
|
CREATE TYPE cdb_dataservices_server.service_params AS (
|
||||||
monthly_quota NUMERIC,
|
monthly_quota NUMERIC,
|
||||||
used_quota NUMERIC,
|
used_quota NUMERIC,
|
||||||
|
|||||||
@@ -3,15 +3,6 @@ from log import MetricsDataGatherer
|
|||||||
from datetime import date
|
from datetime import date
|
||||||
import re
|
import re
|
||||||
|
|
||||||
class Service:
|
|
||||||
"""The services bound to quota"""
|
|
||||||
|
|
||||||
ISOLINES = 'isolines'
|
|
||||||
HIRES_GEOCODER = 'hires_geocoder'
|
|
||||||
ROUTING = 'routing'
|
|
||||||
OBSERVATORY = 'observatory'
|
|
||||||
INTERNAL_GEOCODER = 'internal_geocoder'
|
|
||||||
|
|
||||||
|
|
||||||
class QuotaService:
|
class QuotaService:
|
||||||
""" Class to manage all the quota operation for
|
""" Class to manage all the quota operation for
|
||||||
|
|||||||
Reference in New Issue
Block a user