forked from Sunbird-Ed/ml-analytics-service
-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.sample
157 lines (82 loc) · 3.84 KB
/
config.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[ML_APP_NAME]
survey_app = {{ ML_SURVEY_APP_NAME }}
integrated_app = {{ ML_INTEGRATED_APP_NAME }}
[API_HEADERS]
content_type = application/json
authorization = {{ API_AUTHORIZATION_KEY }}
internal_access_token = {{ API_ACCESS_TOKEN }}
[ML_SURVEY_SERVICE_URL]
url = {{ ML_SURVEY_SERVICE }}
entity_related_end_point = assessment/api/v1/entities/relatedEntities/
user_profile_end_point = assessment/api/v1/userExtension/getProfile/
evidence_base_url = {{ EVIDENCE_BASE_URL }}
[MONGO]
# --------------
# Mongo url
#---------------
url = mongodb://{{ MONGODB_URL }}
# -----------------------
# Mongo database name
# -----------------------
database_name = {{ MONGO_DB_NAME }}
# -------------------
# Mongo Collections
# -------------------
observation_sub_collection = {{ MONGO_OBSERVATION_SUBMISSION_COLLECTION }}
solutions_collection = {{ MONGO_SOLUTION_COLLECTION }}
observations_collection = {{ MONGO_OBSERVATION_COLLECTION }}
entity_type_collection = {{ MONGO_ENTITY_TYPE_COLLECTION }}
questions_collection = {{ MONGO_QUESTION_COLLECTION }}
criteria_collection = {{ MONGO_CRITERIA_COLLECTION }}
entities_collection = {{ MONGO_ENTITIES_COLLECTION }}
programs_collection = {{ MONGO_PROGRAM_COLLECTION }}
user_roles_collection = {{ MONGO_USERROLES_COLLECTION }}
criteria_questions_collection = {{ MONGO_CRITERIA_QUESTIONS_COLLECTION }}
projects_collection = {{ MONGO_PROJECTS_COLLECTION }}
survey_submissions_collection = {{ MONGO_SURVEY_SUBMISSIONS_COLLECTION }}
survey_collection = {{ MONGO_SURVEY_COLLECTION }}
[DRUID]
metadata_url = http://{{ DRUID_URL }}/druid/coordinator/v1/datasources/
batch_url = http://{{ DRUID_URL }}/druid/indexer/v1/task
observation_status_injestion_spec = {{ DRUID_OBSERVATION_STATUS_INJESTION_SPEC }}
project_injestion_spec = {{ DRUID_PROJECT_INJESTION_SPEC }}
[KAFKA]
url = {{ KAFKA_URL }}
observation_raw_topic = {{ KAFKA_OBSERVATION_TOPIC_NAME }}
observation_druid_topic = {{ KAFKA_OBSERVATION_DRUID_TOPIC_NAME }}
observation_evidence_druid_topic = {{ KAFKA_OBSERVATION_EVIDENCE_TOPIC_NAME }}
survey_evidence_druid_topic = {{ KAFKA_SURVEY_EVIDENCE_TOPIC_NAME }}
survey_raw_topic = {{ KAFKA_SURVEY_TOPIC_NAME }}
survey_druid_topic = {{ KAFKA_SURVEY_DRUID_TOPIC_NAME }}
[LOGS]
observation_streaming_success = {{ OBSERVATION_LOG_FOLDER_PATH }}/success.log
observation_streaming_error = {{ OBSERVATION_LOG_FOLDER_PATH }}/error.log
observation_streaming_evidence_success = {{ OBSERVATION_LOG_FOLDER_PATH }}/evidence/success.log
observation_streaming_evidence_error = {{ OBSERVATION_LOG_FOLDER_PATH }}/evidence/error.log
observation_status_success = {{ OBSERVATION_LOG_FOLDER_PATH }}/status/success.log
observation_status_error = {{ OBSERVATION_LOG_FOLDER_PATH }}/status/error.log
project_success = {{ PROJECT_LOG_FOLDER_PATH }}/success.log
project_error = {{ PROJECT_LOG_FOLDER_PATH }}/error.log
survey_evidence_streaming_success = {{ SURVEY_LOG_FOLDER_PATH }}/evidence/success.log
survey_evidence_streaming_error = {{ SURVEY_LOG_FOLDER_PATH }}/evidence/error.log
survey_streaming_success = {{ SURVEY_LOG_FOLDER_PATH }}/success.log
survey_streaming_error = {{ SURVEY_LOG_FOLDER_PATH }}/error.log
[ELASTICSEARCH]
header = {'Content-Type': 'application/json'}
url_user = http://{{ ES_URL }}/users/_search/?scroll=1m
user_body = {"size": 10000,"query":{"bool":{"must":[{"match":{"_type":"common"}}]}}}
url_scroll = http://{{ ES_URL }}/_search/scroll
url_entity = http://{{ ES_URL }}/entities/_search/?scroll=1m
[AZURE]
account_name = {{ AZURE_ACCOUNT_NAME }}
sas_token = {{ AZURE_SAS_TOKEN }}
container_name = {{ AZURE_CONTAINER_NAME }}
observation_blob_path = {{ OBSERVATION_AZURE_BLOB_PATH }}
projects_blob_path = {{ PROJECT_AZURE_BLOB_PATH }}
[REDIS]
host = {{ REDIS_HOST }}
port = {{ REDIS_PORT }}
db_name = {{ REDIS_DB_NAME }}
[OUTPUT_DIR]
project = {{ PROJECT_OUTPUT_DIR }}
observation_status = {{ OBSERVATION_STATUS_OUTPUT_DIR }}