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 counterHow many times was the host automated -
deleted:
boolean
Title:
DeletedBoolean flag saying whether the host is deleted and therefore not counted into the subscription consumption -
deleted_counter:
integer
Title:
Deleted counterHow many times was the host deleted -
first_automation:
string(date-time)
Title:
First automationRead Only:trueWhen the host was first automated against -
hostname(required):
string
Title:
HostnameMinimum Length:1Maximum Length:512 -
id:
integer
Title:
IDRead Only:true -
last_automation(required):
string(date-time)
Title:
Last automationWhen the host was last automated against -
last_deleted:
string(date-time)
Title:
Last deletedWhen the host was last deleted -
url:
string
Title:
UrlRead Only:true -
used_in_inventories:
integer
Title:
Used in inventoriesHow many inventories contain this host