Note

Note: The interactive schema navigator for all request packets is available here: http://plesk.github.io/api-schemas/1.6.8.0/agent_input.svg.

 
Samples

A packet that requests traffic on sites with IDs 1234 and 1235 looks as follows:

<packet version="1.6.3.0">
<site>
<get_traffic>
   <filter>
      <id>1234</id>
      <id>1235</id>
   </filter>
   <since_date>2006-10-01</since_date>
</get_traffic>
<get_traffic>
   <filter>
      <name>technolux.co.uk</name>
      <name>softlux.com</name>
   </filter>
   <since_date>2006-10-01</since_date>
</get_traffic>
</site>
</packet>

Response:

<packet version="1.6.3.0">
  <site>
    <get_traffic>
      <result>
        <status>ok</status>
        <filter-id>19</filter-id>
        <id>19</id>
      <traffic>
          <date>2005-12-12</date>
          <http_in>4371212365846</http_in>
          <http_out>1234111122</http_out>
          <ftp_in>4121253</ftp_in>
          <ftp_out>163553</ftp_out>
          <smtp_in>123535</smpt_in>
          <smtp_out>341156</smtp_out>
          <pop3_imap_in>1545682</pop3_imap_in>
          <pop3_imap_out>15434674</pop3_imap_out>
      </traffic>
      </result>
    </get_traffic>
  </site>
</packet>