forked from llm-d/llm-d-router
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslorangems.go
More file actions
39 lines (34 loc) · 1.63 KB
/
Copy pathslorangems.go
File metadata and controls
39 lines (34 loc) · 1.63 KB
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
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package v1alpha2
// SLORangeMsApplyConfiguration represents a declarative configuration of the SLORangeMs type for use
// with apply.
//
// SLORangeMs defines a millisecond range for an SLO metric.
// MinMs is inclusive, MaxMs is exclusive: [MinMs, MaxMs).
// Omitting MinMs implies 0 (no lower bound).
// Omitting MaxMs implies no upper bound.
type SLORangeMsApplyConfiguration struct {
// MinMs is the inclusive lower bound of the SLO range in milliseconds.
MinMs *int64 `json:"minMs,omitempty"`
// MaxMs is the exclusive upper bound of the SLO range in milliseconds.
MaxMs *int64 `json:"maxMs,omitempty"`
}
// SLORangeMsApplyConfiguration constructs a declarative configuration of the SLORangeMs type for use with
// apply.
func SLORangeMs() *SLORangeMsApplyConfiguration {
return &SLORangeMsApplyConfiguration{}
}
// WithMinMs sets the MinMs field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MinMs field is set to the value of the last call.
func (b *SLORangeMsApplyConfiguration) WithMinMs(value int64) *SLORangeMsApplyConfiguration {
b.MinMs = &value
return b
}
// WithMaxMs sets the MaxMs field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the MaxMs field is set to the value of the last call.
func (b *SLORangeMsApplyConfiguration) WithMaxMs(value int64) *SLORangeMsApplyConfiguration {
b.MaxMs = &value
return b
}