MonitorProperty

The MonitorProperty element appears in an UpdateTestParameters operation invocation. The element is a name-value pair used to reset a test parameter value such as ExpirationDate or SummaryFlag.

Derived by

Restricting anyType

Attributes

Name Type Required? Default Description
name MonitorPropertyType Yes
value string Yes The value of a monitor property. The value is a string but will be parsed to whatever type is required by the associated property name. For example, if the MonitorProperty's name is SummaryFlag, the value can be only On or Off. If the MonitorProperty's name is ExpirationDate, the value must be parsed to a DateTime object at least one day later than the current date.

Content model

Always empty.

Referenced by

Example

The following example shows the MonitorProperty element as it appears in an UpdateTestParameters operation invocation.

<prov:UpdateTestParametersRequest>
   <prov:Credentials>
      <prov:UserName>erics</prov:UserName>
      <prov:Password>erics</prov:Password>
   </prov:Credentials>
   <prov:PartialUpdate monitorId="264019">
      <prov:MonitorProperties>
         <prov:MonitorProperty name="ExpirationDate"
                               value="2011-07-19T19:24:51.96"/>
      </prov:MonitorProperties>
   </prov:PartialUpdate>
</prov:UpdateTestParametersRequest>

This interface was developed to facilitate the updating of a few parameters on one or more tests without requiring you to build a complete representation of the Monitor object to be updated.