Skip to content

Commit

Permalink
slack Vars for ML (#3559)
Browse files Browse the repository at this point in the history
  • Loading branch information
raghupathiguduri authored Sep 27, 2022
1 parent d6e9e72 commit 1eb7814
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansible/roles/ml-analytics-service/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,5 @@ ml_analytics_projects_distinctCnt_prglevel_azure_blob_path: "projects/distinctCo
ml_analytics_survey_status_output_dir : "{{ WORKDIR }}/source/survey/status/output"
ml_analytics_survey_azure_blob_path : "survey/status/"
ml_analytics_druid_survey_status_injestion_spec : '{"type":"index","spec":{"ioConfig":{"type":"index","inputSource":{"type":"azure","uris":["azure://telemetry-data-store/survey/status/sl_survey_status.json"]},"inputFormat":{"type":"json"}},"tuningConfig":{"type":"index","partitionsSpec":{"type":"dynamic"}},"dataSchema":{"dataSource":"ml-survey-status","granularitySpec":{"type":"uniform","queryGranularity":"DAY","rollup":true,"segmentGranularity":"DAY"},"timestampSpec":{"column":"updatedAt","format":"iso"},"dimensionsSpec":{"dimensions":["survey_submission_id", "submission_status", "user_id", "user_sub_type", "user_type", "state_externalId", "block_externalId", "district_externalId", "cluster_externalId", "school_externalId", "state_name", "block_name", "district_name", "cluster_name", "school_name", "board_name", "organisation_id", "organisation_name", "program_externalId", "program_id", "program_name", "survey_name", "survey_id", "survey_externalId", "created_date", "submission_date", "updatedAt", "parent_channel", "solution_name", "solution_id","private_program"]},"metricsSpec":[]}}}'
slack_token: "{{ ml_slack_token | default('') }}"
channel_name: "{{ ml_slack_channel | default('') }}"
6 changes: 6 additions & 0 deletions ansible/roles/ml-analytics-service/templates/config.j2
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,9 @@ secret_access_key = {{ ml_analytics_AWS_secret_access_key }}
region_name = {{ ml_analytics_AWS_region_name }}

bucket_name = {{ ml_analytics_AWS_bucket_name }}

[SLACK]

token = {{ slack_token }}

channel = {{ channel_name }}

0 comments on commit 1eb7814

Please sign in to comment.