Retrieve a Host Metric
get
/api/v2/host_metrics/{id}/
Make GET request to this resource to retrieve a single host metric record containing the following fields:
id
: Database ID for this host metric. (integer)hostname
: (string)url
: URL for this host metric. (string)first_automation
: When the host was first automated against (datetime)last_automation
: When the host was last automated against (datetime)last_deleted
: When the host was last deleted (datetime)automated_counter
: How many times was the host automated (integer)deleted_counter
: How many times was the host deleted (integer)deleted
: Boolean flag saying whether the host is deleted and therefore not counted into the subscription consumption (boolean)used_in_inventories
: How many inventories contain this host (integer)
Request
Supported Media Types
- application/json
Path Parameters
Back to Top
Response
Supported Media Types
- application/json
200 Response
Root Schema : HostMetric
Type:
Show Source
object
-
automated_counter:
integer
Title:
Automated counter
How many times was the host automated -
deleted:
boolean
Title:
Deleted
Boolean flag saying whether the host is deleted and therefore not counted into the subscription consumption -
deleted_counter:
integer
Title:
Deleted counter
How many times was the host deleted -
first_automation:
string(date-time)
Title:
First automation
Read Only:true
When the host was first automated against -
hostname(required):
string
Title:
Hostname
Minimum Length:1
Maximum Length:512
-
id:
integer
Title:
ID
Read Only:true
-
last_automation(required):
string(date-time)
Title:
Last automation
When the host was last automated against -
last_deleted:
string(date-time)
Title:
Last deleted
When the host was last deleted -
url:
string
Title:
Url
Read Only:true
-
used_in_inventories:
integer
Title:
Used in inventories
How many inventories contain this host