@@ -11,7 +11,7 @@ import (
1111// LogsAggregateBucket A bucket values
1212type LogsAggregateBucket struct {
1313 // The key, value pairs for each group by
14- By map [string ]string `json:"by,omitempty"`
14+ By map [string ]interface {} `json:"by,omitempty"`
1515 // A map of the metric name -> value for regular compute or list of values for a timeseries
1616 Computes map [string ]LogsAggregateBucketValue `json:"computes,omitempty"`
1717 // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
@@ -37,17 +37,17 @@ func NewLogsAggregateBucketWithDefaults() *LogsAggregateBucket {
3737}
3838
3939// GetBy returns the By field value if set, zero value otherwise.
40- func (o * LogsAggregateBucket ) GetBy () map [string ]string {
40+ func (o * LogsAggregateBucket ) GetBy () map [string ]interface {} {
4141 if o == nil || o .By == nil {
42- var ret map [string ]string
42+ var ret map [string ]interface {}
4343 return ret
4444 }
4545 return o .By
4646}
4747
4848// GetByOk returns a tuple with the By field value if set, nil otherwise
4949// and a boolean to check if the value has been set.
50- func (o * LogsAggregateBucket ) GetByOk () (* map [string ]string , bool ) {
50+ func (o * LogsAggregateBucket ) GetByOk () (* map [string ]interface {} , bool ) {
5151 if o == nil || o .By == nil {
5252 return nil , false
5353 }
@@ -59,8 +59,8 @@ func (o *LogsAggregateBucket) HasBy() bool {
5959 return o != nil && o .By != nil
6060}
6161
62- // SetBy gets a reference to the given map[string]string and assigns it to the By field.
63- func (o * LogsAggregateBucket ) SetBy (v map [string ]string ) {
62+ // SetBy gets a reference to the given map[string]interface{} and assigns it to the By field.
63+ func (o * LogsAggregateBucket ) SetBy (v map [string ]interface {} ) {
6464 o .By = v
6565}
6666
@@ -115,7 +115,7 @@ func (o LogsAggregateBucket) MarshalJSON() ([]byte, error) {
115115func (o * LogsAggregateBucket ) UnmarshalJSON (bytes []byte ) (err error ) {
116116 raw := map [string ]interface {}{}
117117 all := struct {
118- By map [string ]string `json:"by,omitempty"`
118+ By map [string ]interface {} `json:"by,omitempty"`
119119 Computes map [string ]LogsAggregateBucketValue `json:"computes,omitempty"`
120120 }{}
121121 err = json .Unmarshal (bytes , & all )
0 commit comments