2015-06-04 14:59:34 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
# Copyright 2015 b<>com
|
|
|
|
# All Rights Reserved.
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
|
|
|
# Audit Template
|
|
|
|
AUDIT_TEMPLATE_FIELDS = [
|
|
|
|
'uuid', 'created_at', 'updated_at', 'deleted_at',
|
2016-09-02 12:08:12 +03:00
|
|
|
'description', 'name', 'extra', 'goal_name', 'strategy_name', 'scope']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
|
|
|
AUDIT_TEMPLATE_FIELD_LABELS = [
|
|
|
|
'UUID', 'Created At', 'Updated At', 'Deleted At',
|
2016-09-02 12:08:12 +03:00
|
|
|
'Description', 'Name', 'Extra', 'Goal', 'Strategy', 'Audit Scope']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
2016-05-03 10:04:34 +02:00
|
|
|
AUDIT_TEMPLATE_SHORT_LIST_FIELDS = [
|
|
|
|
'uuid', 'name', 'goal_name', 'strategy_name']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
2016-05-03 10:04:34 +02:00
|
|
|
AUDIT_TEMPLATE_SHORT_LIST_FIELD_LABELS = ['UUID', 'Name', 'Goal', 'Strategy']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
|
|
|
# Audit
|
|
|
|
AUDIT_FIELDS = ['uuid', 'created_at', 'updated_at', 'deleted_at',
|
2016-06-22 15:15:19 -04:00
|
|
|
'deadline', 'state', 'audit_type',
|
2016-09-02 12:08:12 +03:00
|
|
|
'parameters', 'interval', 'goal_name', 'strategy_name',
|
|
|
|
'scope']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
|
|
|
AUDIT_FIELD_LABELS = ['UUID', 'Created At', 'Updated At', 'Deleted At',
|
2016-06-22 15:15:19 -04:00
|
|
|
'Deadline', 'State', 'Audit Type',
|
2016-09-02 12:08:12 +03:00
|
|
|
'Parameters', 'Interval', 'Goal', 'Strategy',
|
|
|
|
'Audit Scope']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
2016-06-22 15:15:19 -04:00
|
|
|
AUDIT_SHORT_LIST_FIELDS = ['uuid', 'audit_type',
|
|
|
|
'state', 'goal_name', 'strategy_name']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
2016-06-22 15:15:19 -04:00
|
|
|
AUDIT_SHORT_LIST_FIELD_LABELS = ['UUID', 'Audit Type', 'State', 'Goal',
|
|
|
|
'Strategy']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
|
|
|
# Action Plan
|
|
|
|
ACTION_PLAN_FIELDS = ['uuid', 'created_at', 'updated_at', 'deleted_at',
|
2016-08-19 12:03:51 +02:00
|
|
|
'audit_uuid', 'strategy_name', 'state',
|
|
|
|
'efficacy_indicators', 'global_efficacy']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
|
|
|
ACTION_PLAN_FIELD_LABELS = ['UUID', 'Created At', 'Updated At', 'Deleted At',
|
2016-08-19 12:03:51 +02:00
|
|
|
'Audit', 'Strategy', 'State',
|
|
|
|
'Efficacy indicators', 'Global efficacy']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
2016-05-03 10:04:34 +02:00
|
|
|
ACTION_PLAN_SHORT_LIST_FIELDS = ['uuid', 'audit_uuid', 'state',
|
|
|
|
'updated_at', 'global_efficacy']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
2016-05-03 10:04:34 +02:00
|
|
|
ACTION_PLAN_SHORT_LIST_FIELD_LABELS = ['UUID', 'Audit', 'State',
|
|
|
|
'Updated At', 'Global efficacy']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
|
|
|
# Action
|
|
|
|
ACTION_FIELDS = ['uuid', 'created_at', 'updated_at', 'deleted_at', 'next_uuid',
|
2016-04-28 17:48:08 +02:00
|
|
|
'state', 'action_plan_uuid', 'action_type',
|
|
|
|
'input_parameters']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
|
|
|
ACTION_FIELD_LABELS = ['UUID', 'Created At', 'Updated At', 'Deleted At',
|
2016-04-28 17:48:08 +02:00
|
|
|
'Next Action', 'State', 'Action Plan', 'Action',
|
|
|
|
'Parameters']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
|
|
|
ACTION_SHORT_LIST_FIELDS = ['uuid', 'next_uuid',
|
|
|
|
'state', 'action_plan_uuid', 'action_type']
|
|
|
|
|
|
|
|
ACTION_SHORT_LIST_FIELD_LABELS = ['UUID', 'Next Action', 'State',
|
|
|
|
'Action Plan', 'Action']
|
2015-10-23 14:53:03 +02:00
|
|
|
# Goals
|
|
|
|
|
2016-05-03 10:04:34 +02:00
|
|
|
GOAL_FIELDS = ['uuid', 'name', 'display_name', 'efficacy_specification']
|
2015-10-23 14:53:03 +02:00
|
|
|
|
2016-05-03 10:04:34 +02:00
|
|
|
GOAL_FIELD_LABELS = ['UUID', 'Name', 'Display name', 'Efficacy specification']
|
2015-10-23 14:53:03 +02:00
|
|
|
|
2016-04-12 11:38:15 +02:00
|
|
|
GOAL_SHORT_LIST_FIELDS = ['uuid', 'name', 'display_name']
|
2015-10-23 14:53:03 +02:00
|
|
|
|
2016-04-12 11:38:15 +02:00
|
|
|
GOAL_SHORT_LIST_FIELD_LABELS = ['UUID', 'Name', 'Display name']
|
2015-06-04 14:59:34 +02:00
|
|
|
|
2016-04-20 17:29:08 +02:00
|
|
|
# Strategies
|
|
|
|
|
2016-05-26 05:22:13 +00:00
|
|
|
STRATEGY_FIELDS = ['uuid', 'name', 'display_name', 'goal_name',
|
|
|
|
'parameters_spec']
|
2016-04-20 17:29:08 +02:00
|
|
|
|
2016-05-26 05:22:13 +00:00
|
|
|
STRATEGY_FIELD_LABELS = ['UUID', 'Name', 'Display name', 'Goal',
|
|
|
|
'Parameters spec']
|
2016-04-20 17:29:08 +02:00
|
|
|
|
2016-06-20 11:09:09 +03:00
|
|
|
STRATEGY_SHORT_LIST_FIELDS = ['uuid', 'name', 'display_name', 'goal_name']
|
2016-04-20 17:29:08 +02:00
|
|
|
|
2016-06-20 11:09:09 +03:00
|
|
|
STRATEGY_SHORT_LIST_FIELD_LABELS = ['UUID', 'Name', 'Display name', 'Goal']
|
2016-04-20 17:29:08 +02:00
|
|
|
|
2015-06-04 14:59:34 +02:00
|
|
|
# Metric Collector
|
|
|
|
METRIC_COLLECTOR_FIELDS = ['uuid', 'created_at', 'updated_at', 'deleted_at',
|
|
|
|
'endpoint', 'category']
|
|
|
|
|
|
|
|
METRIC_COLLECTOR_FIELD_LABELS = ['UUID', 'Created At', 'Updated At',
|
|
|
|
'Deleted At', 'Endpoint URL',
|
|
|
|
'Metric Category']
|
|
|
|
|
|
|
|
METRIC_COLLECTOR_SHORT_LIST_FIELDS = ['uuid', 'endpoint', 'category']
|
|
|
|
|
|
|
|
METRIC_COLLECTOR_SHORT_LIST_FIELD_LABELS = ['UUID', 'Endpoint URL',
|
|
|
|
'Metric Category']
|
2016-06-15 11:51:56 +00:00
|
|
|
# Scoring Engines
|
|
|
|
SCORING_ENGINE_FIELDS = ['uuid', 'name', 'description', 'metainfo']
|
|
|
|
SCORING_ENGINE_FIELD_LABELS = ['UUID', 'Name', 'Description', 'Metainfo']
|
|
|
|
|
|
|
|
SCORING_ENGINE_SHORT_LIST_FIELDS = ['uuid', 'name', 'description']
|
|
|
|
SCORING_ENGINE_SHORT_LIST_FIELD_LABELS = ['UUID', 'Name', 'Description']
|
2016-09-21 00:13:20 +03:00
|
|
|
|
|
|
|
# Services
|
|
|
|
SERVICE_FIELDS = ['id', 'name', 'host', 'status', 'last_seen_up']
|
|
|
|
SERVICE_FIELD_LABELS = ['ID', 'Name', 'Host', 'Status', 'Last seen up']
|
|
|
|
SERVICE_SHORT_LIST_FIELDS = ['id', 'name', 'host', 'status']
|
|
|
|
SERVICE_SHORT_LIST_FIELD_LABELS = ['ID', 'Name', 'Host', 'Status']
|