Creating Relevance To Query Last Modified Time of All fixlets in a Site?

(imported topic written by jalajara)

Hi all, is there any way I can use a query to check what the last modified time of all fixlets in a site are? I know theres a field for this when you download the individual fixlets but im looking to avoid having to redownload them unless their contents changed.

Thanks,

(imported comment written by JasonWalker)

Are you trying to do this in Client Relevance, or in Session Relevance (that you’d use in the Console Presentation Debugger, custom Console Dashboard, or Web Reports Dashboard)? If in Session Relevance, you can do this:

(id of it, link of it, modification time of it) of fixlets of bes custom site whose (name of it = "MY_CUSTOM_SITE")

(id of it, link of it, modification time of it) of fixlets of bes site whose (name of it = "Enterprise Security")

(id of it, link of it, modification time of it) of fixlets whose (fixlet flag of it) of bes site whose (name of it = "Enterprise Security")

// Just the last 30 days
(id of it, link of it, modification time of it) of fixlets whose (fixlet flag of it and now - modification time of it < 30 * day) of bes site whose (name of it = "Enterprise Security")

Note that “everything” is a fixlet, so if you don’t use the “fixlet flag of it” filter as in the third and fourth queries, you’ll see Fixlets, Tasks, and Analyses all together.

(imported comment written by jalajara)

Hi Jason, thanks for the response. Im actually not sure what the difference is between client and session relevance is, everything im doing is based on the IEM API and using the query resource call. Im not using any of the IEM consoles.

Ill give this a go through the API and see how it works.

Thanks,

(imported comment written by jalajara)

That works great, thank you:

>> pp iemapi.query.get(:query =>{ :relevance => "(id of it, modification time of it) of fixlets whose (fixlet flag of it and now - modification time of it < 2 * day) of bes site whose (name of it = \"Enterprise Security\")" }).xpath("//Answer[@type='integer']/text()").map{|text_element| text_element.text}
["288984901",
 "288984903",
 "288986401",
 "288991401",
 "288992703",
 "288992801",
 "288992803",
 "288993001",
 "289947501",
 "300123701",
 "300123703",
 "300123705",
 "300123707",
 "300123709",
 "300123711"]