MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See whistlepig.mozilla.org for all notifications.

mozilla

Revision 549515 of nsIDOMMozNetworkStats

  • Revision slug: Mozilla/XPCOM/Reference/Interface/nsIDOMMozNetworkStats
  • Revision title: nsIDOMMozNetworkStats
  • Revision id: 549515
  • Created:
  • Creator: Sheppy
  • Is current revision? No
  • Comment Updated tagsXPCOM_Interface_Reference/nsIDOMMozNetworkStats Mozilla/XPCOM/Reference/Interface/nsIDOMMozNetworkStats

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