Package com.datadog.api.client.v2.model
Class GovernanceInsightAttributes
java.lang.Object
com.datadog.api.client.v2.model.GovernanceInsightAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class GovernanceInsightAttributes
extends Object
The attributes of a governance insight. Exactly one of
metric_query,
event_query, usage_query, audit_query, or percentage_query
is populated, depending on the data source the insight is computed from; the rest are
null.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauditQuery(GovernanceInsightAuditQuery auditQuery) description(String description) displayName(String displayName) booleanReturn true if this GovernanceInsightAttributes object is equal to o.eventQuery(GovernanceInsightEventQuery eventQuery) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.An audit log query used to compute an insight value.A human-readable description of what the insight measures.Human-readable name of the insight.An event query used to compute an insight value.A metric query used to compute an insight value.A percentage query that computes an insight value as a ratio of two metric queries.The product the insight belongs to.Query execution context for running insight queries directly.The sub-product the insight belongs to, if any.The time range the insight value is computed over, if applicable.The unit that the insight's value is measured in.A usage query used to compute an insight value.inthashCode()metricQuery(GovernanceInsightMetricQuery metricQuery) percentageQuery(GovernanceInsightPercentageQuery percentageQuery) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.queryConfig(GovernanceInsightQueryConfig queryConfig) voidsetAuditQuery(GovernanceInsightAuditQuery auditQuery) voidsetDescription(String description) voidsetDisplayName(String displayName) voidsetEventQuery(GovernanceInsightEventQuery eventQuery) voidsetMetricQuery(GovernanceInsightMetricQuery metricQuery) voidsetPercentageQuery(GovernanceInsightPercentageQuery percentageQuery) voidsetProduct(String product) voidsetQueryConfig(GovernanceInsightQueryConfig queryConfig) voidsetSubProduct(String subProduct) voidsetTimeRange(String timeRange) voidsetUnitName(String unitName) voidsetUsageQuery(GovernanceInsightUsageQuery usageQuery) subProduct(String subProduct) toString()usageQuery(GovernanceInsightUsageQuery usageQuery)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_AUDIT_QUERY
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_DISPLAY_NAME
- See Also:
-
JSON_PROPERTY_EVENT_QUERY
- See Also:
-
JSON_PROPERTY_METRIC_QUERY
- See Also:
-
JSON_PROPERTY_PERCENTAGE_QUERY
- See Also:
-
JSON_PROPERTY_PRODUCT
- See Also:
-
JSON_PROPERTY_QUERY_CONFIG
- See Also:
-
JSON_PROPERTY_SUB_PRODUCT
- See Also:
-
JSON_PROPERTY_TIME_RANGE
- See Also:
-
JSON_PROPERTY_UNIT_NAME
- See Also:
-
JSON_PROPERTY_USAGE_QUERY
- See Also:
-
-
Constructor Details
-
GovernanceInsightAttributes
public GovernanceInsightAttributes() -
GovernanceInsightAttributes
-
-
Method Details
-
auditQuery
-
getAuditQuery
An audit log query used to compute an insight value.- Returns:
- auditQuery
-
setAuditQuery
-
description
-
getDescription
A human-readable description of what the insight measures.- Returns:
- description
-
setDescription
-
displayName
-
getDisplayName
Human-readable name of the insight.- Returns:
- displayName
-
setDisplayName
-
eventQuery
-
getEventQuery
An event query used to compute an insight value.- Returns:
- eventQuery
-
setEventQuery
-
metricQuery
-
getMetricQuery
A metric query used to compute an insight value.- Returns:
- metricQuery
-
setMetricQuery
-
percentageQuery
public GovernanceInsightAttributes percentageQuery(GovernanceInsightPercentageQuery percentageQuery) -
getPercentageQuery
A percentage query that computes an insight value as a ratio of two metric queries.- Returns:
- percentageQuery
-
setPercentageQuery
-
product
-
getProduct
The product the insight belongs to.- Returns:
- product
-
setProduct
-
queryConfig
-
getQueryConfig
Query execution context for running insight queries directly.- Returns:
- queryConfig
-
setQueryConfig
-
subProduct
-
getSubProduct
The sub-product the insight belongs to, if any.- Returns:
- subProduct
-
setSubProduct
-
timeRange
-
getTimeRange
The time range the insight value is computed over, if applicable.- Returns:
- timeRange
-
setTimeRange
-
unitName
-
getUnitName
The unit that the insight's value is measured in.- Returns:
- unitName
-
setUnitName
-
usageQuery
-
getUsageQuery
A usage query used to compute an insight value.- Returns:
- usageQuery
-
setUsageQuery
-
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:
- GovernanceInsightAttributes
-
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 GovernanceInsightAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-