the-moby-effect
Version:
Moby/Docker API client built using effect-ts
38 lines (37 loc) • 2.3 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.ContainerNetworkStats = void 0;
var Schema = _interopRequireWildcard(require("effect/Schema"));
var MobySchemas = _interopRequireWildcard(require("../schemas/index.js"));
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
class ContainerNetworkStats extends /*#__PURE__*/Schema.Class("ContainerNetworkStats")({
/** Bytes received. Windows and Linux. */
rx_bytes: MobySchemas.UInt64,
/** Packets received. Windows and Linux. */
rx_packets: MobySchemas.UInt64,
/** Received errors. Not used on Windows. */
rx_errors: MobySchemas.UInt64,
/** Incoming packets dropped. Windows and Linux. */
rx_dropped: MobySchemas.UInt64,
/** Bytes sent. Windows and Linux. */
tx_bytes: MobySchemas.UInt64,
/** Packets sent. Windows and Linux. */
tx_packets: MobySchemas.UInt64,
/** Sent errors. Not used on Windows. */
tx_errors: MobySchemas.UInt64,
/** Outgoing packets dropped. Windows and Linux. */
tx_dropped: MobySchemas.UInt64,
/** Endpoint ID. Not used on Linux. */
endpoint_id: /*#__PURE__*/Schema.optional(Schema.String),
/** Instance ID. Not used on Linux. */
instance_id: /*#__PURE__*/Schema.optional(Schema.String)
}, {
identifier: "ContainerNetworkStats",
title: "container.NetworkStats",
documentation: "https://github.com/moby/moby/blob/a21b1a2d12e2c01542cb191eb526d7bfad0641e3/api/types/container/stats.go#L115-L139"
}) {}
exports.ContainerNetworkStats = ContainerNetworkStats;
//# sourceMappingURL=ContainerNetworkStats.generated.js.map