This commit is contained in:
parent
f78270188f
commit
42db90d904
|
@ -265,6 +265,7 @@ func NewAlert(leaky *Leaky, queue *Queue) (types.RuntimeAlert, error) {
|
||||||
StartAt: &startAt,
|
StartAt: &startAt,
|
||||||
StopAt: &stopAt,
|
StopAt: &stopAt,
|
||||||
Simulated: &leaky.Simulated,
|
Simulated: &leaky.Simulated,
|
||||||
|
Labels: leaky.BucketConfig.Labels,
|
||||||
}
|
}
|
||||||
if leaky.BucketConfig == nil {
|
if leaky.BucketConfig == nil {
|
||||||
return runtimeAlert, fmt.Errorf("leaky.BucketConfig is nil")
|
return runtimeAlert, fmt.Errorf("leaky.BucketConfig is nil")
|
||||||
|
|
|
@ -44,7 +44,7 @@ type Alert struct {
|
||||||
ID int64 `json:"id,omitempty"`
|
ID int64 `json:"id,omitempty"`
|
||||||
|
|
||||||
// labels
|
// labels
|
||||||
Labels []string `json:"labels"`
|
Labels map[string]string `json:"labels,omitempty"`
|
||||||
|
|
||||||
// leakspeed
|
// leakspeed
|
||||||
// Required: true
|
// Required: true
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# yaml-language-server: $schema=https://github.com/OAI/OpenAPI-Specification/blob/main/schemas/v3.0/schema.yaml
|
||||||
swagger: '2.0'
|
swagger: '2.0'
|
||||||
info:
|
info:
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
|
@ -748,8 +749,8 @@ definitions:
|
||||||
meta:
|
meta:
|
||||||
$ref: '#/definitions/Meta'
|
$ref: '#/definitions/Meta'
|
||||||
labels:
|
labels:
|
||||||
type: array
|
type: object
|
||||||
items:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
required:
|
required:
|
||||||
- scenario
|
- scenario
|
||||||
|
|
Loading…
Reference in a new issue