-
Notifications
You must be signed in to change notification settings - Fork 0
/
autoscale.go
42 lines (32 loc) · 1.25 KB
/
autoscale.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2024, Unikraft GmbH.
// Licensed under the BSD-3-Clause License (the "License").
// You may not use this file except in compliance with the License.
package autoscale
// PolicyType is the type of the autoscale policy.
type PolicyType string
const PolicyTypeStep PolicyType = "step"
const (
// Endpoint is the public path for the autoscale service.
Endpoint = "/services/autoscale"
// AutoscaleEndpoint is the public path for the autoscale service.
AutoscaleEndpoint = "/autoscale"
// AutoscalePolicyEndpoint is the public path for the autoscale policy service.
AutoscalePolicyEndpoint = "/policies"
)
// PolicyMetric is the autoscale policy metric.
type PolicyMetric string
const (
// PolicyMetricCPU is the CPU autoscale policy metric.
PolicyMetricCPU = "cpu"
)
// AdjustmentType is the autoscale adjustment type.
type AdjustmentType string
const (
// AdjustmentTypePercent is the percent autoscale adjustment type.
AdjustmentTypePercent AdjustmentType = "percent"
// AdjustmentTypeAbsolute is the absolute autoscale adjustment type.
AdjustmentTypeAbsolute AdjustmentType = "absolute"
// AdjustmentTypeChange is the change autoscale adjustment type.
AdjustmentTypeChange AdjustmentType = "change"
)