Skip to content

Instantly share code, notes, and snippets.

@jt-nti
Created January 24, 2020 14:37
Show Gist options
  • Save jt-nti/b7acd8a7d77ee0534a9e50d5df9fbf4c to your computer and use it in GitHub Desktop.
Save jt-nti/b7acd8a7d77ee0534a9e50d5df9fbf4c to your computer and use it in GitHub Desktop.
JSONata expression to convert azure pipeline status to lametric DIY app format. Example source data https://dev.azure.com/Hyperledger/Fabric-Chaincode-Java/_apis/build/metrics/daily?branchName=master
{
"frames" : [
{
"text": "fabric-chaincode-java"
},
{
"chartData": $reverse([value[name='FailedBuilds'].intValue])
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment