This feature lets you know the performance impact of your deployments within seconds.
At PerfBeacon, we use the following script in our CI to run PerfBeacon against PerfBeacon:
#!/bin/bash
CURRENT_HASH=$(git rev-parse HEAD)
SITE_ID='<siteId>'
TOKEN='<token>'
curl --request POST \
--url https://app.perfbeacon.com/v1/deploys \
--header 'content-type: application/json' \
--data "{\"token\": \"${TOKEN}\", \"site_id\": \"${SITE_ID}\", \"commit_id\": \"${CURRENT_HASH}\"}"
sample response to the above request:
{
"id":"<deployId>",
"site_id":"<siteId>",
"notes":{
"commit_id":"<git hash>"
},
"created_at":"2020-02-13T21:57:21.357Z",
"updated_at":"2020-02-13T21:57:21.357Z"
}