QueryByFactory使用函数 [英] QueryByFactory using functions
问题描述
我正在尝试查询所有最新的管道运行(每个管道一个),我认为RunQueryFilter的LatestOnly操作数应该可以解决问题。其他操作数(如 ' RunStart',
'RunEnd','ActivityName')工作得很好,但是我无法让LatestOnly去做我认为它应该做的事情。一如既往,文档非常少,没有可用的示例,除非您可以指向我一些秘密链接?
这是我尝试的内容:
&NBSP; &NBSP; var lLatestonly = new List< string>();
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; lLatestonly.Add(QUOT;真"); //也试过1和真值
&NBSP; &NBSP; &NBSP; &NBSP; &NBSP; var latest = new RunQueryFilter(" LatestOnly"," Equals",llatestonly);
感谢任何帮助,
谢谢!
Hello AzureNick,感谢您的咨询。 您对LatestOnly的期望是什么,以及它与您所获得的相比如何?
当我在GUI中尝试该功能时,我发现的差异在于是否显示重新运行历史记录。  ;这意味着,如果我在两个不同的时间运行相同的管道,我看到两者都枯萎了(Hide All Rerun History / LatestOnly)打开。
那么如果我去重新运行一个现有的管道运行,添加另一个条目。 启用(隐藏所有重新运行历史/ LatestOnly)会隐藏除最近的所有内容。
我没有很好地解释,所以这里有一些图片。
I'm trying to query all the latest pipeline runs (one for each pipeline), and I figured RunQueryFilter's LatestOnly operand should do the trick. The other operands (like 'RunStart', 'RunEnd', 'ActivityName') work nicely, but I'm unable to get LatestOnly to do what I think it should do. As always, documentation is very minimal and no examples are available, unless you can point me to some secret link?
Here's what I tried:
var lLatestonly = new List<string>();
lLatestonly.Add("True"); //also tried with 1 and true values
var latest = new RunQueryFilter("LatestOnly", "Equals", lLatestonly);
Any help appreciated,
Thanks!
Hello AzureNick and thank you for your inquiry. What did you expect LatestOnly to do, and how did it compare to what you got?
When I try that feature in the GUI, the difference I find, is whether re-run history is shown. This means that if I run the same pipeline two distinct times, I see both wither or not (Hide All Rerun History / LatestOnly) is turned on.
Then if I go and re-run an existing pipeline run, another entry is added. Enabling (Hide All Rerun History / LatestOnly) hides all but the most recent.
I haven't explained very well, so here are some pictures.
这篇关于QueryByFactory使用函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!