Package com.datadog.api.client.v2.model
Class ActionQueryProperties
java.lang.Object
com.datadog.api.client.v2.model.ActionQueryProperties
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ActionQueryProperties
extends Object
The properties of the action query.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncondition(ActionQueryCondition condition) debounceInMs(ActionQueryDebounceInMs debounceInMs) booleanReturn true if this ActionQueryProperties object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Whether to run this query.The minimum time in milliseconds that must pass before the query can be triggered again.The mocked outputs of the action query.Determines when this query is executed.The post-query transformation function, which is a JavaScript function that changes the query's.outputsproperty after the query's execution.If specified, the app will poll the query at the specified interval in milliseconds.Whether to prompt the user to confirm this query before it runs.Whether to display a toast to the user when the query returns an error.getSpec()The definition of the action query.inthashCode()mockedOutputs(ActionQueryMockedOutputs mockedOutputs) onlyTriggerManually(ActionQueryOnlyTriggerManually onlyTriggerManually) pollingIntervalInMs(ActionQueryPollingIntervalInMs pollingIntervalInMs) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.requiresConfirmation(ActionQueryRequiresConfirmation requiresConfirmation) voidsetCondition(ActionQueryCondition condition) voidsetDebounceInMs(ActionQueryDebounceInMs debounceInMs) voidsetMockedOutputs(ActionQueryMockedOutputs mockedOutputs) voidsetOnlyTriggerManually(ActionQueryOnlyTriggerManually onlyTriggerManually) voidsetOutputs(String outputs) voidsetPollingIntervalInMs(ActionQueryPollingIntervalInMs pollingIntervalInMs) voidsetRequiresConfirmation(ActionQueryRequiresConfirmation requiresConfirmation) voidsetShowToastOnError(ActionQueryShowToastOnError showToastOnError) voidsetSpec(ActionQuerySpec spec) showToastOnError(ActionQueryShowToastOnError showToastOnError) spec(ActionQuerySpec spec) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CONDITION
- See Also:
-
JSON_PROPERTY_DEBOUNCE_IN_MS
- See Also:
-
JSON_PROPERTY_MOCKED_OUTPUTS
- See Also:
-
JSON_PROPERTY_ONLY_TRIGGER_MANUALLY
- See Also:
-
JSON_PROPERTY_OUTPUTS
- See Also:
-
JSON_PROPERTY_POLLING_INTERVAL_IN_MS
- See Also:
-
JSON_PROPERTY_REQUIRES_CONFIRMATION
- See Also:
-
JSON_PROPERTY_SHOW_TOAST_ON_ERROR
- See Also:
-
JSON_PROPERTY_SPEC
- See Also:
-
-
Constructor Details
-
ActionQueryProperties
public ActionQueryProperties() -
ActionQueryProperties
-
-
Method Details
-
condition
-
getCondition
Whether to run this query. If specified, the query will only run if this condition evaluates totruein JavaScript and all other conditions are also met.- Returns:
- condition
-
setCondition
-
debounceInMs
-
getDebounceInMs
The minimum time in milliseconds that must pass before the query can be triggered again. This is useful for preventing accidental double-clicks from triggering the query multiple times.- Returns:
- debounceInMs
-
setDebounceInMs
-
mockedOutputs
-
getMockedOutputs
The mocked outputs of the action query. This is useful for testing the app without actually running the action.- Returns:
- mockedOutputs
-
setMockedOutputs
-
onlyTriggerManually
public ActionQueryProperties onlyTriggerManually(ActionQueryOnlyTriggerManually onlyTriggerManually) -
getOnlyTriggerManually
Determines when this query is executed. If set tofalse, the query will run when the app loads and whenever any query arguments change. If set totrue, the query will only run when manually triggered from elsewhere in the app.- Returns:
- onlyTriggerManually
-
setOnlyTriggerManually
-
outputs
-
getOutputs
The post-query transformation function, which is a JavaScript function that changes the query's.outputsproperty after the query's execution.- Returns:
- outputs
-
setOutputs
-
pollingIntervalInMs
public ActionQueryProperties pollingIntervalInMs(ActionQueryPollingIntervalInMs pollingIntervalInMs) -
getPollingIntervalInMs
If specified, the app will poll the query at the specified interval in milliseconds. The minimum polling interval is 15 seconds. The query will only poll when the app's browser tab is active.- Returns:
- pollingIntervalInMs
-
setPollingIntervalInMs
-
requiresConfirmation
public ActionQueryProperties requiresConfirmation(ActionQueryRequiresConfirmation requiresConfirmation) -
getRequiresConfirmation
Whether to prompt the user to confirm this query before it runs.- Returns:
- requiresConfirmation
-
setRequiresConfirmation
-
showToastOnError
-
getShowToastOnError
Whether to display a toast to the user when the query returns an error.- Returns:
- showToastOnError
-
setShowToastOnError
-
spec
-
getSpec
The definition of the action query.- Returns:
- spec
-
setSpec
-
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:
- ActionQueryProperties
-
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 ActionQueryProperties object is equal to o. -
hashCode
public int hashCode() -
toString
-