QueryByCreateDate [type FilterBase]

QueryByCreateDate is supported in both ScriptFilters and MonitorFilters. If present, this element restricts the output by create 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 QueryByCreateDate as it appears in a ScriptFilter:

<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:QueryByCreateDate dateQueryType="GreaterThan"
          queryDate="2012-06-11T20:12:26.54"/>
      <prov:QueryByCreateDate dateQueryType="LessThan"
          queryDate="2012-08-11T20:12:26.54"/>
   </prov:ScriptFilter>
</prov:GetScriptsRequest>

Here is QueryByCreateDate as it appears in a MonitorFilter:

<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:QueryByCreateDate dateQueryType="GreaterThan"
         queryDate="2012-11-07T01:00:00"/>
      <prov:QueryByCreateDate dateQueryType="LessThanOrEqualTo"
         queryDate="2012-11-07T23:59:00"/>
   </prov:MonitorFilter>
</prov:GetTestsRequest>

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