Types Node - Documentation for Truesight Server Automation 22.2

The types node presents various types of data used in TrueSight Server Automation as accepted, for example, by rules, properties, or configuration objects.

The types node can contain the following data type nodes:

Note

For built-in data types — enumerations, property classes, and configuration objects with built-in="true", as well as all primitives — definitions reflect the current configuration; you cannot use the content format file to define new built-in data types or to modify the definitions of existing built-in data types.

Primitives data type

Primitives are the most basic data forms, such as those based on simple strings or numbers. For each primitive, you specify an ID and a name, as well as a list of operators supported by the primitive.

Note

If an operator uses a different data type for the right-hand-side operand (as compared to the left-hand-side operand), that type appears in the rhs-type attribute before the id attribute. If the rhs-type is List, the additional rhs-backing-type attribute specifies the type of list (for example: Primitive:Decimal).

The ID of a primitive always begins with the Primitive: prefix.

The following XML code defines a primitive data type named Decimal.

<primitives>
   <primitive name="Decimal" id="Primitive:Decimal">
      <operators>
         <operator-ref id="greater than or equal to"/>
         <operator-ref rhs-type="Range:Primitive:Decimal Range" id="between"/>
         <operator-ref id="equals"/>
         <operator-ref id="does not equal"/>
         <operator-ref rhs-backing-type="Primitive:Decimal" rhs-type="List" id="is not one of"/>
         <operator-ref rhs-backing-type="Primitive:Decimal" rhs-type="List" id="is one of"/>
         <operator-ref id="greater than"/>
      </operators>
   </primitive>
</primitives>

Enumerations data type

The enumeration data type enforces a choice of values from a closed list. The ID of an enumeration always begins with the Enumeration: prefix.

The following XML code defines an enumeration data type.

<enumerations>
   <enumeration name="ServiceErrorControlEnumeration" id="Enumeration:ServiceErrorControlEnumeration" type="Primitive:String" built-in="true">
      <value name="IGNORE" id="IGNORE">IGNORE</value>
      <value name="NORMAL" id="NORMAL">NORMAL</value>
      <value name="SEVERE" id="SEVERE">SEVERE</value>
      <value name="CRITICAL" id="CRITICAL">CRITICAL</value>
   </enumeration>
</enumerations>
Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest