Trigger Runs - Query By Factory
Query trigger runs.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryTriggerRuns?api-version=2018-06-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
factory
|
path | True |
string |
The factory name. Regex pattern: |
resource
|
path | True |
string |
The resource group name. Regex pattern: |
subscription
|
path | True |
string |
The subscription identifier. |
api-version
|
query | True |
string |
The API version. |
Request Body
Name | Required | Type | Description |
---|---|---|---|
lastUpdatedAfter | True |
string |
The time at or after which the run event was updated in 'ISO 8601' format. |
lastUpdatedBefore | True |
string |
The time at or before which the run event was updated in 'ISO 8601' format. |
continuationToken |
string |
The continuation token for getting the next page of results. Null for first page. |
|
filters |
List of filters. |
||
orderBy |
List of OrderBy option. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK. |
|
Other Status Codes |
An error response received from the Azure Data Factory service. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
TriggerRuns_QueryByFactory
Sample Request
POST https://management.azure.com/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/queryTriggerRuns?api-version=2018-06-01
{
"lastUpdatedAfter": "2018-06-16T00:36:44.3345758Z",
"lastUpdatedBefore": "2018-06-16T00:49:48.3686473Z",
"filters": [
{
"operand": "TriggerName",
"operator": "Equals",
"values": [
"exampleTrigger"
]
}
]
}
Sample Response
Date: Sat, 16 Jun 2018 00:46:22 GMT
X-Content-Type-Options: nosniff
x-ms-ratelimit-remaining-subscription-writes: 1199
x-ms-request-id: fb328f3e-d21e-44f7-80d7-dad60c955b4d
x-ms-correlation-request-id: fb328f3e-d21e-44f7-80d7-dad60c955b4d
{
"value": [
{
"triggerName": "exampleTrigger",
"triggerRunId": "08586724970898148904457116912CU27",
"triggerType": "ScheduleTrigger",
"triggerRunTimestamp": "2018-06-16T00:43:15.660141Z",
"status": "Succeeded",
"message": "",
"properties": {
"TriggerTime": "6/16/2018 12:43:15 AM",
"ScheduleTime": "6/16/2018 12:43:14 AM"
},
"triggeredPipelines": {
"examplePipeline": "9f3ce8b3-37d7-43eb-96ac-a656c0476283"
}
}
]
}
Definitions
Name | Description |
---|---|
Cloud |
The object that defines the structure of an Azure Data Factory error response. |
Run |
Query parameters for listing runs. |
Run |
Query filter option for listing runs. |
Run |
Parameter name to be used for filter. The allowed operands to query pipeline runs are PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, ActivityRunStart, ActivityRunEnd, ActivityType and Status, and to query trigger runs are TriggerName, TriggerRunTimestamp and Status. |
Run |
Operator to be used for filter. |
Run |
Sorting order of the parameter. |
Run |
An object to provide order by options for listing runs. |
Run |
Parameter name to be used for order by. The allowed parameters to order by for pipeline runs are PipelineName, RunStart, RunEnd and Status; for activity runs are ActivityName, ActivityRunStart, ActivityRunEnd and Status; for trigger runs are TriggerName, TriggerRunTimestamp and Status. |
Trigger |
Trigger runs. |
Trigger |
A list of trigger runs. |
Trigger |
Trigger run status. |
CloudError
The object that defines the structure of an Azure Data Factory error response.
Name | Type | Description |
---|---|---|
error.code |
string |
Error code. |
error.details |
Array with additional error details. |
|
error.message |
string |
Error message. |
error.target |
string |
Property name/path in request associated with error. |
RunFilterParameters
Query parameters for listing runs.
Name | Type | Description |
---|---|---|
continuationToken |
string |
The continuation token for getting the next page of results. Null for first page. |
filters |
List of filters. |
|
lastUpdatedAfter |
string |
The time at or after which the run event was updated in 'ISO 8601' format. |
lastUpdatedBefore |
string |
The time at or before which the run event was updated in 'ISO 8601' format. |
orderBy |
List of OrderBy option. |
RunQueryFilter
Query filter option for listing runs.
Name | Type | Description |
---|---|---|
operand |
Parameter name to be used for filter. The allowed operands to query pipeline runs are PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, ActivityRunStart, ActivityRunEnd, ActivityType and Status, and to query trigger runs are TriggerName, TriggerRunTimestamp and Status. |
|
operator |
Operator to be used for filter. |
|
values |
string[] |
List of filter values. |
RunQueryFilterOperand
Parameter name to be used for filter. The allowed operands to query pipeline runs are PipelineName, RunStart, RunEnd and Status; to query activity runs are ActivityName, ActivityRunStart, ActivityRunEnd, ActivityType and Status, and to query trigger runs are TriggerName, TriggerRunTimestamp and Status.
Name | Type | Description |
---|---|---|
ActivityName |
string |
|
ActivityRunEnd |
string |
|
ActivityRunStart |
string |
|
ActivityType |
string |
|
LatestOnly |
string |
|
PipelineName |
string |
|
RunEnd |
string |
|
RunGroupId |
string |
|
RunStart |
string |
|
Status |
string |
|
TriggerName |
string |
|
TriggerRunTimestamp |
string |
RunQueryFilterOperator
Operator to be used for filter.
Name | Type | Description |
---|---|---|
Equals |
string |
|
In |
string |
|
NotEquals |
string |
|
NotIn |
string |
RunQueryOrder
Sorting order of the parameter.
Name | Type | Description |
---|---|---|
ASC |
string |
|
DESC |
string |
RunQueryOrderBy
An object to provide order by options for listing runs.
Name | Type | Description |
---|---|---|
order |
Sorting order of the parameter. |
|
orderBy |
Parameter name to be used for order by. The allowed parameters to order by for pipeline runs are PipelineName, RunStart, RunEnd and Status; for activity runs are ActivityName, ActivityRunStart, ActivityRunEnd and Status; for trigger runs are TriggerName, TriggerRunTimestamp and Status. |
RunQueryOrderByField
Parameter name to be used for order by. The allowed parameters to order by for pipeline runs are PipelineName, RunStart, RunEnd and Status; for activity runs are ActivityName, ActivityRunStart, ActivityRunEnd and Status; for trigger runs are TriggerName, TriggerRunTimestamp and Status.
Name | Type | Description |
---|---|---|
ActivityName |
string |
|
ActivityRunEnd |
string |
|
ActivityRunStart |
string |
|
PipelineName |
string |
|
RunEnd |
string |
|
RunStart |
string |
|
Status |
string |
|
TriggerName |
string |
|
TriggerRunTimestamp |
string |
TriggerRun
Trigger runs.
Name | Type | Description |
---|---|---|
dependencyStatus |
object |
Status of the upstream pipelines. |
message |
string |
Trigger error message. |
properties |
object |
List of property name and value related to trigger run. Name, value pair depends on type of trigger. |
runDimension |
object |
Run dimension for which trigger was fired. |
status |
Trigger run status. |
|
triggerName |
string |
Trigger name. |
triggerRunId |
string |
Trigger run id. |
triggerRunTimestamp |
string |
Trigger run start time. |
triggerType |
string |
Trigger type. |
triggeredPipelines |
object |
List of pipeline name and run Id triggered by the trigger run. |
TriggerRunsQueryResponse
A list of trigger runs.
Name | Type | Description |
---|---|---|
continuationToken |
string |
The continuation token for getting the next page of results, if any remaining results exist, null otherwise. |
value |
List of trigger runs. |
TriggerRunStatus
Trigger run status.
Name | Type | Description |
---|---|---|
Failed |
string |
|
Inprogress |
string |
|
Succeeded |
string |