您好,我正在使用管道运行-按工厂查询以获取最新的pipleline RunEnd(datetime)。 我的请求的内容如下所示。
{
"lastUpdatedAfter":"2020-07-05",
"lastUpdatedBefore":"2020-11-16",
"Orderby":[{"RunEnd"}],
"filters":[{"operand":"PipelineName","operator":"Equals","values":["abc"]}]
}
当我添加orderby时,pipelinName的筛选器不起作用(否则筛选器正在工作),并且RunEnd默认按降序排序,但我需要按升序排列,并且在Microsoft artical中没有任何语法。
所以我需要
答案 0 :(得分:0)
I found the answer.
{
"lastUpdatedAfter":"@{adddays(formatDateTime(utcnow(),'yyyy-MM-dd'),-60)}",
"lastUpdatedBefore":"@{formatDateTime(utcnow(),'yyyy-MM-dd')}",
"filters":[
{"operand":"PipelineName","operator":"Equals","values":
["insighthealth_npi_at_move_to_bronze"]
},
],
"orderBy":[{"orderBy":"RunEnd","order":"DESC"}]
}