2 <metrics id="1" name="lines" val_type="FLOAT" description="Lines" domain="Size"
3 short_name="Lines" qualitative="[false]" user_managed="[false]" enabled="[true]" worst_value="[null]"
4 optimized_best_value="[null]" best_value="[null]" direction="1" hidden="[false]"
5 delete_historical_data="[null]"/>
7 <metrics id="2" name="profile" val_type="STRING" description="Profile" domain="Rules"
8 short_name="Profile" qualitative="[false]" user_managed="[false]" enabled="[true]"
10 optimized_best_value="[null]" best_value="[null]" direction="0" hidden="[false]"
11 delete_historical_data="[null]"/>
13 <metrics id="3" name="coverage" val_type="FLOAT" description="Coverage" domain="Test"
14 short_name="Coverage" qualitative="[true]" user_managed="[false]" enabled="[true]"
16 optimized_best_value="[true]" best_value="100" direction="1" hidden="[false]"
17 delete_historical_data="[null]"/>
19 <metrics id="4" name="unknown" val_type="FLOAT" description="Coverage" domain="Test"
20 short_name="Unknown" qualitative="[true]" user_managed="[false]" enabled="[true]"
22 optimized_best_value="[true]" best_value="100" direction="1" hidden="[false]"
23 delete_historical_data="[null]"/>
26 <projects kee="java_project" long_name="Java project" scope="PRJ" qualifier="TRK" name="Java project"
27 id="1" root_id="[null]" uuid="ABCD" project_uuid="ABCD"
28 description="[null]" enabled="[true]" language="[null]" copy_resource_id="[null]" person_id="[null]"
29 created_at="2008-12-19 00:00:00.00"/>
31 <projects kee="java_project:org.sonar.foo" scope="DIR" qualifier="PAC" long_name="org.sonar.foo" name="org.sonar.foo"
32 id="2" root_id="1" uuid="BCDE" project_uuid="ABCD"
33 description="[null]" enabled="[true]" language="[null]" copy_resource_id="[null]" person_id="[null]"
34 created_at="2008-12-19 00:00:00.00"/>
36 <projects kee="java_project:org.sonar.foo.Big" scope="FIL" qualifier="CLA" long_name="org.sonar.foo.Big"
38 id="3" root_id="1" uuid="CDEF" project_uuid="ABCD"
39 description="[null]" enabled="[true]" language="java" copy_resource_id="[null]" person_id="[null]"
40 created_at="2008-12-19 00:00:00.00"/>
42 <projects kee="java_project:org.sonar.foo.Tiny" scope="FIL" qualifier="CLA" long_name="org.sonar.foo.Tiny" name="Tiny"
43 id="4" root_id="1" uuid="DEFG" project_uuid="ABCD"
44 description="[null]" enabled="[true]" language="java" copy_resource_id="[null]" person_id="[null]"
45 created_at="2008-12-19 00:00:00.00"/>
47 <snapshots id="101" component_uuid="ABCD" root_component_uuid="ABCD" root_snapshot_id="[null]" parent_snapshot_id="[null]"
48 scope="PRJ" qualifier="TRK" path="" depth="0"
49 purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]"
50 period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
51 period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
52 period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
53 created_at="1229727600000" build_date="1229727600000"
54 version="1.0" status="P" islast="[true]"/>
56 <snapshots id="102" component_uuid="BCDE" root_component_uuid="ABCD" root_snapshot_id="101" parent_snapshot_id="101"
57 scope="DIR" qualifier="PAC" path="101." depth="1"
58 purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]"
59 period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
60 period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
61 period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
62 created_at="1229727600000" build_date="1229727600000"
63 version="1.0" status="P" islast="[true]"/>
65 <snapshots id="103" component_uuid="CDEF" root_component_uuid="ABCD" root_snapshot_id="101" parent_snapshot_id="102"
66 scope="FIL" qualifier="CLA" path="101.102." depth="2"
67 purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]"
68 period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
69 period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
70 period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
71 created_at="1229727600000" build_date="1229727600000"
72 version="1.0" status="P" islast="[true]"/>
74 <snapshots id="104" component_uuid="DEFG" root_component_uuid="ABCD" root_snapshot_id="101" parent_snapshot_id="102"
75 scope="FIL" qualifier="CLA" path="101.102." depth="2"
76 purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]"
77 period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
78 period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
79 period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
80 created_at="1229727600000" build_date="1229727600000"
81 version="1.0" status="P" islast="[true]"/>
84 <!-- lines, variation during period 5 -->
85 <project_measures id="1001" metric_id="1" value="510" snapshot_id="101"
86 variation_value_1="[null]" variation_value_2="[null]" variation_value_3="[null]"
87 variation_value_4="[null]" variation_value_5="400"
89 text_value="[null]" component_uuid="ABCD"
90 alert_status="[null]" description="[null]"/>
92 <project_measures id="1002" metric_id="1" value="510" snapshot_id="102"
93 variation_value_1="[null]" variation_value_2="[null]" variation_value_3="[null]"
94 variation_value_4="[null]" variation_value_5="[null]"
97 alert_status="[null]" description="[null]"
98 component_uuid="BCDE" />
100 <project_measures id="1003" metric_id="1" value="500" snapshot_id="103"
101 variation_value_1="[null]" variation_value_2="[null]" variation_value_3="[null]"
102 variation_value_4="[null]" variation_value_5="[null]"
105 alert_status="[null]" description="[null]"
106 component_uuid="CDEF" />
108 <project_measures id="1004" metric_id="1" value="10" snapshot_id="104"
109 variation_value_1="[null]" variation_value_2="[null]" variation_value_3="[null]"
110 variation_value_4="[null]" variation_value_5="[null]"
113 alert_status="[null]" description="[null]"
114 component_uuid="DEFG"/>
116 <!-- profile of java project -->
117 <project_measures id="1005" metric_id="2" value="[null]" snapshot_id="101"
118 variation_value_1="[null]" variation_value_2="[null]" variation_value_3="[null]"
119 variation_value_4="[null]" variation_value_5="[null]"
121 text_value="Sonar way"
122 component_uuid="ABCD"
123 alert_status="[null]" description="[null]"/>
125 <!-- coverage of java project -->
126 <project_measures id="1006" metric_id="3" value="12.3" snapshot_id="101"
127 variation_value_1="[null]" variation_value_2="[null]" variation_value_3="[null]"
128 variation_value_4="[null]" variation_value_5="[null]"
130 text_value="Sonar way"
131 component_uuid="ABCD"
132 alert_status="[null]" description="[null]"/>
135 <projects kee="php_project" long_name="PHP project" scope="PRJ" qualifier="TRK" name="PHP project"
136 id="10" root_id="[null]" uuid="EFGH" project_uuid="EFGH"
137 description="[null]" enabled="[true]" language="[null]" copy_resource_id="[null]" person_id="[null]"
138 created_at="2012-12-12 04:06:00.00"/>
141 <snapshots id="110" component_uuid="EFGH" root_component_uuid="EFGH" root_snapshot_id="[null]" parent_snapshot_id="[null]"
142 scope="PRJ" qualifier="TRK" path="" depth="0"
143 purge_status="[null]" period1_mode="[null]" period1_param="[null]" period1_date="[null]"
144 period2_mode="[null]" period2_param="[null]" period2_date="[null]" period3_mode="[null]"
145 period3_param="[null]" period3_date="[null]" period4_mode="[null]" period4_param="[null]"
146 period4_date="[null]" period5_mode="[null]" period5_param="[null]" period5_date="[null]"
147 created_at="1355367960000" build_date="1355367960000"
148 version="3.0" status="P" islast="[true]"/>
150 <!-- lines, many new lines during period 5 -->
151 <project_measures id="1010" metric_id="1" value="5000" snapshot_id="110"
152 variation_value_1="[null]" variation_value_2="[null]" variation_value_3="[null]"
153 variation_value_4="[null]" variation_value_5="4900"
156 component_uuid="EFGH"
157 alert_status="[null]" description="[null]"/>
159 <project_measures id="1011" metric_id="2" value="[null]" snapshot_id="110"
160 variation_value_1="[null]" variation_value_2="[null]" variation_value_3="[null]"
161 variation_value_4="[null]" variation_value_5="[null]"
164 component_uuid="EFGH"
165 alert_status="[null]" description="[null]"/>
168 <resource_index id="1" kee="java project" position="0" name_size="12" component_uuid="ABCD" root_component_uuid="ABCD" qualifier="TRK"/>
169 <resource_index id="2" kee="java projec" position="1" name_size="12" component_uuid="ABCD" root_component_uuid="ABCD" qualifier="TRK"/>
170 <resource_index id="3" kee="java proje" position="2" name_size="12" component_uuid="ABCD" root_component_uuid="ABCD" qualifier="TRK"/>
171 <resource_index id="4" kee="java proj" position="3" name_size="12" component_uuid="ABCD" root_component_uuid="ABCD" qualifier="TRK"/>
173 <resource_index id="5" kee="php project" position="0" name_size="11" component_uuid="EFGH" root_component_uuid="EFGH" qualifier="TRK"/>
174 <resource_index id="6" kee="php projec" position="1" name_size="11" component_uuid="EFGH" root_component_uuid="EFGH" qualifier="TRK"/>
175 <resource_index id="7" kee="php proje" position="2" name_size="11" component_uuid="EFGH" root_component_uuid="EFGH" qualifier="TRK"/>
176 <resource_index id="8" kee="php proj" position="3" name_size="11" component_uuid="EFGH" root_component_uuid="EFGH" qualifier="TRK"/>
180 <!-- two favourites : Big.java and PHP project -->
181 <properties id="1" prop_key="favourite" resource_id="3" text_value="[null]" user_id="50"/>
182 <properties id="2" prop_key="favourite" resource_id="10" text_value="[null]" user_id="50"/>
184 <!-- another properties -->
185 <properties id="3" prop_key="favourite" resource_id="1" text_value="[null]" user_id="1234"/>
186 <properties id="4" prop_key="sonar.profile" resource_id="1" text_value="Sonar way" user_id="[null]"/>