Azure Devops
Azure Devops checks for healthy pipeline runs.
azure-devops.yamlapiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
  name: azure-devops
spec:
  schedule: "@every 5m"
  azureDevops:
    - name: ado test
      project: Demo1
      pipeline: ^windows-
      personalAccessToken:
        value: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
      organization: flanksource
      variables:
        env: prod
      branch:
        - main
      thresholdMillis: 60000 # 60 seconds
| Field | Description | Scheme | 
|---|---|---|
| name* | Name of the check, must be unique within the canary | 
 | 
| organization* | Name of the Azure Organization | |
| personalAccessToken* | ||
| pipeline* | Name/Regexp to select the interested pipeline. | |
| project* | The name or ID of the project | |
| branch | Only match those runs that are run on these branch. | 
 | 
| thresholdMillis | Maximum duration of a run after which it's considered unhealthy | 
 | 
| variables | Only match those runs that match these variables | 
 | 
| description | Description for the check | 
 | 
| display | Expression to change the formatting of the display | |
| icon | Icon for overwriting default icon on the dashboard | |
| labels | Labels for check | 
 | 
| markFailOnEmpty | If a transformation or datasource returns empty results, the check should fail | 
 | 
| metrics | Metrics to export from | |
| test | Evaluate whether a check is healthy | |
| transform | Transform data from a check into multiple individual checks |