SingleValueChart
This chart type displays a single number in a large font, representing the current value of a single metric on a plot line.
If the time period is in the past, the number represents the value of the metric near the end of the time period.
Example Usage
using Pulumi;
using SignalFx = Pulumi.SignalFx;
class MyStack : Stack
{
public MyStack()
{
var mysvchart0 = new SignalFx.SingleValueChart("mysvchart0", new SignalFx.SingleValueChartArgs
{
ColorBy = "Dimension",
Description = "Very cool Single Value Chart",
IsTimestampHidden = true,
MaxDelay = 2,
MaxPrecision = 2,
ProgramText = @"myfilters = filter(""cluster_name"", ""prod"") and filter(""role"", ""search"")
data(""cpu.total.idle"", filter=myfilters).publish()
",
RefreshInterval = 1,
});
}
}
Coming soon!
import pulumi
import pulumi_signalfx as signalfx
mysvchart0 = signalfx.SingleValueChart("mysvchart0",
color_by="Dimension",
description="Very cool Single Value Chart",
is_timestamp_hidden=True,
max_delay=2,
max_precision=2,
program_text="""myfilters = filter("cluster_name", "prod") and filter("role", "search")
data("cpu.total.idle", filter=myfilters).publish()
""",
refresh_interval=1)import * as pulumi from "@pulumi/pulumi";
import * as signalfx from "@pulumi/signalfx";
const mysvchart0 = new signalfx.SingleValueChart("mysvchart0", {
colorBy: "Dimension",
description: "Very cool Single Value Chart",
isTimestampHidden: true,
maxDelay: 2,
maxPrecision: 2,
programText: `myfilters = filter("cluster_name", "prod") and filter("role", "search")
data("cpu.total.idle", filter=myfilters).publish()
`,
refreshInterval: 1,
});Create a SingleValueChart Resource
new SingleValueChart(name: string, args: SingleValueChartArgs, opts?: CustomResourceOptions);def SingleValueChart(resource_name, opts=None, color_by=None, color_scales=None, description=None, is_timestamp_hidden=None, max_delay=None, max_precision=None, name=None, program_text=None, refresh_interval=None, secondary_visualization=None, show_spark_line=None, unit_prefix=None, viz_options=None, __props__=None);func NewSingleValueChart(ctx *Context, name string, args SingleValueChartArgs, opts ...ResourceOption) (*SingleValueChart, error)public SingleValueChart(string name, SingleValueChartArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SingleValueChartArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SingleValueChartArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SingleValueChartArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SingleValueChart Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SingleValueChart resource accepts the following input properties:
- Program
Text string Signalflow program text for the chart. More info in the SignalFx docs.
- Color
By string Must be
"Dimension","Scale"or"Metric"."Dimension"by default.- Color
Scales List<Pulumi.Signal Fx. Inputs. Single Value Chart Color Scale Args> Single color range including both the color to display for that range and the borders of the range. Example:
[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]. Look at this link.- Description string
Description of the chart.
- bool
Whether to hide the timestamp in the chart.
falseby default.- Max
Delay int How long (in seconds) to wait for late datapoints
- Max
Precision int The maximum precision to for value displayed.
- Name string
Name of the chart.
- Refresh
Interval int How often (in seconds) to refresh the value.
- Secondary
Visualization string The type of secondary visualization. Can be
None,Radial,Linear, orSparkline. If unset, the SignalFx default is used (None).- Show
Spark boolLine Whether to show a trend line below the current value.
falseby default.- Unit
Prefix string Must be
"Metric"or"Binary"."Metric"by default.- Viz
Options List<Pulumi.Signal Fx. Inputs. Single Value Chart Viz Option Args> Plot-level customization options, associated with a publish statement.
- Program
Text string Signalflow program text for the chart. More info in the SignalFx docs.
- Color
By string Must be
"Dimension","Scale"or"Metric"."Dimension"by default.- Color
Scales []SingleValue Chart Color Scale Single color range including both the color to display for that range and the borders of the range. Example:
[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]. Look at this link.- Description string
Description of the chart.
- bool
Whether to hide the timestamp in the chart.
falseby default.- Max
Delay int How long (in seconds) to wait for late datapoints
- Max
Precision int The maximum precision to for value displayed.
- Name string
Name of the chart.
- Refresh
Interval int How often (in seconds) to refresh the value.
- Secondary
Visualization string The type of secondary visualization. Can be
None,Radial,Linear, orSparkline. If unset, the SignalFx default is used (None).- Show
Spark boolLine Whether to show a trend line below the current value.
falseby default.- Unit
Prefix string Must be
"Metric"or"Binary"."Metric"by default.- Viz
Options []SingleValue Chart Viz Option Plot-level customization options, associated with a publish statement.
- program
Text string Signalflow program text for the chart. More info in the SignalFx docs.
- color
By string Must be
"Dimension","Scale"or"Metric"."Dimension"by default.- color
Scales SingleValue Chart Color Scale[] Single color range including both the color to display for that range and the borders of the range. Example:
[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]. Look at this link.- description string
Description of the chart.
- boolean
Whether to hide the timestamp in the chart.
falseby default.- max
Delay number How long (in seconds) to wait for late datapoints
- max
Precision number The maximum precision to for value displayed.
- name string
Name of the chart.
- refresh
Interval number How often (in seconds) to refresh the value.
- secondary
Visualization string The type of secondary visualization. Can be
None,Radial,Linear, orSparkline. If unset, the SignalFx default is used (None).- show
Spark booleanLine Whether to show a trend line below the current value.
falseby default.- unit
Prefix string Must be
"Metric"or"Binary"."Metric"by default.- viz
Options SingleValue Chart Viz Option[] Plot-level customization options, associated with a publish statement.
- program_
text str Signalflow program text for the chart. More info in the SignalFx docs.
- color_
by str Must be
"Dimension","Scale"or"Metric"."Dimension"by default.- color_
scales List[SingleValue Chart Color Scale] Single color range including both the color to display for that range and the borders of the range. Example:
[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]. Look at this link.- description str
Description of the chart.
- bool
Whether to hide the timestamp in the chart.
falseby default.- max_
delay float How long (in seconds) to wait for late datapoints
- max_
precision float The maximum precision to for value displayed.
- name str
Name of the chart.
- refresh_
interval float How often (in seconds) to refresh the value.
- secondary_
visualization str The type of secondary visualization. Can be
None,Radial,Linear, orSparkline. If unset, the SignalFx default is used (None).- show_
spark_ boolline Whether to show a trend line below the current value.
falseby default.- unit_
prefix str Must be
"Metric"or"Binary"."Metric"by default.- viz_
options List[SingleValue Chart Viz Option] Plot-level customization options, associated with a publish statement.
Outputs
All input properties are implicitly available as output properties. Additionally, the SingleValueChart resource produces the following output properties:
Look up an Existing SingleValueChart Resource
Get an existing SingleValueChart resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SingleValueChartState, opts?: CustomResourceOptions): SingleValueChartstatic get(resource_name, id, opts=None, color_by=None, color_scales=None, description=None, is_timestamp_hidden=None, max_delay=None, max_precision=None, name=None, program_text=None, refresh_interval=None, secondary_visualization=None, show_spark_line=None, unit_prefix=None, url=None, viz_options=None, __props__=None);func GetSingleValueChart(ctx *Context, name string, id IDInput, state *SingleValueChartState, opts ...ResourceOption) (*SingleValueChart, error)public static SingleValueChart Get(string name, Input<string> id, SingleValueChartState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Color
By string Must be
"Dimension","Scale"or"Metric"."Dimension"by default.- Color
Scales List<Pulumi.Signal Fx. Inputs. Single Value Chart Color Scale Args> Single color range including both the color to display for that range and the borders of the range. Example:
[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]. Look at this link.- Description string
Description of the chart.
- bool
Whether to hide the timestamp in the chart.
falseby default.- Max
Delay int How long (in seconds) to wait for late datapoints
- Max
Precision int The maximum precision to for value displayed.
- Name string
Name of the chart.
- Program
Text string Signalflow program text for the chart. More info in the SignalFx docs.
- Refresh
Interval int How often (in seconds) to refresh the value.
- Secondary
Visualization string The type of secondary visualization. Can be
None,Radial,Linear, orSparkline. If unset, the SignalFx default is used (None).- Show
Spark boolLine Whether to show a trend line below the current value.
falseby default.- Unit
Prefix string Must be
"Metric"or"Binary"."Metric"by default.- Url string
URL of the chart
- Viz
Options List<Pulumi.Signal Fx. Inputs. Single Value Chart Viz Option Args> Plot-level customization options, associated with a publish statement.
- Color
By string Must be
"Dimension","Scale"or"Metric"."Dimension"by default.- Color
Scales []SingleValue Chart Color Scale Single color range including both the color to display for that range and the borders of the range. Example:
[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]. Look at this link.- Description string
Description of the chart.
- bool
Whether to hide the timestamp in the chart.
falseby default.- Max
Delay int How long (in seconds) to wait for late datapoints
- Max
Precision int The maximum precision to for value displayed.
- Name string
Name of the chart.
- Program
Text string Signalflow program text for the chart. More info in the SignalFx docs.
- Refresh
Interval int How often (in seconds) to refresh the value.
- Secondary
Visualization string The type of secondary visualization. Can be
None,Radial,Linear, orSparkline. If unset, the SignalFx default is used (None).- Show
Spark boolLine Whether to show a trend line below the current value.
falseby default.- Unit
Prefix string Must be
"Metric"or"Binary"."Metric"by default.- Url string
URL of the chart
- Viz
Options []SingleValue Chart Viz Option Plot-level customization options, associated with a publish statement.
- color
By string Must be
"Dimension","Scale"or"Metric"."Dimension"by default.- color
Scales SingleValue Chart Color Scale[] Single color range including both the color to display for that range and the borders of the range. Example:
[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]. Look at this link.- description string
Description of the chart.
- boolean
Whether to hide the timestamp in the chart.
falseby default.- max
Delay number How long (in seconds) to wait for late datapoints
- max
Precision number The maximum precision to for value displayed.
- name string
Name of the chart.
- program
Text string Signalflow program text for the chart. More info in the SignalFx docs.
- refresh
Interval number How often (in seconds) to refresh the value.
- secondary
Visualization string The type of secondary visualization. Can be
None,Radial,Linear, orSparkline. If unset, the SignalFx default is used (None).- show
Spark booleanLine Whether to show a trend line below the current value.
falseby default.- unit
Prefix string Must be
"Metric"or"Binary"."Metric"by default.- url string
URL of the chart
- viz
Options SingleValue Chart Viz Option[] Plot-level customization options, associated with a publish statement.
- color_
by str Must be
"Dimension","Scale"or"Metric"."Dimension"by default.- color_
scales List[SingleValue Chart Color Scale] Single color range including both the color to display for that range and the borders of the range. Example:
[{ gt = 60, color = "blue" }, { lte = 60, color = "yellow" }]. Look at this link.- description str
Description of the chart.
- bool
Whether to hide the timestamp in the chart.
falseby default.- max_
delay float How long (in seconds) to wait for late datapoints
- max_
precision float The maximum precision to for value displayed.
- name str
Name of the chart.
- program_
text str Signalflow program text for the chart. More info in the SignalFx docs.
- refresh_
interval float How often (in seconds) to refresh the value.
- secondary_
visualization str The type of secondary visualization. Can be
None,Radial,Linear, orSparkline. If unset, the SignalFx default is used (None).- show_
spark_ boolline Whether to show a trend line below the current value.
falseby default.- unit_
prefix str Must be
"Metric"or"Binary"."Metric"by default.- url str
URL of the chart
- viz_
options List[SingleValue Chart Viz Option] Plot-level customization options, associated with a publish statement.
Supporting Types
SingleValueChartColorScale
- Color string
Color to use : gray, blue, azure, navy, brown, orange, yellow, iris, magenta, pink, purple, violet, lilac, emerald, green, aquamarine.
- Gt double
Indicates the lower threshold non-inclusive value for this range.
- Gte double
Indicates the lower threshold inclusive value for this range.
- Lt double
Indicates the upper threshold non-inculsive value for this range.
- Lte double
Indicates the upper threshold inclusive value for this range.
- Color string
Color to use : gray, blue, azure, navy, brown, orange, yellow, iris, magenta, pink, purple, violet, lilac, emerald, green, aquamarine.
- Gt float64
Indicates the lower threshold non-inclusive value for this range.
- Gte float64
Indicates the lower threshold inclusive value for this range.
- Lt float64
Indicates the upper threshold non-inculsive value for this range.
- Lte float64
Indicates the upper threshold inclusive value for this range.
- color string
Color to use : gray, blue, azure, navy, brown, orange, yellow, iris, magenta, pink, purple, violet, lilac, emerald, green, aquamarine.
- gt number
Indicates the lower threshold non-inclusive value for this range.
- gte number
Indicates the lower threshold inclusive value for this range.
- lt number
Indicates the upper threshold non-inculsive value for this range.
- lte number
Indicates the upper threshold inclusive value for this range.
- color str
Color to use : gray, blue, azure, navy, brown, orange, yellow, iris, magenta, pink, purple, violet, lilac, emerald, green, aquamarine.
- gt float
Indicates the lower threshold non-inclusive value for this range.
- gte float
Indicates the lower threshold inclusive value for this range.
- lt float
Indicates the upper threshold non-inculsive value for this range.
- lte float
Indicates the upper threshold inclusive value for this range.
SingleValueChartVizOption
- Label string
Label used in the publish statement that displays the plot (metric time series data) you want to customize.
- Color string
Color to use : gray, blue, azure, navy, brown, orange, yellow, iris, magenta, pink, purple, violet, lilac, emerald, green, aquamarine.
- Display
Name string Specifies an alternate value for the Plot Name column of the Data Table associated with the chart.
- Value
Prefix string - Value
Suffix string - Value
Unit string A unit to attach to this plot. Units support automatic scaling (eg thousands of bytes will be displayed as kilobytes). Values values are
Bit, Kilobit, Megabit, Gigabit, Terabit, Petabit, Exabit, Zettabit, Yottabit, Byte, Kibibyte, Mebibyte, Gigibyte, Tebibyte, Pebibyte, Exbibyte, Zebibyte, Yobibyte, Nanosecond, Microsecond, Millisecond, Second, Minute, Hour, Day, Week. *value_prefix,value_suffix- (Optional) Arbitrary prefix/suffix to display with the value of this plot.
- Label string
Label used in the publish statement that displays the plot (metric time series data) you want to customize.
- Color string
Color to use : gray, blue, azure, navy, brown, orange, yellow, iris, magenta, pink, purple, violet, lilac, emerald, green, aquamarine.
- Display
Name string Specifies an alternate value for the Plot Name column of the Data Table associated with the chart.
- Value
Prefix string - Value
Suffix string - Value
Unit string A unit to attach to this plot. Units support automatic scaling (eg thousands of bytes will be displayed as kilobytes). Values values are
Bit, Kilobit, Megabit, Gigabit, Terabit, Petabit, Exabit, Zettabit, Yottabit, Byte, Kibibyte, Mebibyte, Gigibyte, Tebibyte, Pebibyte, Exbibyte, Zebibyte, Yobibyte, Nanosecond, Microsecond, Millisecond, Second, Minute, Hour, Day, Week. *value_prefix,value_suffix- (Optional) Arbitrary prefix/suffix to display with the value of this plot.
- label string
Label used in the publish statement that displays the plot (metric time series data) you want to customize.
- color string
Color to use : gray, blue, azure, navy, brown, orange, yellow, iris, magenta, pink, purple, violet, lilac, emerald, green, aquamarine.
- display
Name string Specifies an alternate value for the Plot Name column of the Data Table associated with the chart.
- value
Prefix string - value
Suffix string - value
Unit string A unit to attach to this plot. Units support automatic scaling (eg thousands of bytes will be displayed as kilobytes). Values values are
Bit, Kilobit, Megabit, Gigabit, Terabit, Petabit, Exabit, Zettabit, Yottabit, Byte, Kibibyte, Mebibyte, Gigibyte, Tebibyte, Pebibyte, Exbibyte, Zebibyte, Yobibyte, Nanosecond, Microsecond, Millisecond, Second, Minute, Hour, Day, Week. *value_prefix,value_suffix- (Optional) Arbitrary prefix/suffix to display with the value of this plot.
- label str
Label used in the publish statement that displays the plot (metric time series data) you want to customize.
- color str
Color to use : gray, blue, azure, navy, brown, orange, yellow, iris, magenta, pink, purple, violet, lilac, emerald, green, aquamarine.
- display
Name str Specifies an alternate value for the Plot Name column of the Data Table associated with the chart.
- value
Prefix str - value
Suffix str - value
Unit str A unit to attach to this plot. Units support automatic scaling (eg thousands of bytes will be displayed as kilobytes). Values values are
Bit, Kilobit, Megabit, Gigabit, Terabit, Petabit, Exabit, Zettabit, Yottabit, Byte, Kibibyte, Mebibyte, Gigibyte, Tebibyte, Pebibyte, Exbibyte, Zebibyte, Yobibyte, Nanosecond, Microsecond, Millisecond, Second, Minute, Hour, Day, Week. *value_prefix,value_suffix- (Optional) Arbitrary prefix/suffix to display with the value of this plot.
Package Details
- Repository
- https://github.com/pulumi/pulumi-signalfx
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
signalfxTerraform Provider.