<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I don't think we need two APIs to act duplicated functionalities,
    the "sample-list -m" command actually invoke API "GET
    /V2/meters/<meter_name><span style="color: rgb(51, 51, 51);
      font-family: monospace; font-size: 12px; font-style: normal;
      font-variant: normal; font-weight: normal; letter-spacing: normal;
      line-height: 18px; orphans: auto; text-align: left; text-indent:
      0px; text-transform: none; white-space: normal; widows: 1;
      word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
      !important; float: none; background-color: rgb(255, 255, 255);"></span><wbr
      style="color: rgb(51, 51, 51); font-family: monospace; font-size:
      12px; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: 18px; orphans: auto;
      text-align: left; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 1; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);"><span style="color: rgb(51, 51, 51); font-family:
      monospace; font-size: 12px; font-style: normal; font-variant:
      normal; font-weight: normal; letter-spacing: normal; line-height:
      18px; orphans: auto; text-align: left; text-indent: 0px;
      text-transform: none; white-space: normal; widows: 1;
      word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline
      !important; float: none; background-color: rgb(255, 255, 255);"></span><span
      style="color: rgb(51, 51, 51); font-family: monospace; font-size:
      12px; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: 18px; orphans: auto;
      text-align: left; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 1; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; display: inline !important; float:
      none; background-color: rgb(255, 255, 255);"></span><wbr
      style="color: rgb(51, 51, 51); font-family: monospace; font-size:
      12px; font-style: normal; font-variant: normal; font-weight:
      normal; letter-spacing: normal; line-height: 18px; orphans: auto;
      text-align: left; text-indent: 0px; text-transform: none;
      white-space: normal; widows: 1; word-spacing: 0px;
      -webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
      255);">", it is more like a meter related API, not sample. I
    personally prefer to mark the "sample-list -m" command deprecated
    and dropped in future cycle. is this reasonable ?<br>
    <br>
    <div class="moz-cite-prefix">在 2015/11/6 6:39, gord chung 写道:<br>
    </div>
    <blockquote
      cite="mid:BLU436-SMTP196E5722B6D7ED10A143632DE290@phx.gbl"
      type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      i'm sort of torn on this item. there's a general feeling that
      regarding api, nothing should be dropped so i'm hesitant to
      actually deprecate it. i think changing the data also is very
      dangerous when it comes to compatibility (even though keeping it
      increases inconsistency).<br>
      <br>
      maybe the better solution is to document that these are different
      APIs and will return different results.<br>
      <br>
      <div class="moz-cite-prefix">On 05/11/2015 2:30 AM, Lin Juan IX
        Xia wrote:<br>
      </div>
      <blockquote
        cite="mid:201511050731.tA57V8TN001430@d23av02.au.ibm.com"
        type="cite"><font size="2" face="Default Sans
          Serif,Verdana,Arial,Helvetica,sans-serif"><font face="Arial,
            Sans Serif, Verdana, Helvetica, sans-serif">Hi,</font>
          <div><font face="Arial, Sans Serif, Verdana, Helvetica,
              sans-serif"><br>
            </font></div>
          <div><font face="Arial, Sans Serif, Verdana, Helvetica,
              sans-serif">Here is an open bug : <a
                moz-do-not-send="true"
                href="https://bugs.launchpad.net/ceilometer/+bug/1497073"
                target="_blank"><a class="moz-txt-link-freetext" href="https://bugs.launchpad.net/ceilometer/+bug/1497073">https://bugs.launchpad.net/ceilometer/+bug/1497073</a></a></font></div>
          <div><font face="Arial, Sans Serif, Verdana, Helvetica,
              sans-serif"><br>
            </font></div>
          <div style=""><font face="Arial, Sans Serif, Verdana,
              Helvetica, sans-serif">Is it a bug or not?<br>
            </font>
            <div><font face="Arial, Sans Serif, Verdana, Helvetica,
                sans-serif"><br>
              </font></div>
            <div style="">
              <pre class="GKSE20JDM3 changeScreenDescription" style="font-size: 9pt; margin-top: 0px; margin-bottom: 0px;"><font face="Arial, Sans Serif, Verdana, Helvetica, sans-serif">For the command "ceilometer sample-list --meter cpu", it calls "/v2/meter" API and return the OldSample objects</font></pre>
              <pre class="GKSE20JDM3 changeScreenDescription" style="font-size: 9pt; margin-top: 0px; margin-bottom: 0px;"><font face="Arial, Sans Serif, Verdana, Helvetica, sans-serif">which return body is different from "ceilometer sample-list --query 'meter=cpu'".</font></pre>
              <pre class="GKSE20JDM3 changeScreenDescription" style="font-size: 9pt; margin-top: 0px; margin-bottom: 0px;"><font face="Arial, Sans Serif, Verdana, Helvetica, sans-serif">
</font></pre>
              <pre class="GKSE20JDM3 changeScreenDescription" style="font-size: 9pt; margin-top: 0px; margin-bottom: 0px;"><font face="Arial, Sans Serif, Verdana, Helvetica, sans-serif">To fix this inconformity, we can <span style="line-height: 18px; white-space: normal;">deprecate the command using -m or fix it to return the same body as command sample-list</span></font><font face="Arial, Sans Serif, Verdana, Helvetica, sans-serif">
</font></pre>
              <div><font face="Arial, Sans Serif, Verdana, Helvetica,
                  sans-serif">Best Regards,</font></div>
              <div><font face="Arial, Sans Serif, Verdana, Helvetica,
                  sans-serif">Xia Linjuan</font></div>
              <div style="font-family: Verdana, Arial, Helvetica,
                sans-serif;"><br>
              </div>
            </div>
          </div>
        </font><br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
gord</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: <a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev-request@lists.openstack.org?subject:unsubscribe">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>