Updated Logging.xid.xml to <import> Common which is where ResultCode comes from.
Showing
1 changed file
with
363 additions
and
363 deletions
1 | <?xml version="1.0" encoding="UTF-8" ?> | 1 | <?xml version="1.0" encoding="UTF-8" ?> |
2 | 2 | ||
3 | <!-- | 3 | <!-- |
4 | Copyright (c) 2017, TeleCommunication Systems, Inc., | 4 | Copyright (c) 2017, TeleCommunication Systems, Inc., |
5 | a wholly-owned subsidiary of Comtech Telecommunications Corp. | 5 | a wholly-owned subsidiary of Comtech Telecommunications Corp. |
6 | and/or affiliates of TeleCommunication Systems, Inc. | 6 | and/or affiliates of TeleCommunication Systems, Inc. |
7 | All rights reserved. | 7 | All rights reserved. |
8 | TeleCommunication Systems, Inc. PROPRIETARY/CONFIDENTIAL. | 8 | TeleCommunication Systems, Inc. PROPRIETARY/CONFIDENTIAL. |
9 | Use is subject to license terms included in the distribution. | 9 | Use is subject to license terms included in the distribution. |
10 | --> | 10 | --> |
11 | 11 | ||
12 | <specification xmlns="https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd" | 12 | <specification xmlns="https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd" |
13 | xmlns:xid="https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd" | 13 | xmlns:xid="https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd" |
14 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 14 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
15 | xsi:schemaLocation="https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd" | 15 | xsi:schemaLocation="https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd https://xid.location.studio/schema/V1.0.0/XtensibleInterfaceDefinition.xsd" |
16 | identity="Logging.xid.xml"> | 16 | identity="Logging.xid.xml"> |
17 | <title>Tensor Logging Messages</title> | 17 | <title>Tensor Logging Messages</title> |
18 | <comment> | 18 | <comment> |
19 | This file contains the base type definitions for logging messages and data. All ENT micro-service compliant systems shall support these datatypes | 19 | This file contains the base type definitions for logging messages and data. All ENT micro-service compliant systems shall support these datatypes |
20 | for capturing various types of logging information including actionable messages, trace, and usage data. Logging messages are polymorphic and extensible | 20 | for capturing various types of logging information including actionable messages, trace, and usage data. Logging messages are polymorphic and extensible |
21 | as needed to support various types of information. | 21 | as needed to support various types of information. |
22 | </comment> | 22 | </comment> |
23 | 23 | ||
24 | <import ref="https://xid.location.studio/Tensor/V1.0.0/Definitions.xid.xml" local="Definitions.xid.xml" /> | 24 | <import ref="https://xid.location.studio/Tensor/V1.0.0/Common.xid.xml" local="Common.xid.xml" /> |
25 | 25 | ||
26 | <namespace name="Logging"> | 26 | <namespace name="Logging"> |
27 | <using namespace="Tensor"/> | 27 | <using namespace="Tensor"/> |
28 | 28 | ||
29 | <!-- | 29 | <!-- |
30 | ******************************************************* | 30 | ******************************************************* |
31 | Enumeration Definitions | 31 | Enumeration Definitions |
32 | ******************************************************* | 32 | ******************************************************* |
33 | --> | 33 | --> |
34 | <enum name="MessageType" type="Tensor.uint8" default="undefined"> | 34 | <enum name="MessageType" type="Tensor.uint8" default="undefined"> |
35 | <comment> | 35 | <comment> |
36 | Message types define the base type identifiers for logging messages. These are used to | 36 | Message types define the base type identifiers for logging messages. These are used to |
37 | identify the type of logging data. The Message type is not a closed set and can be extended as needed. | 37 | identify the type of logging data. The Message type is not a closed set and can be extended as needed. |
38 | The types defined here are common to every system. Type values below 64 are reserved for the core logging extensions | 38 | The types defined here are common to every system. Type values below 64 are reserved for the core logging extensions |
39 | Any non-core message types should define type identifiers greater than 64. | 39 | Any non-core message types should define type identifiers greater than 64. |
40 | </comment> | 40 | </comment> |
41 | <literal name="undefined" value="0"> | 41 | <literal name="undefined" value="0"> |
42 | <comment>Message type is not defined. This is a reserved value and should not be used in most situations.</comment> | 42 | <comment>Message type is not defined. This is a reserved value and should not be used in most situations.</comment> |
43 | </literal> | 43 | </literal> |
44 | <literal name="ActionMsg" value="1"> | 44 | <literal name="ActionMsg" value="1"> |
45 | <comment>Defines a message that requires some responsive action. See Tensor.Logging.ActionMsg structure for more information.</comment> | 45 | <comment>Defines a message that requires some responsive action. See Tensor.Logging.ActionMsg structure for more information.</comment> |
46 | </literal> | 46 | </literal> |
47 | <literal name="TraceMsg" value="2"> | 47 | <literal name="TraceMsg" value="2"> |
48 | <comment>Defines a message capturing software trace data typically used for debugging. See Tensor.Logging.TraceMsg structure for more information.</comment> | 48 | <comment>Defines a message capturing software trace data typically used for debugging. See Tensor.Logging.TraceMsg structure for more information.</comment> |
49 | </literal> | 49 | </literal> |
50 | <literal name="UsageMsg" value="3"> | 50 | <literal name="UsageMsg" value="3"> |
51 | <comment>Defines a message for capturing usage data. See Tensor.Logging.UsageMsg for more information.</comment> | 51 | <comment>Defines a message for capturing usage data. See Tensor.Logging.UsageMsg for more information.</comment> |
52 | </literal> | 52 | </literal> |
53 | <literal name="MetricMsg" value="4"> | 53 | <literal name="MetricMsg" value="4"> |
54 | <comment>Defines a message for capturing metric data. See Tensor.Logging.MetricMsg for more information.</comment> | 54 | <comment>Defines a message for capturing metric data. See Tensor.Logging.MetricMsg for more information.</comment> |
55 | </literal> | 55 | </literal> |
56 | </enum> | 56 | </enum> |
57 | 57 | ||
58 | <enum name="Severity" type="int8" default="indeterminate"> | 58 | <enum name="Severity" type="int8" default="indeterminate"> |
59 | <comment> | 59 | <comment> |
60 | Severity is defined as part of an Tensor.Logging.ActionMsg describing the severity of the issue. This is an extensible list that can be added to as | 60 | Severity is defined as part of an Tensor.Logging.ActionMsg describing the severity of the issue. This is an extensible list that can be added to as |
61 | new severities are determine. In general, try to use the core defined severities or add new core ones as needed. Custom severity should be avoided. If defined, | 61 | new severities are determine. In general, try to use the core defined severities or add new core ones as needed. Custom severity should be avoided. If defined, |
62 | however, start with values > 64. Values less than 64 are reserved. | 62 | however, start with values > 64. Values less than 64 are reserved. |
63 | </comment> | 63 | </comment> |
64 | <literal name="indeterminate" value="0"> | 64 | <literal name="indeterminate" value="0"> |
65 | <comment>Severity of the issue is indeterminate.</comment> | 65 | <comment>Severity of the issue is indeterminate.</comment> |
66 | </literal> | 66 | </literal> |
67 | <literal name="warning" value="1"> | 67 | <literal name="warning" value="1"> |
68 | <comment> | 68 | <comment> |
69 | Severity indicates message is a warning regarding the specified issue. Warnings describe a potental issue that | 69 | Severity indicates message is a warning regarding the specified issue. Warnings describe a potental issue that |
70 | may require additional monitoring over time. However, it is not deemed as having a significant | 70 | may require additional monitoring over time. However, it is not deemed as having a significant |
71 | impaction on system operation. | 71 | impaction on system operation. |
72 | </comment> | 72 | </comment> |
73 | </literal> | 73 | </literal> |
74 | <literal name="minor" value="2"> | 74 | <literal name="minor" value="2"> |
75 | <comment> | 75 | <comment> |
76 | Message is describing a minor issue, which requires some action. A | 76 | Message is describing a minor issue, which requires some action. A |
77 | minor issue is something that does not have a wide scale impact on system operation. | 77 | minor issue is something that does not have a wide scale impact on system operation. |
78 | For example a minor issue might be something that would affect a single transaction. | 78 | For example a minor issue might be something that would affect a single transaction. |
79 | </comment> | 79 | </comment> |
80 | </literal> | 80 | </literal> |
81 | <literal name="major" value="3"> | 81 | <literal name="major" value="3"> |
82 | <comment> | 82 | <comment> |
83 | Message is describing a major issue, which requires action. A | 83 | Message is describing a major issue, which requires action. A |
84 | major issue is something that affects the system in a signficant way | 84 | major issue is something that affects the system in a signficant way |
85 | such as having impact on multiple transactions. | 85 | such as having impact on multiple transactions. |
86 | </comment> | 86 | </comment> |
87 | </literal> | 87 | </literal> |
88 | <literal name="critical" value="4"> | 88 | <literal name="critical" value="4"> |
89 | <comment> | 89 | <comment> |
90 | Message is describing a critical issue, which requires immediate action. Critical issues | 90 | Message is describing a critical issue, which requires immediate action. Critical issues |
91 | are typically catastrophic system issues affecting all transactions in a very significant way. | 91 | are typically catastrophic system issues affecting all transactions in a very significant way. |
92 | </comment> | 92 | </comment> |
93 | </literal> | 93 | </literal> |
94 | <literal name="cleared" value="5"> | 94 | <literal name="cleared" value="5"> |
95 | <comment>Message is describing an issue has been resolved or no longer requires actions.</comment> | 95 | <comment>Message is describing an issue has been resolved or no longer requires actions.</comment> |
96 | </literal> | 96 | </literal> |
97 | </enum> | 97 | </enum> |
98 | 98 | ||
99 | <enum name="Category" type="int8" default="processingError"> | 99 | <enum name="Category" type="int8" default="processingError"> |
100 | <comment> | 100 | <comment> |
101 | The category decribes the general category for an ActionMsg. This is an extensible list that can be added to as | 101 | The category decribes the general category for an ActionMsg. This is an extensible list that can be added to as |
102 | new categories are needed. In general, try to use the core defined categories or add new ones as needed. Custom categories should start with | 102 | new categories are needed. In general, try to use the core defined categories or add new ones as needed. Custom categories should start with |
103 | values > 64. Values less than 64 are reserved. | 103 | values > 64. Values less than 64 are reserved. |
104 | </comment> | 104 | </comment> |
105 | <literal name ="undefined" value ="0"> | 105 | <literal name ="undefined" value ="0"> |
106 | <comment>Action category is undefined or not known.</comment> | 106 | <comment>Action category is undefined or not known.</comment> |
107 | </literal> | 107 | </literal> |
108 | <literal name="communications" value="1"> | 108 | <literal name="communications" value="1"> |
109 | <comment>A communications and/or networking related issue.</comment> | 109 | <comment>A communications and/or networking related issue.</comment> |
110 | </literal> | 110 | </literal> |
111 | <literal name="qualityOfService" value="2"> | 111 | <literal name="qualityOfService" value="2"> |
112 | <comment>A quality of service related issue.</comment> | 112 | <comment>A quality of service related issue.</comment> |
113 | </literal> | 113 | </literal> |
114 | <literal name="processingError" value="3"> | 114 | <literal name="processingError" value="3"> |
115 | <comment>A processing or runtime related issue.</comment> | 115 | <comment>A processing or runtime related issue.</comment> |
116 | </literal> | 116 | </literal> |
117 | <literal name="equipment" value="4"> | 117 | <literal name="equipment" value="4"> |
118 | <comment>An equipment related issue.</comment> | 118 | <comment>An equipment related issue.</comment> |
119 | </literal> | 119 | </literal> |
120 | <literal name="environmental" value="5"> | 120 | <literal name="environmental" value="5"> |
121 | <comment>A environment related issue.</comment> | 121 | <comment>A environment related issue.</comment> |
122 | </literal> | 122 | </literal> |
123 | </enum> | 123 | </enum> |
124 | 124 | ||
125 | <enum name="TraceLevel" type="Tensor.int8" default="undefined"> | 125 | <enum name="TraceLevel" type="Tensor.int8" default="undefined"> |
126 | <comment>Trace level defines the level of tracing information reported. This allows for filtering of information based on rank.</comment> | 126 | <comment>Trace level defines the level of tracing information reported. This allows for filtering of information based on rank.</comment> |
127 | <literal name="undefined" value="0"> | 127 | <literal name="undefined" value="0"> |
128 | <comment>Trace level is not defined.</comment> | 128 | <comment>Trace level is not defined.</comment> |
129 | </literal> | 129 | </literal> |
130 | <literal name="overview" value="1"> | 130 | <literal name="overview" value="1"> |
131 | <comment>Information contained in the trace message is high-level or summary.</comment> | 131 | <comment>Information contained in the trace message is high-level or summary.</comment> |
132 | </literal> | 132 | </literal> |
133 | <literal name="trace" value="2"> | 133 | <literal name="trace" value="2"> |
134 | <comment>Information contained in the trace message is related to program flow and sequencing.</comment> | 134 | <comment>Information contained in the trace message is related to program flow and sequencing.</comment> |
135 | </literal> | 135 | </literal> |
136 | <literal name="detail" value="3"> | 136 | <literal name="detail" value="3"> |
137 | <comment>Information contained in the trace message is detailed information.</comment> | 137 | <comment>Information contained in the trace message is detailed information.</comment> |
138 | </literal> | 138 | </literal> |
139 | <literal name="debug" value="4"> | 139 | <literal name="debug" value="4"> |
140 | <comment>Information contained in the trace message contains debugging information.</comment> | 140 | <comment>Information contained in the trace message contains debugging information.</comment> |
141 | </literal> | 141 | </literal> |
142 | </enum> | 142 | </enum> |
143 | 143 | ||
144 | <struct name="DebugInfo"> | 144 | <struct name="DebugInfo"> |
145 | <comment> | 145 | <comment> |
146 | Structure captures the file and line number information for Trace Messages. This provides information about where the trace message was sent. | 146 | Structure captures the file and line number information for Trace Messages. This provides information about where the trace message was sent. |
147 | </comment> | 147 | </comment> |
148 | <elem name="file" type="Tensor.string" multiplicity="1" ord="64"> | 148 | <elem name="file" type="Tensor.string" multiplicity="1" ord="64"> |
149 | <comment>File name where this message was logged.</comment> | 149 | <comment>File name where this message was logged.</comment> |
150 | </elem> | 150 | </elem> |
151 | <elem name="line" type="Tensor.uint32" multiplicity="1" ord="65"> | 151 | <elem name="line" type="Tensor.uint32" multiplicity="1" ord="65"> |
152 | <comment>Line number in file where this message is logged.</comment> | 152 | <comment>Line number in file where this message is logged.</comment> |
153 | </elem> | 153 | </elem> |
154 | <elem name="thid" type="Tensor.uint64" multiplicity="1" default="0" ord="66"> | 154 | <elem name="thid" type="Tensor.uint64" multiplicity="1" default="0" ord="66"> |
155 | <comment>Optional Thread ID, if not specified, default value is 0.</comment> | 155 | <comment>Optional Thread ID, if not specified, default value is 0.</comment> |
156 | </elem> | 156 | </elem> |
157 | 157 | ||
158 | </struct> | 158 | </struct> |
159 | 159 | ||
160 | <!-- | 160 | <!-- |
161 | ******************************************************* | 161 | ******************************************************* |
162 | Metric Structure Definitions | 162 | Metric Structure Definitions |
163 | ******************************************************* | 163 | ******************************************************* |
164 | --> | 164 | --> |
165 | 165 | ||
166 | <enum name="MetricType" type="Tensor.uint8" default="undefined"> | 166 | <enum name="MetricType" type="Tensor.uint8" default="undefined"> |
167 | <literal name="undefined" value="0"> | 167 | <literal name="undefined" value="0"> |
168 | <comment>Metric type is not defined. This is a reserved value and should not be used in most situations.</comment> | 168 | <comment>Metric type is not defined. This is a reserved value and should not be used in most situations.</comment> |
169 | </literal> | 169 | </literal> |
170 | <literal name="PegCount" value="1"> | 170 | <literal name="PegCount" value="1"> |
171 | <comment>Defines a simple monotonically incremented counter.</comment> | 171 | <comment>Defines a simple monotonically incremented counter.</comment> |
172 | </literal> | 172 | </literal> |
173 | <literal name="AppMetrics" value="2"> | 173 | <literal name="AppMetrics" value="2"> |
174 | <comment>Defines a complex metric measuring duration and concurrency.</comment> | 174 | <comment>Defines a complex metric measuring duration and concurrency.</comment> |
175 | </literal> | 175 | </literal> |
176 | </enum> | 176 | </enum> |
177 | 177 | ||
178 | <struct name="Metric"> | 178 | <struct name="Metric"> |
179 | <elem name="metricType" type="MetricType" multiplicity="1" rttd="true" ord="64"> | 179 | <elem name="metricType" type="MetricType" multiplicity="1" rttd="true" ord="64"> |
180 | <comment>This specifies the type of the reported metric.</comment> | 180 | <comment>This specifies the type of the reported metric.</comment> |
181 | </elem> | 181 | </elem> |
182 | <elem name="name" type="string" multiplicity="1" ord="65"> | 182 | <elem name="name" type="string" multiplicity="1" ord="65"> |
183 | <comment>Name of the reported metric.</comment> | 183 | <comment>Name of the reported metric.</comment> |
184 | </elem> | 184 | </elem> |
185 | </struct> | 185 | </struct> |
186 | 186 | ||
187 | <struct name="PegCount" type="Metric" rttkey="Logging.MetricType.PegCount"> | 187 | <struct name="PegCount" type="Metric" rttkey="Logging.MetricType.PegCount"> |
188 | <elem name="value" type="uint32" multiplicity="1" ord="80"> | 188 | <elem name="value" type="uint32" multiplicity="1" ord="80"> |
189 | <comment>Value of peg count since last reporting.</comment> | 189 | <comment>Value of peg count since last reporting.</comment> |
190 | </elem> | 190 | </elem> |
191 | </struct> | 191 | </struct> |
192 | 192 | ||
193 | <struct name="AppMetrics" type="Metric" rttkey="Logging.MetricType.AppMetrics"> | 193 | <struct name="AppMetrics" type="Metric" rttkey="Logging.MetricType.AppMetrics"> |
194 | <elem name="totalCount" type="uint32" multiplicity="1" ord="80"> | 194 | <elem name="totalCount" type="uint32" multiplicity="1" ord="80"> |
195 | <comment>Total count of invocations since last reporting.</comment> | 195 | <comment>Total count of invocations since last reporting.</comment> |
196 | </elem> | 196 | </elem> |
197 | <elem name="currentCount" type="uint32" multiplicity="1" ord="81"> | 197 | <elem name="currentCount" type="uint32" multiplicity="1" ord="81"> |
198 | <comment>concurrent invocations at time of reporting.</comment> | 198 | <comment>concurrent invocations at time of reporting.</comment> |
199 | </elem> | 199 | </elem> |
200 | <elem name="peakCount" type="uint32" multiplicity="1" ord="82"> | 200 | <elem name="peakCount" type="uint32" multiplicity="1" ord="82"> |
201 | <comment>Peak concurrent invocations since last reporting.</comment> | 201 | <comment>Peak concurrent invocations since last reporting.</comment> |
202 | </elem> | 202 | </elem> |
203 | <elem name="totalTime" type="uint64" multiplicity="1" ord="83"> | 203 | <elem name="totalTime" type="uint64" multiplicity="1" ord="83"> |
204 | <comment>Total time spent on invocations in nanoseconds since last reporting.</comment> | 204 | <comment>Total time spent on invocations in nanoseconds since last reporting.</comment> |
205 | </elem> | 205 | </elem> |
206 | <elem name="peakTime" type="uint64" multiplicity="1" ord="84"> | 206 | <elem name="peakTime" type="uint64" multiplicity="1" ord="84"> |
207 | <comment>Peak time for an invocation in nanoseconds since last reporting.</comment> | 207 | <comment>Peak time for an invocation in nanoseconds since last reporting.</comment> |
208 | </elem> | 208 | </elem> |
209 | <elem name="successCount" type="uint32" multiplicity="1" ord="85"> | 209 | <elem name="successCount" type="uint32" multiplicity="1" ord="85"> |
210 | <comment>Count of successful invocations since last reporting.</comment> | 210 | <comment>Count of successful invocations since last reporting.</comment> |
211 | </elem> | 211 | </elem> |
212 | <elem name="failureCount" type="uint32" multiplicity="1" ord="86"> | 212 | <elem name="failureCount" type="uint32" multiplicity="1" ord="86"> |
213 | <comment>Count of failed invocations since last reporting.</comment> | 213 | <comment>Count of failed invocations since last reporting.</comment> |
214 | </elem> | 214 | </elem> |
215 | </struct> | 215 | </struct> |
216 | 216 | ||
217 | 217 | ||
218 | 218 | ||
219 | <!-- | 219 | <!-- |
220 | ******************************************************* | 220 | ******************************************************* |
221 | Message Structure Definitions | 221 | Message Structure Definitions |
222 | ******************************************************* | 222 | ******************************************************* |
223 | --> | 223 | --> |
224 | 224 | ||
225 | <struct name="MessageBase"> | 225 | <struct name="MessageBase"> |
226 | <comment> | 226 | <comment> |
227 | Base type for all messages. This contains only the polymorphic type data. The structure Message derives from this | 227 | Base type for all messages. This contains only the polymorphic type data. The structure Message derives from this |
228 | structure and provides common fields typically useful in logging related applications. Derive from this structure | 228 | structure and provides common fields typically useful in logging related applications. Derive from this structure |
229 | if messages are related to logging but do not require the standard fields. It is recommended that most specializations | 229 | if messages are related to logging but do not require the standard fields. It is recommended that most specializations |
230 | should start with Message as the base type. | 230 | should start with Message as the base type. |
231 | </comment> | 231 | </comment> |
232 | <elem name="type" type="MessageType" multiplicity="1" rttd="true" ord="64"> | 232 | <elem name="type" type="MessageType" multiplicity="1" rttd="true" ord="64"> |
233 | <comment> This specifies the type of message.</comment> | 233 | <comment> This specifies the type of message.</comment> |
234 | </elem> | 234 | </elem> |
235 | <elem name="date" type="datetime" multiplicity="1" ord="65"> | 235 | <elem name="date" type="datetime" multiplicity="1" ord="65"> |
236 | <comment>The date/time the message occured.</comment> | 236 | <comment>The date/time the message occured.</comment> |
237 | </elem> | 237 | </elem> |
238 | <elem name="source" type="Tensor.uri" multiplicity="1" ord="66"> | 238 | <elem name="source" type="Tensor.uri" multiplicity="1" ord="66"> |
239 | <comment>URI Identifying name of the component or process logging the message.</comment> | 239 | <comment>URI Identifying name of the component or process logging the message.</comment> |
240 | </elem> | 240 | </elem> |
241 | <elem name="info" type="string" multiplicity="0..1" ord="67"> | 241 | <elem name="info" type="string" multiplicity="0..1" ord="67"> |
242 | <comment>Optional free form string data.</comment> | 242 | <comment>Optional free form string data.</comment> |
243 | </elem> | 243 | </elem> |
244 | <elem name="data" type="Tensor.json" multiplicity="0..1" ord="68"> | 244 | <elem name="data" type="Tensor.json" multiplicity="0..1" ord="68"> |
245 | <comment>Optional structured data.</comment> | 245 | <comment>Optional structured data.</comment> |
246 | </elem> | 246 | </elem> |
247 | <elem name="debug" type="DebugInfo" multiplicity="0..1" ord="69"> | 247 | <elem name="debug" type="DebugInfo" multiplicity="0..1" ord="69"> |
248 | <comment>Optional debug information for message.</comment> | 248 | <comment>Optional debug information for message.</comment> |
249 | </elem> | 249 | </elem> |
250 | </struct> | 250 | </struct> |
251 | 251 | ||
252 | <!-- Message type --> | 252 | <!-- Message type --> |
253 | <struct name="TransactionMsg" type="MessageBase"> | 253 | <struct name="TransactionMsg" type="MessageBase"> |
254 | <comment> | 254 | <comment> |
255 | Basic logging message data common to all types of logging. This specializes MessageBase and is the standard logging message. Create custom message types as needed; however, consider | 255 | Basic logging message data common to all types of logging. This specializes MessageBase and is the standard logging message. Create custom message types as needed; however, consider |
256 | specializing from the core defined sub-types of ActionMsg, Trace, or Usage depending upon need. In most cases, you should not use this message directly. | 256 | specializing from the core defined sub-types of ActionMsg, Trace, or Usage depending upon need. In most cases, you should not use this message directly. |
257 | </comment> | 257 | </comment> |
258 | <elem name="tid" type="Tensor.UUID" multiplicity="1" ord="80"> | 258 | <elem name="tid" type="Tensor.UUID" multiplicity="1" ord="80"> |
259 | <comment>Unique ID identifying the internal transaction related to the message.</comment> | 259 | <comment>Unique ID identifying the internal transaction related to the message.</comment> |
260 | </elem> | 260 | </elem> |
261 | <elem name="etid" type="string" multiplicity="0..1" ord="81"> | 261 | <elem name="etid" type="string" multiplicity="0..1" ord="81"> |
262 | <comment>Optional externally defined transaction ID.</comment> | 262 | <comment>Optional externally defined transaction ID.</comment> |
263 | </elem> | 263 | </elem> |
264 | <elem name="acctid" type="string" multiplicity="0..1" ord="82"> | 264 | <elem name="acctid" type="string" multiplicity="0..1" ord="82"> |
265 | <comment>Optional externally defined account/group identifier.</comment> | 265 | <comment>Optional externally defined account/group identifier.</comment> |
266 | </elem> | 266 | </elem> |
267 | <elem name="devid" type="string" multiplicity="0..1" ord="83"> | 267 | <elem name="devid" type="string" multiplicity="0..1" ord="83"> |
268 | <comment>Optional externally defined device identifier.</comment> | 268 | <comment>Optional externally defined device identifier.</comment> |
269 | </elem> | 269 | </elem> |
270 | <elem name="appid" type="string" multiplicity="0..1" ord="84"> | 270 | <elem name="appid" type="string" multiplicity="0..1" ord="84"> |
271 | <comment>Optional externally defined application (or application key) identifier.</comment> | 271 | <comment>Optional externally defined application (or application key) identifier.</comment> |
272 | </elem> | 272 | </elem> |
273 | 273 | ||
274 | </struct> | 274 | </struct> |
275 | 275 | ||
276 | <!-- ActionMsg type --> | 276 | <!-- ActionMsg type --> |
277 | <struct name="ActionMsg" type="TransactionMsg" rttkey="Logging.MessageType.ActionMsg"> | 277 | <struct name="ActionMsg" type="TransactionMsg" rttkey="Logging.MessageType.ActionMsg"> |
278 | <comment> | 278 | <comment> |
279 | A message that requires another system/user to respond with some action. | 279 | A message that requires another system/user to respond with some action. |
280 | </comment> | 280 | </comment> |
281 | <elem name="id" type="Tensor.uri" multiplicity="1" ord="96"> | 281 | <elem name="id" type="Tensor.uri" multiplicity="1" ord="96"> |
282 | <comment>Error code identifying the fault type</comment> | 282 | <comment>Error code identifying the fault type</comment> |
283 | </elem> | 283 | </elem> |
284 | <elem name="severity" type="Severity" multiplicity="1" ord="97"/> | 284 | <elem name="severity" type="Severity" multiplicity="1" ord="97"/> |
285 | <elem name="category" type="Category" multiplicity="1" ord="98"/> | 285 | <elem name="category" type="Category" multiplicity="1" ord="98"/> |
286 | <elem name="iid" type="Tensor.uri" multiplicity="0..1" ord="99"> | 286 | <elem name="iid" type="Tensor.uri" multiplicity="0..1" ord="99"> |
287 | <comment>Optional incident identifier used to identify an action instance uniquely. This is needed when there are stateful clearing events.</comment> | 287 | <comment>Optional incident identifier used to identify an action instance uniquely. This is needed when there are stateful clearing events.</comment> |
288 | </elem> | 288 | </elem> |
289 | </struct> | 289 | </struct> |
290 | 290 | ||
291 | <!-- TraceMsg type --> | 291 | <!-- TraceMsg type --> |
292 | <struct name="TraceMsg" type="TransactionMsg" rttkey="Logging.MessageType.TraceMsg"> | 292 | <struct name="TraceMsg" type="TransactionMsg" rttkey="Logging.MessageType.TraceMsg"> |
293 | <comment> | 293 | <comment> |
294 | Trace message for general logging and reporting of information | 294 | Trace message for general logging and reporting of information |
295 | </comment> | 295 | </comment> |
296 | <elem name="level" type="TraceLevel" multiplicity="1" ord="96"> | 296 | <elem name="level" type="TraceLevel" multiplicity="1" ord="96"> |
297 | <comment>Indicates the level of the trace: overview is the highest level and debug is the lowest</comment> | 297 | <comment>Indicates the level of the trace: overview is the highest level and debug is the lowest</comment> |
298 | </elem> | 298 | </elem> |
299 | </struct> | 299 | </struct> |
300 | 300 | ||
301 | <!-- UsageMsg type --> | 301 | <!-- UsageMsg type --> |
302 | <struct name="UsageMsg" type="TransactionMsg" rttkey="Logging.MessageType.UsageMsg"> | 302 | <struct name="UsageMsg" type="TransactionMsg" rttkey="Logging.MessageType.UsageMsg"> |
303 | <comment> | 303 | <comment> |
304 | Message capturing usage information for reporting statistical, transactional, edge, location, or other useful information generated in the normal | 304 | Message capturing usage information for reporting statistical, transactional, edge, location, or other useful information generated in the normal |
305 | operation of the system. | 305 | operation of the system. |
306 | </comment> | 306 | </comment> |
307 | <elem name="uri" type="Tensor.uri" multiplicity="1" rttd="true" ord="96"> | 307 | <elem name="uri" type="Tensor.uri" multiplicity="1" rttd="true" ord="96"> |
308 | <comment> Usage id specific to a type of usage information. Can be general or application specific.</comment> | 308 | <comment> Usage id specific to a type of usage information. Can be general or application specific.</comment> |
309 | </elem> | 309 | </elem> |
310 | </struct> | 310 | </struct> |
311 | 311 | ||
312 | <!-- MetricMsg type --> | 312 | <!-- MetricMsg type --> |
313 | <struct name="MetricMsg" type="MessageBase" rttkey="Logging.MessageType.MetricMsg"> | 313 | <struct name="MetricMsg" type="MessageBase" rttkey="Logging.MessageType.MetricMsg"> |
314 | <elem name="start" type="datetime" multiplicity="1" ord="80"> | 314 | <elem name="start" type="datetime" multiplicity="1" ord="80"> |
315 | <comment>The date/time of the start of the report interval. date is end the end of the report interval.</comment> | 315 | <comment>The date/time of the start of the report interval. date is end the end of the report interval.</comment> |
316 | </elem> | 316 | </elem> |
317 | <elem name="duration" type="uint16" multiplicity="1" ord="81"> | 317 | <elem name="duration" type="uint16" multiplicity="1" ord="81"> |
318 | <tag name="unit" value="sec"/> | 318 | <tag name="unit" value="sec"/> |
319 | <comment>The interval in seconds for the metric report.</comment> | 319 | <comment>The interval in seconds for the metric report.</comment> |
320 | </elem> | 320 | </elem> |
321 | <elem name="metrics" type="Metric" multiplicity="1..*" polymorphic="true" ord="82"> | 321 | <elem name="metrics" type="Metric" multiplicity="1..*" polymorphic="true" ord="82"> |
322 | <comment>List of metrics being reported.</comment> | 322 | <comment>List of metrics being reported.</comment> |
323 | </elem> | 323 | </elem> |
324 | </struct> | 324 | </struct> |
325 | 325 | ||
326 | <!-- | 326 | <!-- |
327 | ******************************************************* | 327 | ******************************************************* |
328 | Standard Usage Definitions | 328 | Standard Usage Definitions |
329 | ******************************************************* | 329 | ******************************************************* |
330 | --> | 330 | --> |
331 | 331 | ||
332 | <!--TaskReport Msg--> | 332 | <!--TaskReport Msg--> |
333 | <struct name="TaskReport" type="Logging.UsageMsg" rttkey='"tpf://taskrpt"'> | 333 | <struct name="TaskReport" type="Logging.UsageMsg" rttkey='"tpf://taskrpt"'> |
334 | <comment> | 334 | <comment> |
335 | Message reports processing task result data. Tasks are any execution unit the | 335 | Message reports processing task result data. Tasks are any execution unit the |
336 | that is deemed to have a specific beginning and end. This is a fairly generic | 336 | that is deemed to have a specific beginning and end. This is a fairly generic |
337 | definition making the usage report suitable for a variety of applications. | 337 | definition making the usage report suitable for a variety of applications. |
338 | </comment> | 338 | </comment> |
339 | <elem name="taskid" type="string" multiplicity="1" ord="112"> | 339 | <elem name="taskid" type="string" multiplicity="1" ord="112"> |
340 | <comment> | 340 | <comment> |
341 | The unique tasks identifier. A source may have multiple tasks, this field assigns | 341 | The unique tasks identifier. A source may have multiple tasks, this field assigns |
342 | an identifier that uniquely characterizes what the task was that was accomplished. | 342 | an identifier that uniquely characterizes what the task was that was accomplished. |
343 | </comment> | 343 | </comment> |
344 | </elem> | 344 | </elem> |
345 | <elem name="start" type="datetime" multiplicity="1" ord="113"> | 345 | <elem name="start" type="datetime" multiplicity="1" ord="113"> |
346 | <comment> | 346 | <comment> |
347 | The start time at which the processor is used. | 347 | The start time at which the processor is used. |
348 | </comment> | 348 | </comment> |
349 | </elem> | 349 | </elem> |
350 | <elem name="duration" type="uint32" multiplicity="1" ord="114"> | 350 | <elem name="duration" type="uint32" multiplicity="1" ord="114"> |
351 | <tag name="unit" value="usec"/> | 351 | <tag name="unit" value="usec"/> |
352 | <comment> | 352 | <comment> |
353 | The duration of the processing in microseconds. This is not meant to be a high | 353 | The duration of the processing in microseconds. This is not meant to be a high |
354 | resolution duration monitoring, implement a metric counter for precise timing data. | 354 | resolution duration monitoring, implement a metric counter for precise timing data. |
355 | </comment> | 355 | </comment> |
356 | </elem> | 356 | </elem> |
357 | <elem name="status" type="ResultCode" multiplicity="1" ord="115"> | 357 | <elem name="status" type="ResultCode" multiplicity="1" ord="115"> |
358 | <comment>The task result code.</comment> | 358 | <comment>The task result code.</comment> |
359 | </elem> | 359 | </elem> |
360 | </struct> | 360 | </struct> |
361 | 361 | ||
362 | </namespace> | 362 | </namespace> |
363 | </specification> | 363 | </specification> | ... | ... |
-
Please register or sign in to post a comment