diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json index dba06672f29c..07483dbc35ee 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/entityTypes/Pipeline.json @@ -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" } } }, diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json index 244732eeda4b..1a041c5457ba 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json @@ -76,6 +76,11 @@ "value": "@pipeline().parameters.JobId", "type": "Expression" } + }, + "policy": { + "elapsedTimeMetric": { + "duration": "0.00:10:00" + } } } }, diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json index 82a21a869f01..f49ec1dd6d7f 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json @@ -83,6 +83,11 @@ "TestVariableArray": { "type": "Array" } + }, + "policy": { + "elapsedTimeMetric": { + "duration": "0.00:10:00" + } } }, "etag": "1500504f-0000-0200-0000-5cbe090f0000" diff --git a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json index d8f17d97dca1..ccecef5ec9de 100644 --- a/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json +++ b/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json @@ -63,6 +63,11 @@ "OutputBlobNameList": { "type": "Array" } + }, + "policy": { + "elapsedTimeMetric": { + "duration": "0.00:10:00" + } } } },