Skip to content

Commit

Permalink
Add pipeline policy and Elapsed Time Metric (#12883)
Browse files Browse the repository at this point in the history
* Add pipeline policy and ElapsedTime Policy

* adding missing objects

* fix schema validation

* fix prettier issues

Co-authored-by: Kalyan C Kesireddy <kalyanke@microsoft.com>
  • Loading branch information
kalyanrk61 and Kalyan C Kesireddy authored Feb 19, 2021
1 parent 5015df2 commit a8c9593
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,28 @@
"type": "string"
}
}
},
"policy": {
"$ref": "#/definitions/PipelinePolicy"
}
}
},
"PipelinePolicy": {
"description": "Pipeline Policy.",
"type": "object",
"properties": {
"elapsedTimeMetric": {
"$ref": "#/definitions/PipelineElapsedTimeMetricPolicy"
}
}
},
"PipelineElapsedTimeMetricPolicy": {
"description": "Pipeline ElapsedTime Metric Policy.",
"type": "object",
"properties": {
"duration": {
"description": "TimeSpan value, after which an Azure Monitoring Metric is fired.",
"type": "object"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@
"value": "@pipeline().parameters.JobId",
"type": "Expression"
}
},
"policy": {
"elapsedTimeMetric": {
"duration": "0.00:10:00"
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@
"TestVariableArray": {
"type": "Array"
}
},
"policy": {
"elapsedTimeMetric": {
"duration": "0.00:10:00"
}
}
},
"etag": "1500504f-0000-0200-0000-5cbe090f0000"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
"OutputBlobNameList": {
"type": "Array"
}
},
"policy": {
"elapsedTimeMetric": {
"duration": "0.00:10:00"
}
}
}
},
Expand Down

0 comments on commit a8c9593

Please sign in to comment.