File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 11
11
steps :
12
12
- name : Checkout Repository
13
13
uses : actions/checkout@v2
14
+
15
+ - name : Configure AWS Credentials
16
+ uses : aws-actions/configure-aws-credentials@v1
17
+ with :
18
+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
19
+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
20
+ aws-region : us-east-1
21
+
14
22
- uses : actions/setup-python@v2
15
23
with :
16
24
python-version : ' 3.x'
25
+
17
26
- run : pip install tox
27
+
18
28
- name : Run smoke tests
29
+ id : distribution-availability
19
30
run : tox -c tox-distributioncheck.ini
31
+
32
+ - name : Publish metric on X-Ray Go SDK distribution availability
33
+ if : ${{ always() }}
34
+ run : |
35
+ if [[ "${{ steps.distribution-availability.outcome }}" == "failure" ]]; then
36
+ aws cloudwatch put-metric-data --metric-name XRayPythonSDKDistributionAvailability --dimensions failure=rate --namespace MonitorSDK --value 1 --timestamp $(date +%s)
37
+ else
38
+ aws cloudwatch put-metric-data --metric-name XRayPythonSDKDistributionAvailability --dimensions failure=rate --namespace MonitorSDK --value 0 --timestamp $(date +%s)
39
+ fi
You can’t perform that action at this time.
0 commit comments