---
title: DeviceHostname type | Wartiva GraphQL API
description: A hostname observed for a Device with first and last seen timestamps. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/device-hostname.html
updated: 2026-10-07
---

Networks, devices, and sensors · GraphQL type

# `DeviceHostname` type

A hostname observed for a Device with first and last seen timestamps.

## Fields

| Field Name | Description |
|---|---|
| `hostname` - [`String!`](https://wartiva.com/api-docs/types/string.html) | The hostname. May or may not be fully qualified. |
| `lastSeen` - [`Time!`](https://wartiva.com/api-docs/types/time.html) | When the device was last seen with this hostname. |
| `firstSeen` - [`Time!`](https://wartiva.com/api-docs/types/time.html) | When the device was first seen with this hostname. |

## Used by

- [`Device`](https://wartiva.com/api-docs/types/device.html) type: A physical or virtual device that does not run the Wartiva endpoint application but is visible on the network to a managed Endpoint, such as…

## Example

### Example

```json
{
  "hostname": "xyz789",
  "lastSeen": "2021-10-07T18:23:25.829Z",
  "firstSeen": "2021-10-07T18:23:25.829Z"
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
