forked from crosscloudci/ci-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate_dashboard_test_data
executable file
·46 lines (40 loc) · 1.55 KB
/
update_dashboard_test_data
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
#!/bin/bash
if [ -z "$API_HOST" ] ; then
export API_HOST=dev.vulk.co:4019
fi
echo -e "\nCoreDNS head" ; curl -qL -H 'Content-Type: application/json' -X POST -d '{
"source_key_project_monitor":
{
"source_project_id":"9",
"source_pipeline_id":"2988",
"pipeline_release_type":"head",
"source_pipeline_job_id":"31967"
}
}' http://$API_HOST/api/source_key_project_monitor
echo -e "\nPrometheus head" ; curl -qL -H 'Content-Type: application/json' -X POST -d '{
"source_key_project_monitor":
{
"source_project_id":"20",
"source_pipeline_id":"2990",
"pipeline_release_type":"head",
"source_pipeline_job_id":"31973"
}
}' http://$API_HOST/api/source_key_project_monitor
echo -e "\nKubernetes head" ; curl -qL -H 'Content-Type: application/json' -X POST -d '{
"source_key_project_monitor":
{
"source_project_id":"14",
"source_pipeline_id":"2989",
"pipeline_release_type":"head",
"source_pipeline_job_id":"31970"
}
}' http://$API_HOST/api/source_key_project_monitor
echo -e '\nKubernetes stable' ; curl -qL -H 'Content-Type: application/json' -X POST -d '{
"source_key_project_monitor":
{
"source_project_id":"14",
"source_pipeline_id":"2993",
"pipeline_release_type":"stable",
"source_pipeline_job_id":"31982"
}
}' http://$API_HOST/api/source_key_project_monitor