QueryByModifyDate [type FilterBase]

QueryByModifyDate is supported in both ScriptFilters and MonitorFilters. If present, this element restricts the output by modify date. Multiple instances of this element are permitted so that both upper and lower bounds can be set.

Derived by

Type DateFilterType

Attributes

Name Type Required? Default Description
dateQueryType DateQueryType Yes The name of the operator used in a date filter.
queryDate dateTime Yes The date against which a particular date in a test or script is compared when the filter is applied.

Content model

Always empty

Referenced by

Example

Here is how QueryByModifyDate appears in a GetScriptsRequest:

<prov:GetScriptsRequest
   xmlns:prov="http://www.gomeznetworks.com/schemas/provisioning">
   <prov:Credentials>
      <prov:UserName>erics</prov:UserName>
      <prov:Password>erics</prov:Password>
   </prov:Credentials>
   <!--Optional:-->
   <prov:ScriptFilter>
      <prov:QueryByModifyDate dateQueryType="GreaterThan"
         queryDate="2012-06-11T20:12:26.54"/>
      <prov:QueryByModifyDate dateQueryType="LessThan"
         queryDate="2012-08-11T20:12:26.54"/>
   </prov:ScriptFilter>
</prov:GetScriptsRequest>

Here is how QueryByModifyDate appears in a GetTestsRequest:

<prov:GetTestsRequest xmlns:prov="http://www.gomeznetworks.com/schemas/provisioning">
   <prov:Credentials>
      <prov:UserName>erics</prov:UserName>
      <prov:Password>erics</prov:Password>
   </prov:Credentials>
   <!--Optional:-->
   <prov:MonitorFilter>
      <prov:QueryByModifyDate dateQueryType="GreaterThan"
         queryDate="2012-08-05T10:17:12"/>
      <prov:QueryByModifyDate dateQueryType="LessThanOrEqualTo"
         queryDate="2012-08-10T10:17:12"/>
   </prov:MonitorFilter>
</prov:GetTestsRequest>

In the first example, the output of a GetScripts operation invocation is restricted by modify date range. In the second example, the output of a GetTests operation invocation is restricted by modify date range. See the help page for DateQueryType for a description of all the date comparison operators that are supported in the interface.