Fix variable names to follow structure

This commit is contained in:
Oscar Andersson 2018-12-27 22:28:36 +01:00
parent ba63276df3
commit ec85c4b4a6
5 changed files with 20 additions and 20 deletions

View file

@ -179,19 +179,19 @@ class INIParser(object):
request_total_run_seconds = self.config.getint(section, 'request_total_run_seconds')
request_issues_counts = self.config.getboolean(section, 'get_request_issues_counts')
issue_status_counts = self.config.getboolean(section, 'get_issue_status_counts')
request_issues_type_run_seconds = self.config.getint(section, 'request_type_issues_run_seconds')
issue_status_run_seconds = self.config.getint(section, 'issue_status_run_seconds')
issues_total_counts = self.config.getboolean(section, 'get_issues_total_counts')
issue_total_counts = self.config.getboolean(section, 'get_issue_total_counts')
issues_total_run_seconds = self.config.getint(section, 'issues_total_run_seconds')
issue_total_run_seconds = self.config.getint(section, 'issue_total_run_seconds')
server = OmbiServer(server_id, scheme + url, apikey, verify_ssl, request_type_counts,
request_type_run_seconds, request_total_counts,
request_total_run_seconds, request_issues_counts,
request_issues_type_run_seconds, issues_total_counts,
issues_total_run_seconds)
request_total_run_seconds, issue_status_counts,
issue_status_run_seconds, issue_total_counts,
issue_total_run_seconds)
if service == 'sickchill':
get_missing = self.config.getboolean(section, 'get_missing')

View file

@ -166,7 +166,7 @@ class OmbiAPI(object):
self.dbmanager.write_points(influx_payload)
def get_issues_counts(self):
def get_issue_counts(self):
now = datetime.now(timezone.utc).astimezone().isoformat()
endpoint = '/api/v1/Issues/count'

View file

@ -61,10 +61,10 @@ class OmbiServer(NamedTuple):
request_type_run_seconds: int = 30
request_total_counts: bool = False
request_total_run_seconds: int = 30
request_issues_counts: bool = False
request_issues_type_run_seconds: int = 30
issues_total_counts: bool = False
issues_total_run_seconds: int = 30
issue_status_counts: bool = False
issue_status_run_seconds: int = 30
issue_total_counts: bool = False
issue_total_run_seconds: int = 30
class TautulliServer(NamedTuple):