aboutsummaryrefslogtreecommitdiffstats
path: root/library/go/yandex/yplite/spec.go
diff options
context:
space:
mode:
authorhcpp <hcpp@ydb.tech>2023-11-08 12:09:41 +0300
committerhcpp <hcpp@ydb.tech>2023-11-08 12:56:14 +0300
commita361f5b98b98b44ea510d274f6769164640dd5e1 (patch)
treec47c80962c6e2e7b06798238752fd3da0191a3f6 /library/go/yandex/yplite/spec.go
parent9478806fde1f4d40bd5a45e7cbe77237dab613e9 (diff)
downloadydb-a361f5b98b98b44ea510d274f6769164640dd5e1.tar.gz
metrics have been added
Diffstat (limited to 'library/go/yandex/yplite/spec.go')
-rw-r--r--library/go/yandex/yplite/spec.go46
1 files changed, 46 insertions, 0 deletions
diff --git a/library/go/yandex/yplite/spec.go b/library/go/yandex/yplite/spec.go
new file mode 100644
index 0000000000..228f9627ef
--- /dev/null
+++ b/library/go/yandex/yplite/spec.go
@@ -0,0 +1,46 @@
+package yplite
+
+type PodSpec struct {
+ DNS PodDNS `json:"dns"`
+ ResourceRequests ResourceRequest `json:"resourceRequests"`
+ PortoProperties []PortoProperty `json:"portoProperties"`
+ IP6AddressAllocations []IP6AddressAllocation `json:"ip6AddressAllocations"`
+}
+
+type PodAttributes struct {
+ ResourceRequirements struct {
+ CPU struct {
+ Guarantee uint64 `json:"cpu_guarantee_millicores,string"`
+ Limit uint64 `json:"cpu_limit_millicores,string"`
+ } `json:"cpu"`
+ Memory struct {
+ Guarantee uint64 `json:"memory_guarantee_bytes,string"`
+ Limit uint64 `json:"memory_limit_bytes,string"`
+ } `json:"memory"`
+ } `json:"resource_requirements"`
+}
+
+type ResourceRequest struct {
+ CPUGuarantee uint64 `json:"vcpuGuarantee,string"`
+ CPULimit uint64 `json:"vcpuLimit,string"`
+ MemoryGuarantee uint64 `json:"memoryGuarantee,string"`
+ MemoryLimit uint64 `json:"memoryLimit,string"`
+ AnonymousMemoryLimit uint64 `json:"anonymousMemoryLimit,string"`
+}
+
+type IP6AddressAllocation struct {
+ Address string `json:"address"`
+ VlanID string `json:"vlanId"`
+ PersistentFQDN string `json:"persistentFqdn"`
+ TransientFQDN string `json:"transientFqdn"`
+}
+
+type PortoProperty struct {
+ Name string `json:"key"`
+ Value string `json:"value"`
+}
+
+type PodDNS struct {
+ PersistentFqdn string `json:"persistentFqdn"`
+ TransientFqdn string `json:"transientFqdn"`
+}