Activity Runs - Query By Pipeline Run
查询活动基于输入筛选器条件运行。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/queryActivityruns?api-version=2018-06-01URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 | 
|---|---|---|---|---|
| factory | path | True | stringminLength: 3 maxLength: 63 pattern: ^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$ | 工厂名称。 | 
| resource | path | True | stringminLength: 1 maxLength: 90 pattern: ^[-\w\._\(\)]+$ | 资源组名称。 | 
| run | path | True | string | 管道运行标识符。 | 
| subscription | path | True | string | 订阅标识符。 | 
| api-version | query | True | string | API 版本。 | 
请求正文
| 名称 | 必需 | 类型 | 说明 | 
|---|---|---|---|
| lastUpdatedAfter | True | string (date-time) | 运行事件以“ISO 8601”格式更新的时间或之后的时间。 | 
| lastUpdatedBefore | True | string (date-time) | 运行事件以“ISO 8601”格式更新的时间或之前的时间。 | 
| continuationToken | string | 用于获取下一页结果的延续标记。 第一页的 Null。 | |
| filters | 筛选器列表。 | ||
| orderBy | OrderBy 选项的列表。 | 
响应
| 名称 | 类型 | 说明 | 
|---|---|---|
| 200 OK | 还行。 | |
| Other Status Codes | 从 Azure 数据工厂服务收到的错误响应。 | 
安全性
azure_auth
Azure Active Directory OAuth2 Flow。
					类型: 
					oauth2
					流向: 
					implicit
					授权 URL: 
					https://login.microsoftonline.com/common/oauth2/authorize
			
作用域
| 名称 | 说明 | 
|---|---|
| user_impersonation | 模拟用户帐户 | 
示例
ActivityRuns_QueryByPipelineRun   
			示例请求
POST https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/pipelineruns/2f7fdb90-5df1-4b8e-ac2f-064cfa58202b/queryActivityruns?api-version=2018-06-01
{
  "lastUpdatedAfter": "2018-06-16T00:36:44.3345758Z",
  "lastUpdatedBefore": "2018-06-16T00:49:48.3686473Z"
}
示例响应
Date: Sat, 16 Jun 2018 00:40:13 GMT
X-Content-Type-Options: nosniff
x-ms-ratelimit-remaining-subscription-writes: 1187
x-ms-request-id: 5465cf41-2e71-4ce6-8db4-9de1b92ffda9
x-ms-correlation-request-id: 5465cf41-2e71-4ce6-8db4-9de1b92ffda9{
  "value": [
    {
      "activityRunEnd": "2018-06-16T00:38:11.5445431Z",
      "activityName": "ExampleForeachActivity",
      "activityRunStart": "2018-06-16T00:37:49.4804925Z",
      "activityType": "ForEach",
      "durationInMs": 22064,
      "retryAttempt": null,
      "error": {
        "errorCode": "",
        "message": "",
        "failureType": "",
        "target": "ExampleForeachActivity"
      },
      "activityRunId": "f30c5514-fb85-43ed-9fa4-768d42e58680",
      "input": {},
      "linkedServiceName": "",
      "output": {},
      "userProperties": {},
      "pipelineName": "examplePipeline",
      "pipelineRunId": "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b",
      "status": "Succeeded"
    },
    {
      "activityRunEnd": "2018-06-16T00:38:07.4188923Z",
      "activityName": "ExampleCopyActivity",
      "activityRunStart": "2018-06-16T00:37:50.2460952Z",
      "activityType": "Copy",
      "durationInMs": 17172,
      "retryAttempt": null,
      "error": {
        "errorCode": "",
        "message": "",
        "failureType": "",
        "target": "ExampleCopyActivity"
      },
      "activityRunId": "a96678c8-7167-4f00-b629-afccfbad4e51",
      "input": {
        "source": {
          "type": "BlobSource"
        },
        "sink": {
          "type": "BlobSink"
        },
        "dataIntegrationUnits": 32
      },
      "linkedServiceName": "",
      "output": {
        "dataRead": 142000,
        "dataWritten": 142000,
        "filesRead": 1,
        "filesWritten": 1,
        "copyDuration": 6,
        "throughput": 23.112,
        "errors": [],
        "effectiveIntegrationRuntime": "DefaultIntegrationRuntime (East US)",
        "usedCloudDataMovementUnits": 4,
        "usedParallelCopies": 1,
        "executionDetails": [
          {
            "source": {
              "type": "AzureBlob"
            },
            "sink": {
              "type": "AzureBlob"
            },
            "status": "Succeeded",
            "start": "2018-06-16T00:37:50.68834Z",
            "duration": 6,
            "usedCloudDataMovementUnits": 4,
            "usedParallelCopies": 1,
            "detailedDurations": {
              "queuingDuration": 4,
              "transferDuration": 2
            }
          }
        ]
      },
      "userProperties": {},
      "pipelineName": "examplePipeline",
      "pipelineRunId": "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b",
      "status": "Succeeded"
    }
  ]
}定义
| 名称 | 说明 | 
|---|---|
| Activity | 有关管道中运行的活动的信息。 | 
| Activity | 列表活动运行。 | 
| Cloud | 定义 Azure 数据工厂错误响应结构的对象。 | 
| Run | 列出运行的查询参数。 | 
| Run | 列出运行的查询筛选器选项。 | 
| Run | 要用于筛选器的参数名称。 允许的作数查询管道运行是 PipelineName、RunStart、RunEnd 和 Status;到查询活动运行的是 ActivityName、ActivityRunStart、ActivityRunEnd、ActivityType 和 Status,以及查询触发器运行是 TriggerName、TriggerRunTimestamp 和 Status。 | 
| Run | 要用于筛选器的运算符。 | 
| Run | 参数的排序顺序。 | 
| Run | 一个对象,用于按列表运行的选项提供顺序。 | 
| Run | 要用于排序依据的参数名称。 管道运行允许的参数是 PipelineName、RunStart、RunEnd 和 Status;对于活动运行,为 ActivityName、ActivityRunStart、ActivityRunEnd 和 Status;对于触发器运行,为 TriggerName、TriggerRunTimestamp 和 Status。 | 
ActivityRun 
			
			有关管道中运行的活动的信息。
| 名称 | 类型 | 说明 | 
|---|---|---|
| activityName | string | 活动的名称。 | 
| activityRunEnd | string (date-time) | 活动运行的结束时间采用“ISO 8601”格式。 | 
| activityRunId | string | 活动运行的 ID。 | 
| activityRunStart | string (date-time) | 活动的开始时间以“ISO 8601”格式运行。 | 
| activityType | string | 活动的类型。 | 
| durationInMs | integer | 活动运行的持续时间。 | 
| error | object | 活动运行中的错误(如果有)。 | 
| input | object | 活动的输入。 | 
| linkedServiceName | string | 计算链接服务的名称。 | 
| output | object | 活动的输出。 | 
| pipelineName | string | 管道的名称。 | 
| pipelineRunId | string | 管道运行的 ID。 | 
| status | string | 活动运行的状态。 | 
ActivityRunsQueryResponse   
			
			列表活动运行。
| 名称 | 类型 | 说明 | 
|---|---|---|
| continuationToken | string | 获取下一页结果的延续标记(如果存在任何剩余的结果),否则为 null。 | 
| value | 活动运行列表。 | 
CloudError 
			
			定义 Azure 数据工厂错误响应结构的对象。
| 名称 | 类型 | 说明 | 
|---|---|---|
| error.code | string | 错误代码。 | 
| error.details | 包含其他错误详细信息的数组。 | |
| error.message | string | 错误信息。 | 
| error.target | string | 与错误关联的请求中的属性名称/路径。 | 
RunFilterParameters  
			
			列出运行的查询参数。
| 名称 | 类型 | 说明 | 
|---|---|---|
| continuationToken | string | 用于获取下一页结果的延续标记。 第一页的 Null。 | 
| filters | 筛选器列表。 | |
| lastUpdatedAfter | string (date-time) | 运行事件以“ISO 8601”格式更新的时间或之后的时间。 | 
| lastUpdatedBefore | string (date-time) | 运行事件以“ISO 8601”格式更新的时间或之前的时间。 | 
| orderBy | OrderBy 选项的列表。 | 
RunQueryFilter  
			
			列出运行的查询筛选器选项。
| 名称 | 类型 | 说明 | 
|---|---|---|
| operand | 要用于筛选器的参数名称。 允许的作数查询管道运行是 PipelineName、RunStart、RunEnd 和 Status;到查询活动运行的是 ActivityName、ActivityRunStart、ActivityRunEnd、ActivityType 和 Status,以及查询触发器运行是 TriggerName、TriggerRunTimestamp 和 Status。 | |
| operator | 要用于筛选器的运算符。 | |
| values | string[] | 筛选器值列表。 | 
RunQueryFilterOperand   
			
			要用于筛选器的参数名称。 允许的作数查询管道运行是 PipelineName、RunStart、RunEnd 和 Status;到查询活动运行的是 ActivityName、ActivityRunStart、ActivityRunEnd、ActivityType 和 Status,以及查询触发器运行是 TriggerName、TriggerRunTimestamp 和 Status。
| 值 | 说明 | 
|---|---|
| PipelineName | |
| Status | |
| RunStart | |
| RunEnd | |
| ActivityName | |
| ActivityRunStart | |
| ActivityRunEnd | |
| ActivityType | |
| TriggerName | |
| TriggerRunTimestamp | |
| RunGroupId | |
| LatestOnly | 
RunQueryFilterOperator   
			
			要用于筛选器的运算符。
| 值 | 说明 | 
|---|---|
| Equals | |
| NotEquals | |
| In | |
| NotIn | 
RunQueryOrder  
			
			参数的排序顺序。
| 值 | 说明 | 
|---|---|
| ASC | |
| DESC | 
RunQueryOrderBy   
			
			一个对象,用于按列表运行的选项提供顺序。
| 名称 | 类型 | 说明 | 
|---|---|---|
| order | 参数的排序顺序。 | |
| orderBy | 要用于排序依据的参数名称。 管道运行允许的参数是 PipelineName、RunStart、RunEnd 和 Status;对于活动运行,为 ActivityName、ActivityRunStart、ActivityRunEnd 和 Status;对于触发器运行,为 TriggerName、TriggerRunTimestamp 和 Status。 | 
RunQueryOrderByField   
			
			要用于排序依据的参数名称。 管道运行允许的参数是 PipelineName、RunStart、RunEnd 和 Status;对于活动运行,为 ActivityName、ActivityRunStart、ActivityRunEnd 和 Status;对于触发器运行,为 TriggerName、TriggerRunTimestamp 和 Status。
| 值 | 说明 | 
|---|---|
| RunStart | |
| RunEnd | |
| PipelineName | |
| Status | |
| ActivityName | |
| ActivityRunStart | |
| ActivityRunEnd | |
| TriggerName | |
| TriggerRunTimestamp |