client.clusters.list_kubernetes_compute_hours

A method of the Clusters endpoint.

list_kubernetes_compute_hours(id: int, *, include_usage_stats: bool = None) ListResponse

List compute hours for a Kubernetes Cluster

API URL: GET /clusters/kubernetes/{id}/compute_hours

import civis
client = civis.APIClient()
response = client.clusters.list_kubernetes_compute_hours(...)
Parameters:
idint
include_usage_statsbool, optional

When true, usage stats are returned in instance config objects. Defaults to false.

Returns:
civis.ListResponse
  • total_normalized_hoursint

    The total number of normalized hours used by this cluster.

  • normalized_hours_by_instance_typestr

    Denotes the instance type the normalized hours are attributed to.

  • updated_at : str (time)

  • month_and_yearstr

    The month and year the normalized hours are attributed to.