Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 1707
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-6690c50d5affaf510fc2bb7cedb420fad62fc0cbb7cde943acb9ca6e4c7f3708.yml
openapi_spec_hash: 7573c64f5eef1e13ac6dd448052558b0
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-0826102c9e6382e5e6da960fefc7111e68e28c398a708833b956d0339a41baf3.yml
openapi_spec_hash: a1f7dc378403051b188eeedd78e32503
config_hash: e30b863eac83985d5919f958f3cd8993
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,40 @@

from ...._models import BaseModel

__all__ = ["SnapshotGetResponse", "Disk", "Mount", "Netdev", "Thermal"]
__all__ = [
"SnapshotGetResponse",
"DHCPLease",
"Disk",
"Interface",
"InterfaceIPAddress",
"Mount",
"Netdev",
"Thermal",
"Tunnel",
]


class DHCPLease(BaseModel):
client_id: str
"""Client ID of the device the IP Address was leased to"""

expiry_time: float
"""Expiry time of the DHCP lease (seconds since the Unix epoch)"""

hostname: str
"""Hostname of the device the IP Address was leased to"""

interface_name: str
"""Name of the network interface"""

ip_address: str
"""IP Address that was leased"""

mac_address: str
"""MAC Address of the device the IP Address was leased to"""

connector_id: Optional[str] = None
"""Connector identifier"""


class Disk(BaseModel):
Expand Down Expand Up @@ -72,6 +105,33 @@ class Disk(BaseModel):
"""Time spent flushing (milliseconds)"""


class InterfaceIPAddress(BaseModel):
interface_name: str
"""Name of the network interface"""

ip_address: str
"""IP address of the network interface"""

connector_id: Optional[str] = None
"""Connector identifier"""


class Interface(BaseModel):
name: str
"""Name of the network interface"""

operstate: str
"""UP/DOWN state of the network interface"""

connector_id: Optional[str] = None
"""Connector identifier"""

ip_addresses: Optional[List[InterfaceIPAddress]] = None

speed: Optional[float] = None
"""Speed of the network interface (bits per second)"""


class Mount(BaseModel):
file_system: str
"""File system on disk (EXT4, NTFS, etc.)"""
Expand Down Expand Up @@ -174,6 +234,26 @@ class Thermal(BaseModel):
"""Maximum temperature of the component (degrees Celsius)"""


class Tunnel(BaseModel):
health_state: str
"""Name of tunnel health state (unknown, healthy, degraded, down)"""

health_value: float
"""
Numeric value associated with tunnel state (0 = unknown, 1 = healthy, 2 =
degraded, 3 = down)
"""

interface_name: str
"""The tunnel interface name (i.e. xfrm1, xfrm3.99, etc.)"""

tunnel_id: str
"""Tunnel identifier"""

connector_id: Optional[str] = None
"""Connector identifier"""


class SnapshotGetResponse(BaseModel):
count_reclaim_failures: float
"""Count of failures to reclaim space"""
Expand Down Expand Up @@ -238,6 +318,8 @@ class SnapshotGetResponse(BaseModel):
cpu_time_user_ms: Optional[float] = None
"""Time spent in user mode (milliseconds)"""

dhcp_leases: Optional[List[DHCPLease]] = None

disks: Optional[List[Disk]] = None

ha_state: Optional[str] = None
Expand All @@ -249,6 +331,8 @@ class SnapshotGetResponse(BaseModel):
2 = standby, 3 = disabled, 4 = fault)
"""

interfaces: Optional[List[Interface]] = None

io_pressure_full_10s: Optional[float] = None
"""Percentage of time over a 10 second window that all tasks were stalled"""

Expand Down Expand Up @@ -689,6 +773,8 @@ class SnapshotGetResponse(BaseModel):

thermals: Optional[List[Thermal]] = None

tunnels: Optional[List[Tunnel]] = None

uptime_idle_ms: Optional[float] = None
"""Sum of how much time each core has spent idle"""

Expand Down
Loading