Package com.datadog.api.client.v2.model
Class SecurityMonitoringStandardRuleQuery
java.lang.Object
com.datadog.api.client.v2.model.SecurityMonitoringStandardRuleQuery
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SecurityMonitoringStandardRuleQuery
extends Object
Query for matching rule.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDistinctFieldsItem(String distinctFieldsItem) addGroupByFieldsItem(String groupByFieldsItem) addIndexesItem(String indexesItem) addMetricsItem(String metricsItem) aggregation(SecurityMonitoringRuleQueryAggregation aggregation) customQueryExtension(String customQueryExtension) dataSource(SecurityMonitoringStandardDataSource dataSource) distinctFields(List<String> distinctFields) booleanReturn true if this SecurityMonitoringStandardRuleQuery object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The aggregation type.Query extension to append to the logs query.Source of events, either logs, audit trail, security signals, or Datadog events.Field for which the cardinality is measured.Fields to group by.When false, events without a group-by value are ignored by the rule.getIndex()This field is currently unstable and might be removed in a minor version upgrade. The index to run the query on, if thedataSourceislogs.List of indexes to query when thedataSourceislogs.Deprecated.Group of target fields to aggregate over when using the sum, max, geo data, or new value aggregations.getName()Name of the query.getQuery()Query to run on logs.groupByFields(List<String> groupByFields) inthashCode()hasOptionalGroupByFields(Boolean hasOptionalGroupByFields) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetAggregation(SecurityMonitoringRuleQueryAggregation aggregation) voidsetCustomQueryExtension(String customQueryExtension) voidsetDataSource(SecurityMonitoringStandardDataSource dataSource) voidsetDistinctFields(List<String> distinctFields) voidsetGroupByFields(List<String> groupByFields) voidsetHasOptionalGroupByFields(Boolean hasOptionalGroupByFields) voidvoidsetIndexes(List<String> indexes) voidDeprecated.voidsetMetrics(List<String> metrics) voidvoidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_AGGREGATION
- See Also:
-
JSON_PROPERTY_CUSTOM_QUERY_EXTENSION
- See Also:
-
JSON_PROPERTY_DATA_SOURCE
- See Also:
-
JSON_PROPERTY_DISTINCT_FIELDS
- See Also:
-
JSON_PROPERTY_GROUP_BY_FIELDS
- See Also:
-
JSON_PROPERTY_HAS_OPTIONAL_GROUP_BY_FIELDS
- See Also:
-
JSON_PROPERTY_INDEX
- See Also:
-
JSON_PROPERTY_INDEXES
- See Also:
-
JSON_PROPERTY_METRIC
- See Also:
-
JSON_PROPERTY_METRICS
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_QUERY
- See Also:
-
-
Constructor Details
-
SecurityMonitoringStandardRuleQuery
public SecurityMonitoringStandardRuleQuery()
-
-
Method Details
-
aggregation
public SecurityMonitoringStandardRuleQuery aggregation(SecurityMonitoringRuleQueryAggregation aggregation) -
getAggregation
The aggregation type.- Returns:
- aggregation
-
setAggregation
-
customQueryExtension
-
getCustomQueryExtension
Query extension to append to the logs query.- Returns:
- customQueryExtension
-
setCustomQueryExtension
-
dataSource
public SecurityMonitoringStandardRuleQuery dataSource(SecurityMonitoringStandardDataSource dataSource) -
getDataSource
Source of events, either logs, audit trail, security signals, or Datadog events.app_sec_spansis deprecated in favor ofspans.- Returns:
- dataSource
-
setDataSource
-
distinctFields
-
addDistinctFieldsItem
-
getDistinctFields
Field for which the cardinality is measured. Sent as an array.- Returns:
- distinctFields
-
setDistinctFields
-
groupByFields
-
addGroupByFieldsItem
-
getGroupByFields
Fields to group by.- Returns:
- groupByFields
-
setGroupByFields
-
hasOptionalGroupByFields
public SecurityMonitoringStandardRuleQuery hasOptionalGroupByFields(Boolean hasOptionalGroupByFields) -
getHasOptionalGroupByFields
When false, events without a group-by value are ignored by the rule. When true, events with missing group-by fields are processed withN/A, replacing the missing values.- Returns:
- hasOptionalGroupByFields
-
setHasOptionalGroupByFields
-
index
-
getIndex
This field is currently unstable and might be removed in a minor version upgrade. The index to run the query on, if thedataSourceislogs. Only used for scheduled rules - in other words, when theschedulingOptionsfield is present in the rule payload.- Returns:
- index
-
setIndex
-
indexes
-
addIndexesItem
-
getIndexes
List of indexes to query when thedataSourceislogs. Only used for scheduled rules, such as when theschedulingOptionsfield is present in the rule payload.- Returns:
- indexes
-
setIndexes
-
metric
-
getMetric
Deprecated.(Deprecated) The target field to aggregate over when using the sum or max aggregations.metricsfield should be used instead.- Returns:
- metric
-
setMetric
Deprecated. -
metrics
-
addMetricsItem
-
getMetrics
Group of target fields to aggregate over when using the sum, max, geo data, or new value aggregations. The sum, max, and geo data aggregations only accept one value in this list, whereas the new value aggregation accepts up to five values.- Returns:
- metrics
-
setMetrics
-
name
-
getName
Name of the query.- Returns:
- name
-
setName
-
query
-
getQuery
Query to run on logs.- Returns:
- query
-
setQuery
-
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:
- SecurityMonitoringStandardRuleQuery
-
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 SecurityMonitoringStandardRuleQuery object is equal to o. -
hashCode
public int hashCode() -
toString
-