File tree 7 files changed +15
-254
lines changed
7 files changed +15
-254
lines changed Original file line number Diff line number Diff line change 1
1
name : sendgrid metrics daily
2
2
3
- # Controls when the action will run.
4
3
on :
5
4
# Triggers the workflow every business day at 8AM PT
6
5
schedule :
7
6
- cron : ' 0 15 * * 1-5'
8
7
# Allows you to run this workflow manually from the Actions tab
9
8
workflow_dispatch :
10
9
11
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
12
10
jobs :
13
- # This workflow contains a single job called "actionItems"
14
11
metrics :
15
- # The type of runner that the job will run on
16
12
runs-on : ubuntu-latest
17
13
18
- # Steps represent a sequence of tasks that will be executed as part of the job
19
14
steps :
20
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21
15
- uses : actions/checkout@v2
22
16
- name : Setup Python
23
17
id : setup_python
@@ -31,15 +25,14 @@ jobs:
31
25
id : metrics_daily_sendgrid
32
26
env :
33
27
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
- GOOGLE_API_CREDS : ${{ secrets.GOOGLE_API_CREDS }}
35
28
DD_API_KEY : ${{ secrets.DATADOG_API_KEY }}
36
29
run : |
37
- source venv/bin/activate && python examples/metrics.py --period daily -- org sendgrid
30
+ source venv/bin/activate && python examples/metrics.py --org sendgrid
38
31
39
32
notify-on-failure :
40
33
name : Slack notify on failure
41
34
if : ${{ failure() }}
42
- needs : [metrics]
35
+ needs : [ metrics ]
43
36
runs-on : ubuntu-latest
44
37
steps :
45
38
- uses : rtCamp/action-slack-notify@v2
Original file line number Diff line number Diff line change 1
1
name : twilio metrics daily
2
2
3
- # Controls when the action will run.
4
3
on :
5
4
# Triggers the workflow every business day at 9AM PT
6
5
schedule :
7
6
- cron : ' 0 16 * * 1-5'
8
7
# Allows you to run this workflow manually from the Actions tab
9
8
workflow_dispatch :
10
9
11
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
12
10
jobs :
13
- # This workflow contains a single job called "actionItems"
14
11
metrics :
15
- # The type of runner that the job will run on
16
12
runs-on : ubuntu-latest
17
13
18
- # Steps represent a sequence of tasks that will be executed as part of the job
19
14
steps :
20
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21
15
- uses : actions/checkout@v2
22
16
- name : Setup Python
23
17
uses : actions/setup-python@v2
@@ -29,15 +23,14 @@ jobs:
29
23
id : metrics_daily_twilio
30
24
env :
31
25
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
- GOOGLE_API_CREDS : ${{ secrets.GOOGLE_API_CREDS }}
33
26
DD_API_KEY : ${{ secrets.DATADOG_API_KEY }}
34
27
run : |
35
- source venv/bin/activate && python examples/metrics.py --period daily -- org twilio
28
+ source venv/bin/activate && python examples/metrics.py --org twilio
36
29
37
30
notify-on-failure :
38
31
name : Slack notify on failure
39
32
if : ${{ failure() }}
40
- needs : [metrics]
33
+ needs : [ metrics ]
41
34
runs-on : ubuntu-latest
42
35
steps :
43
36
- uses : rtCamp/action-slack-notify@v2
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ source venv/bin/activate
29
29
30
30
``` bash
31
31
python ./examples/action_items.py
32
- python ./examples/metrics.py daily
33
- python ./examples/metrics.py weekly
32
+ python ./examples/metrics.py
33
+ python ./examples/metrics.py --org twilio
34
34
```
35
35
## Usage - Updating DataDog Monitors through Terraform
36
36
1 . Open a PR that includes any relevant changes to ` datadog_monitors.tf ` located in the ` terraform ` directory
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments