<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div style="background-color: inherit;"><font color="#333333" face="Arial" style="background-color: inherit;">Hi stackers:</font></div><div style="background-color: inherit;"><font color="#333333" face="Arial" style="background-color: inherit;"><br style="background-color: inherit;"></font></div><div style="background-color: inherit;"><font color="#333333" face="Arial" style="background-color: inherit;">I have a problem about </font><span style="color: rgb(51, 51, 51); font-family: Arial;">unification of timestamp related parameters in query fileds</span><font color="#333333" face="Arial" style="background-color: inherit;">.</font></div><div style="background-color: inherit;"><font color="#333333" face="Arial" style="background-color: inherit;"><br style="background-color: inherit;"></font></div><div style="background-color: inherit;"><font color="#333333" face="Arial" style="background-color: inherit;">the related bug is:</font></div><div style="background-color: inherit;"><span style="color: rgb(51, 51, 51); font-family: Arial;"><br style="background-color: inherit;"></span></div><div style="background-color: inherit;"><span style="color: rgb(51, 51, 51); font-family: Arial;">https://bugs.launchpad.net/ceilometer/+bug/1295100</span></div><div style="background-color: inherit;"><br style="background-color: inherit;"></div>start_timestamp/end_timestamp and start/end and timestamp is not unified in query fields.<div style="background-color: inherit;"><br style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><div style="background-color: inherit;"><span style="color: rgb(51, 51, 51); font-family: Arial;">for examples:</span></div><div style="background-color: inherit;"><span style="color: rgb(51, 51, 51); font-family: Arial;"><br style="background-color: inherit;"></span></div></div><blockquote style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal; margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div style="background-color: inherit;"><div style="background-color: inherit;"><span style="color: rgb(51, 51, 51); font-family: Arial;">the </span><span style="color: rgb(51, 51, 51); font-family: Arial;">valid keys of </span><span style="color: rgb(51, 51, 51); font-family: Arial;">alarm-history query fields are:</span></div></div><div style="background-color: inherit;"><div style="background-color: inherit;"><span style="color: rgb(51, 51, 51); font-family: Arial;">set(['start_timestamp', 'type', 'project', 'alarm_id', 'user', 'start_timestamp_op', 'end_timestamp_op', 'end_timestamp'])</span></div></div></blockquote><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><div style="background-color: inherit;"><span style="color: rgb(51, 51, 51); font-family: Arial;"><br style="background-color: inherit;"></span></div></div><blockquote style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal; margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div style="background-color: inherit;"><div style="background-color: inherit;"><span style="color: rgb(51, 51, 51); font-family: Arial;">and, </span><span style="color: rgb(51, 51, 51); font-family: Arial;">the </span><span style="color: rgb(51, 51, 51); font-family: Arial;">valid keys of </span><span style="color: rgb(51, 51, 51); font-family: Arial;">statistics query fields are:</span></div></div><div style="background-color: inherit;"><div style="background-color: inherit;"><span style="color: rgb(51, 51, 51); font-family: Arial;">(['end', 'start', 'metaquery', 'meter', 'project', 'source', 'user', 'start_timestamp_op', 'resource', 'end_timestamp_op', 'message_id'])</span></div></div><div style="background-color: inherit;"><div style="background-color: inherit;"><span style="color: rgb(51, 51, 51); font-family: Arial;"><br style="background-color: inherit;"></span></div></div><div style="background-color: inherit;"><div style="background-color: inherit;"><span style="color: rgb(51, 51, 51); font-family: Arial;">and, </span><span style="color: rgb(51, 51, 51); font-family: Arial;">the </span><span style="color: rgb(51, 51, 51); font-family: Arial;">valid keys of </span><span style="color: rgb(51, 51, 51); font-family: Arial;">sample-list query fields are:</span></div></div><div style="background-color: inherit;"><div style="background-color: inherit;"><span style="color: rgb(51, 51, 51); font-family: Arial;">(['end', 'start', 'metaquery', 'meter', 'project', 'source', 'user', 'start_timestamp_op', 'resource', 'end_timestamp_op', 'message_id'])</span></div></div></blockquote><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><span style="color: rgb(51, 51, 51); font-family: Arial;"><br style="background-color: inherit;"></span></div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><br style="background-color: inherit;"></div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><br style="background-color: inherit;"></div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><font color="#333333" face="Arial" style="background-color: inherit;">Please pay attention to the method:ceilometer.api.controllers.v2</font><span style="color: rgb(51, 51, 51); font-family: Arial;">:_query_to_kwargs()</span></div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><span style="color: rgb(51, 51, 51); font-family: Arial;"><br style="background-color: inherit;"></span></div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><span style="color: rgb(51, 51, 51); font-family: Arial;">In query field this method will transform 'timestamp' to 'end_timestamp' with the 'op' in ('lt', 'le'), and transform 'timestamp' to 'start_timestamp' with 'op' in ('gt', 'ge'),</span></div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><span style="color: rgb(51, 51, 51); font-family: Arial;">meanwhile, the start_timestamp_op and end_timestamp_op generated by 'op'.</span></div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><span style="color: rgb(51, 51, 51); font-family: Arial;"><br style="background-color: inherit;"></span></div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><span style="color: rgb(51, 51, 51); font-family: Arial;">So I think we should unitize the timestamp in query fields, an option is use 'timestamp' with operators to instead others.</span></div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><span style="color: rgb(51, 51, 51); font-family: Arial;"><br style="background-color: inherit;"></span></div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><span style="color: rgb(51, 51, 51); font-family: Arial;">But the changes about API </span>should be treated with caution, so I wish to obtain your opinion :)</div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><br style="background-color: inherit;"></div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;">before close these bugs, I want to get some advice:</div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><div style="background-color: inherit;">https://bugs.launchpad.net/ceilometer/+bug/1270394</div><div style="background-color: inherit;">https://bugs.launchpad.net/ceilometer/+bug/1295104</div><div style="background-color: inherit;">https://bugs.launchpad.net/ceilometer/+bug/1291171</div><br style="background-color: inherit;"></div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><br style="background-color: inherit;"></div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;">My Best</div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;"><br style="background-color: inherit;"></div><div style="background-color: inherit; font-family: Î¢ÈíÑźÚ; line-height: normal;">liu sheng</div><div><br></div></div></div>