Prechádzať zdrojové kódy

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

Jiafu Gao 9 rokov pred
rodič
commit
89aa8956d0

+ 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>