Documentation
¶
Index ¶
Constants ¶
View Source
const (
// RequestAttributeReporterType is the type of this plugin.
RequestAttributeReporterType = "request-attribute-reporter"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attribute ¶
type Attribute struct {
Key AttributeKey `json:"key"`
// The CEL expression to calculate the value. Must return an integer.
Expression string `json:"expression"`
// Optional: CEL expression to determine if this metric should be calculated/reported.
// Must return a boolean.
Condition string `json:"condition,omitempty"`
}
type AttributeKey ¶
type AttributeKey struct {
// Which top-level key to use in dynamic metadata. Optional. Defaults to envoy.lb if omitted
Namespace string `json:"namespace"`
// What key to use in the provided namespace for the value from the expression
Name string `json:"name"`
}
Defines where in dynamic metadata to return the data
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin state
func (*Plugin) ResponseBody ¶
func (p *Plugin) ResponseBody(ctx context.Context, request *scheduling.InferenceRequest, response *requestcontrol.Response, _ *datalayer.EndpointMetadata)
Click to show internal directories.
Click to hide internal directories.