Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterCost ¶
type ClusterCost struct { TotalCost *float64 `json:"totalCost,omitempty"` Namespaces []*Namespace `json:"namespaces,omitempty"` Deployments []*Deployment `json:"deployments,omitempty"` StandAlonePodsCost *float64 `json:"standAlonePodsCost,omitempty"` HeadroomCost *float64 `json:"headroomCost,omitempty"` }
type ClusterCostInput ¶
type ClusterCostOutput ¶
type ClusterCostOutput struct {
ClusterCosts []*ClusterCost `json:"clusterCosts,omitempty"`
}
type Deployment ¶
type Service ¶
type Service interface {
GetClusterCosts(context.Context, *ClusterCostInput) (*ClusterCostOutput, error)
}
Service provides the API operation methods for making requests to endpoints of the Spotinst API. See this package's package overview docs for details on the service.
type ServiceOp ¶
func (*ServiceOp) GetClusterCosts ¶
func (s *ServiceOp) GetClusterCosts(ctx context.Context, input *ClusterCostInput) (*ClusterCostOutput, error)
GetClusterCosts accepts kubernetes clusterId, fromDate, and toDate and returns a list of costs. Dates may be in the format of yyyy-mm-dd or Unix Timestamp (1494751821472)
Click to show internal directories.
Click to hide internal directories.