Package com.datadog.api.client.v2.model
Class RuleAttributesRequest
java.lang.Object
com.datadog.api.client.v2.model.RuleAttributesRequest
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class RuleAttributesRequest
extends Object
Attributes for creating or updating a rule. Server-managed fields (created_at, modified_at,
custom) are excluded.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) booleanReturn true if this RuleAttributesRequest object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Explanation of the rule.If enabled, the rule is calculated as part of the score.getLevel()The maturity level of the rule (1, 2, or 3).getName()Name of the rule.getOwner()Owner of the rule.A query to filter which entities this rule applies to.The scorecard name to which this rule must belong.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.scopeQuery(String scopeQuery) scorecardName(String scorecardName) voidsetDescription(String description) voidsetEnabled(Boolean enabled) voidvoidvoidvoidsetScopeQuery(String scopeQuery) voidsetScorecardName(String scorecardName) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_LEVEL
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_OWNER
- See Also:
-
JSON_PROPERTY_SCOPE_QUERY
- See Also:
-
JSON_PROPERTY_SCORECARD_NAME
- See Also:
-
-
Constructor Details
-
RuleAttributesRequest
public RuleAttributesRequest()
-
-
Method Details
-
description
-
getDescription
Explanation of the rule.- Returns:
- description
-
setDescription
-
enabled
-
getEnabled
If enabled, the rule is calculated as part of the score.- Returns:
- enabled
-
setEnabled
-
level
-
getLevel
The maturity level of the rule (1, 2, or 3). minimum: 1 maximum: 3- Returns:
- level
-
setLevel
-
name
-
getName
Name of the rule.- Returns:
- name
-
setName
-
owner
-
getOwner
Owner of the rule.- Returns:
- owner
-
setOwner
-
scopeQuery
-
getScopeQuery
A query to filter which entities this rule applies to.- Returns:
- scopeQuery
-
setScopeQuery
-
scorecardName
-
getScorecardName
The scorecard name to which this rule must belong.- Returns:
- scorecardName
-
setScorecardName
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- RuleAttributesRequest
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this RuleAttributesRequest object is equal to o. -
hashCode
public int hashCode() -
toString
-