Package com.datadog.api.client.v1.model
Class WidgetConditionalFormat
java.lang.Object
com.datadog.api.client.v1.model.WidgetConditionalFormat
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class WidgetConditionalFormat
extends Object
Define a conditional format for the widget.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWidgetConditionalFormat(WidgetComparator comparator, WidgetPalette palette, Double value) -
Method Summary
Modifier and TypeMethodDescriptioncomparator(WidgetComparator comparator) customBgColor(String customBgColor) customFgColor(String customFgColor) booleanReturn true if this WidgetConditionalFormat object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Comparator to apply.Color palette to apply to the background, same values available as palette.Color palette to apply to the foreground, same values available as palette.True hides values.Displays an image as the background.Metric from the request to correlate this conditional format with.Color palette to apply.Defines the displayed timeframe.getValue()Value for the comparator.inthashCode()palette(WidgetPalette palette) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetComparator(WidgetComparator comparator) voidsetCustomBgColor(String customBgColor) voidsetCustomFgColor(String customFgColor) voidsetHideValue(Boolean hideValue) voidsetImageUrl(String imageUrl) voidvoidsetPalette(WidgetPalette palette) voidsetTimeframe(String timeframe) voidtoString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_COMPARATOR
- See Also:
-
JSON_PROPERTY_CUSTOM_BG_COLOR
- See Also:
-
JSON_PROPERTY_CUSTOM_FG_COLOR
- See Also:
-
JSON_PROPERTY_HIDE_VALUE
- See Also:
-
JSON_PROPERTY_IMAGE_URL
- See Also:
-
JSON_PROPERTY_METRIC
- See Also:
-
JSON_PROPERTY_PALETTE
- See Also:
-
JSON_PROPERTY_TIMEFRAME
- See Also:
-
JSON_PROPERTY_VALUE
- See Also:
-
-
Constructor Details
-
WidgetConditionalFormat
public WidgetConditionalFormat() -
WidgetConditionalFormat
-
-
Method Details
-
comparator
-
getComparator
Comparator to apply.- Returns:
- comparator
-
setComparator
-
customBgColor
-
getCustomBgColor
Color palette to apply to the background, same values available as palette.- Returns:
- customBgColor
-
setCustomBgColor
-
customFgColor
-
getCustomFgColor
Color palette to apply to the foreground, same values available as palette.- Returns:
- customFgColor
-
setCustomFgColor
-
hideValue
-
getHideValue
True hides values.- Returns:
- hideValue
-
setHideValue
-
imageUrl
-
getImageUrl
Displays an image as the background.- Returns:
- imageUrl
-
setImageUrl
-
metric
-
getMetric
Metric from the request to correlate this conditional format with.- Returns:
- metric
-
setMetric
-
palette
-
getPalette
Color palette to apply.- Returns:
- palette
-
setPalette
-
timeframe
-
getTimeframe
Defines the displayed timeframe.- Returns:
- timeframe
-
setTimeframe
-
value
-
getValue
Value for the comparator.- Returns:
- value
-
setValue
-
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:
- WidgetConditionalFormat
-
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 WidgetConditionalFormat object is equal to o. -
hashCode
public int hashCode() -
toString
-