-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_flag.go
33 lines (30 loc) · 1.11 KB
/
model_flag.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
/*
* Flagr
*
* Flagr is a feature flagging, A/B testing and dynamic configuration microservice. The base path for all the APIs is \"/api/v1\".
*
* API version: 1.1.4
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package goflagr
import (
"time"
)
type Flag struct {
Id int64 `json:"id,omitempty"`
// unique key representation of the flag
Key string `json:"key,omitempty"`
Description string `json:"description"`
Enabled bool `json:"enabled"`
Segments []Segment `json:"segments,omitempty"`
Variants []Variant `json:"variants,omitempty"`
// enabled data records will get data logging in the metrics pipeline, for example, kafka.
DataRecordsEnabled bool `json:"dataRecordsEnabled"`
// it will override the entityType in the evaluation logs if it's not empty
EntityType string `json:"entityType,omitempty"`
// flag usage details in markdown format
Notes string `json:"notes,omitempty"`
CreatedBy string `json:"createdBy,omitempty"`
UpdatedBy string `json:"updatedBy,omitempty"`
UpdatedAt time.Time `json:"updatedAt,omitempty"`
}