##// END OF EJS Templates
ini: added new key
ini: added new key

File last commit:

r112:998f0d14
r129:489ce37b
Show More
redis_keys.py
65 lines | 2.9 KiB | text/x-python | PythonLexer
project: add missing lib directory
r2 # -*- coding: utf-8 -*-
license: change the license to Apache 2.0
r112 # Copyright 2010 - 2017 RhodeCode GmbH and the AppEnlight project authors
project: add missing lib directory
r2 #
license: change the license to Apache 2.0
r112 # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
project: add missing lib directory
r2 #
license: change the license to Apache 2.0
r112 # http://www.apache.org/licenses/LICENSE-2.0
project: add missing lib directory
r2 #
license: change the license to Apache 2.0
r112 # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
project: add missing lib directory
r2
BASE = 'appenlight:data:{}'
REDIS_KEYS = {
'tasks': {
'add_reports_lock': BASE.format('add_reports_lock:{}'),
'add_logs_lock': BASE.format('add_logs_lock:{}'),
},
'counters': {
tasks: better counters
r94 'events_per_minute_per_user': BASE.format(
'events_per_minute_per_user:{}:{}'),
project: add missing lib directory
r2 'reports_per_minute': BASE.format('reports_per_minute:{}'),
redis: some cleanups and use of pipelines for better performance
r87 'reports_per_hour_per_app': BASE.format(
'reports_per_hour_per_app:{}:{}'),
project: add missing lib directory
r2 'reports_per_type': BASE.format('reports_per_type:{}'),
'logs_per_minute': BASE.format('logs_per_minute:{}'),
redis: some cleanups and use of pipelines for better performance
r87 'logs_per_hour_per_app': BASE.format(
'logs_per_hour_per_app:{}:{}'),
project: add missing lib directory
r2 'metrics_per_minute': BASE.format('metrics_per_minute:{}'),
redis: some cleanups and use of pipelines for better performance
r87 'metrics_per_hour_per_app': BASE.format(
'metrics_per_hour_per_app:{}:{}'),
project: add missing lib directory
r2 'report_group_occurences': BASE.format('report_group_occurences:{}'),
celery: decouple report notifications from alerts
r21 'report_group_occurences_alerting': BASE.format(
'report_group_occurences_alerting:{}'),
project: add missing lib directory
r2 'report_group_occurences_10th': BASE.format(
'report_group_occurences_10th:{}'),
'report_group_occurences_100th': BASE.format(
'report_group_occurences_100th:{}'),
},
'rate_limits': {
'per_application_reports_rate_limit': BASE.format(
'per_application_reports_limit:{}:{}'),
'per_application_logs_rate_limit': BASE.format(
'per_application_logs_rate_limit:{}:{}'),
'per_application_metrics_rate_limit': BASE.format(
'per_application_metrics_rate_limit:{}:{}'),
},
tasks: include hours in stat keys
r89 'apps_that_got_new_data_per_hour': BASE.format('apps_that_got_new_data_per_hour:{}'),
project: add missing lib directory
r2 'apps_that_had_reports': BASE.format('apps_that_had_reports'),
'apps_that_had_error_reports': BASE.format('apps_that_had_error_reports'),
celery: decouple report notifications from alerts
r21 'apps_that_had_reports_alerting': BASE.format(
'apps_that_had_reports_alerting'),
'apps_that_had_error_reports_alerting': BASE.format(
'apps_that_had_error_reports_alerting'),
project: add missing lib directory
r2 'reports_to_notify_per_type_per_app': BASE.format(
'reports_to_notify_per_type_per_app:{}:{}'),
celery: decouple report notifications from alerts
r21 'reports_to_notify_per_type_per_app_alerting': BASE.format(
'reports_to_notify_per_type_per_app_alerting:{}:{}'),
project: add missing lib directory
r2 'seen_tag_list': BASE.format('seen_tag_list')
}