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 `default:"https://input.yevents.io" envconfig:"EDP_URL" required:"true"` Namespace string `default:"kyma-dev" envconfig:"EDP_NAMESPACE" required:"true"` DataStreamName string `default:"consumption-metrics" envconfig:"EDP_DATASTREAM_NAME" required:"true"` DataStreamVersion string `default:"1" envconfig:"EDP_DATASTREAM_VERSION" required:"true"` DataStreamEnv string `default:"dev" envconfig:"EDP_DATASTREAM_ENV" required:"true"` Timeout time.Duration `default:"30s" envconfig:"EDP_TIMEOUT"` EventRetry int `default:"3" envconfig:"EDP_RETRY"` 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.