Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { HttpClient *http.Client Config *Config Logger *zap.SugaredLogger }
func (Client) NewRequest ¶
type Compute ¶
type Compute struct { VMTypes []VMType `json:"vm_types" validate:"required"` ProvisionedCpus int `json:"provisioned_cpus" validate:"numeric"` ProvisionedRAMGb float64 `json:"provisioned_ram_gb" validate:"numeric"` ProvisionedVolumes ProvisionedVolumes `json:"provisioned_volumes" validate:"required"` }
type Config ¶
type Config struct { URL string `envconfig:"EDP_URL" default:"https://input.yevents.io" required:"true"` Namespace string `envconfig:"EDP_NAMESPACE" default:"kyma-dev" required:"true"` DataStreamName string `envconfig:"EDP_DATASTREAM_NAME" default:"consumption-metrics" required:"true"` DataStreamVersion string `envconfig:"EDP_DATASTREAM_VERSION" default:"1" required:"true"` DataStreamEnv string `envconfig:"EDP_DATASTREAM_ENV" default:"dev" required:"true"` Timeout time.Duration `envconfig:"EDP_TIMEOUT" default:"30s"` EventRetry int `envconfig:"EDP_RETRY" default:"3"` Token string }
type ConsumptionMetrics ¶
type ConsumptionMetrics struct { RuntimeId string `json:"runtime_id" validate:"required"` SubAccountId string `json:"sub_account_id" validate:"required"` ShootName string `json:"shoot_name" validate:"required"` Timestamp string `json:"timestamp" validate:"required"` Compute Compute `json:"compute" validate:"required"` Networking *Networking `json:"networking,omitempty"` }
type Networking ¶
type ProvisionedVolumes ¶
Click to show internal directories.
Click to hide internal directories.