mozilla

Revision 300523 of nsIDOMMozNetworkStats

  • Revision slug: XPCOM_Interface_Reference/nsIDOMMozNetworkStats
  • Revision title: nsIDOMMozNetworkStats
  • Revision id: 300523
  • Created:
  • Creator: acperez
  • Is current revision? No
  • Comment

Revision Content

{{ IFSummary("dom/network/interfaces/nsIDOMNetworkStats.idl", "nsISupports", "scriptable", "1.0","Interface of the network stats object.") }}

Implemented by: @mozilla.org/networkStats;1. To create an instance, use:

var networkStatsManager = Components.classes["@mozilla.org/networkStats;1"]
                    .createInstance(Components.interfaces.nsIDOMNetworkStats); 

Attributes

Attribute Type Description
connectionType DOMString Connection type of the stats.Read only.
data {{ Interface("nsIDOMMozNetworkStatsData") }} array Stats samples.Read only.
start Date Start date of the stats samples.Read only.
end Date End date of the stats samples.Read only.

See also

  • {{ Interface("nsIDOMMozNetworkStatsManager") }}
  • {{ Interface("nsIDOMMozNetworkStatsData") }}

Revision Source

<p>{{ IFSummary("dom/network/interfaces/nsIDOMNetworkStats.idl", "nsISupports", "scriptable", "1.0","Interface of the network stats object.") }}</p>
<p>Implemented by:&nbsp;<code style="font-size: 14.399999618530273px; ">@mozilla.org/networkStats;1</code>. To create an instance, use:</p>
<pre class="eval" style="font-size: 14.399999618530273px; ">
var networkStatsManager = Components.classes["@mozilla.org/networkStats;1"]
                    .createInstance(Components.interfaces.nsIDOMNetworkStats);&nbsp;</pre>
<h2 id="Attributes">Attributes</h2>
<table class="standard-table" style="width: auto;">
  <tbody>
    <tr>
      <td class="header">Attribute</td>
      <td class="header">Type</td>
      <td class="header">Description</td>
    </tr>
    <tr>
      <td><code>connectionType</code></td>
      <td><code>DOMString</code></td>
      <td>Connection type of the stats.<strong>Read only.</strong></td>
    </tr>
    <tr>
      <td><code>data</code></td>
      <td><code>{{ Interface("nsIDOMMozNetworkStatsData") }} array</code></td>
      <td>Stats samples.<strong>Read only.</strong></td>
    </tr>
    <tr>
      <td><code>start</code></td>
      <td><code>Date</code></td>
      <td>Start date of the stats samples.<strong>Read only.</strong></td>
    </tr>
    <tr>
      <td><code>end</code></td>
      <td><code>Date</code></td>
      <td>End date of the stats samples.<strong>Read only.</strong></td>
    </tr>
  </tbody>
</table>
<h2 id="See_also">See also</h2>
<ul>
  <li>{{ Interface("nsIDOMMozNetworkStatsManager") }}</li>
  <li>{{ Interface("nsIDOMMozNetworkStatsData") }}</li>
</ul>
Revert to this revision