The usage type object holds details about a service.

Field

Type

Example

Description

description

String

"bitlaunch-ubuntu-lon1-nibble-1024"

A description of the service.

start

Date (Unix Timestamp)

"2020-10-12T13:00:00Z"

The date and time of when the service was created (Rounded down to the hour).

end

Date (Unix Timestamp)

"2020-10-12T18:00:00Z"

The date and time of when the service is being charged next or was last charged (Rounded up to the hour).

cost

Integer

135

The amount to be charged. The amount is (USD * 1000).

hours

Integer

5

The amount of hours the service was running (Rounded up).

amount

Integer

0

The amount of used units.

type

String

"server"

The type is a string that represents what is being charged.