浏览代码

HPCC-15657: ESPLogging Agent: Filters Type should be enumeration, instead of free text

Jiafu Gao 9 年之前
父节点
当前提交
89aa8956d0
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 10 1
      initfiles/componentfiles/configxml/esploggingagent.xsd

+ 10 - 1
initfiles/componentfiles/configxml/esploggingagent.xsd

@@ -107,12 +107,21 @@
                 </xs:appinfo>
               </xs:annotation>
             </xs:attribute>
-            <xs:attribute name="type" type="xs:string" use="optional">
+            <xs:attribute name="type" use="optional">
               <xs:annotation>
                 <xs:appinfo>
                   <colIndex>2</colIndex>
                 </xs:appinfo>
               </xs:annotation>
+              <xs:simpleType>
+                <xs:restriction base="xs:string">
+                  <xs:enumeration value="ESPContext"/>
+                  <xs:enumeration value="UserContext"/>
+                  <xs:enumeration value="UserRequest"/>
+                  <xs:enumeration value="UserResponse"/>
+                  <xs:enumeration value="BackEndResponse"/>
+                 </xs:restriction>
+               </xs:simpleType>              
             </xs:attribute>
           </xs:complexType>
         </xs:element>