@@ -23,6 +23,8 @@ type RuleAttributes struct {
2323 Description * string `json:"description,omitempty"`
2424 // If enabled, the rule is calculated as part of the score.
2525 Enabled * bool `json:"enabled,omitempty"`
26+ // The maturity level of the rule (1, 2, or 3).
27+ Level * int32 `json:"level,omitempty"`
2628 // Time of the last rule outcome modification.
2729 ModifiedAt * time.Time `json:"modified_at,omitempty"`
2830 // Name of the rule.
@@ -196,6 +198,34 @@ func (o *RuleAttributes) SetEnabled(v bool) {
196198 o .Enabled = & v
197199}
198200
201+ // GetLevel returns the Level field value if set, zero value otherwise.
202+ func (o * RuleAttributes ) GetLevel () int32 {
203+ if o == nil || o .Level == nil {
204+ var ret int32
205+ return ret
206+ }
207+ return * o .Level
208+ }
209+
210+ // GetLevelOk returns a tuple with the Level field value if set, nil otherwise
211+ // and a boolean to check if the value has been set.
212+ func (o * RuleAttributes ) GetLevelOk () (* int32 , bool ) {
213+ if o == nil || o .Level == nil {
214+ return nil , false
215+ }
216+ return o .Level , true
217+ }
218+
219+ // HasLevel returns a boolean if a field has been set.
220+ func (o * RuleAttributes ) HasLevel () bool {
221+ return o != nil && o .Level != nil
222+ }
223+
224+ // SetLevel gets a reference to the given int32 and assigns it to the Level field.
225+ func (o * RuleAttributes ) SetLevel (v int32 ) {
226+ o .Level = & v
227+ }
228+
199229// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.
200230func (o * RuleAttributes ) GetModifiedAt () time.Time {
201231 if o == nil || o .ModifiedAt == nil {
@@ -333,6 +363,9 @@ func (o RuleAttributes) MarshalJSON() ([]byte, error) {
333363 if o .Enabled != nil {
334364 toSerialize ["enabled" ] = o .Enabled
335365 }
366+ if o .Level != nil {
367+ toSerialize ["level" ] = o .Level
368+ }
336369 if o .ModifiedAt != nil {
337370 if o .ModifiedAt .Nanosecond () == 0 {
338371 toSerialize ["modified_at" ] = o .ModifiedAt .Format ("2006-01-02T15:04:05Z07:00" )
@@ -364,6 +397,7 @@ func (o *RuleAttributes) UnmarshalJSON(bytes []byte) (err error) {
364397 Custom * bool `json:"custom,omitempty"`
365398 Description * string `json:"description,omitempty"`
366399 Enabled * bool `json:"enabled,omitempty"`
400+ Level * int32 `json:"level,omitempty"`
367401 ModifiedAt * time.Time `json:"modified_at,omitempty"`
368402 Name * string `json:"name,omitempty"`
369403 Owner * string `json:"owner,omitempty"`
@@ -374,7 +408,7 @@ func (o *RuleAttributes) UnmarshalJSON(bytes []byte) (err error) {
374408 }
375409 additionalProperties := make (map [string ]interface {})
376410 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
377- datadog .DeleteKeys (additionalProperties , & []string {"category" , "created_at" , "custom" , "description" , "enabled" , "modified_at" , "name" , "owner" , "scorecard_name" })
411+ datadog .DeleteKeys (additionalProperties , & []string {"category" , "created_at" , "custom" , "description" , "enabled" , "level" , " modified_at" , "name" , "owner" , "scorecard_name" })
378412 } else {
379413 return err
380414 }
@@ -383,6 +417,7 @@ func (o *RuleAttributes) UnmarshalJSON(bytes []byte) (err error) {
383417 o .Custom = all .Custom
384418 o .Description = all .Description
385419 o .Enabled = all .Enabled
420+ o .Level = all .Level
386421 o .ModifiedAt = all .ModifiedAt
387422 o .Name = all .Name
388423 o .Owner = all .Owner
0 commit comments