/
timeChart.go
604 lines (544 loc) · 30.1 KB
/
timeChart.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package signalfx
import (
"context"
"reflect"
"github.com/pkg/errors"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
// Provides a SignalFx time chart resource. This can be used to create and manage the different types of time charts.
//
// Time charts display data points over a period of time.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
// "fmt"
//
// "github.com/pulumi/pulumi-signalfx/sdk/v4/go/signalfx"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := signalfx.NewTimeChart(ctx, "mychart0", &signalfx.TimeChartArgs{
// AxisLeft: &signalfx.TimeChartAxisLeftArgs{
// Label: pulumi.String("CPU Total Idle"),
// LowWatermark: pulumi.Float64(1000),
// },
// LegendOptionsFields: signalfx.TimeChartLegendOptionsFieldArray{
// &signalfx.TimeChartLegendOptionsFieldArgs{
// Enabled: pulumi.Bool(false),
// Property: pulumi.String("collector"),
// },
// &signalfx.TimeChartLegendOptionsFieldArgs{
// Enabled: pulumi.Bool(false),
// Property: pulumi.String("hostname"),
// },
// },
// PlotType: pulumi.String("LineChart"),
// ProgramText: pulumi.String(fmt.Sprintf("%v%v", "data(\"cpu.total.idle\").publish(label=\"CPU Idle\")\n", "\n")),
// ShowDataMarkers: pulumi.Bool(true),
// TimeRange: pulumi.Int(3600),
// VizOptions: signalfx.TimeChartVizOptionArray{
// &signalfx.TimeChartVizOptionArgs{
// Axis: pulumi.String("left"),
// Color: pulumi.String("orange"),
// Label: pulumi.String("CPU Idle"),
// },
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
// ```
type TimeChart struct {
pulumi.CustomResourceState
// Force the chart to display zero on the y-axes, even if none of the data is near zero.
AxesIncludeZero pulumi.BoolPtrOutput `pulumi:"axesIncludeZero"`
// Specifies the digits SignalFx displays for values plotted on the chart. Defaults to `3`.
AxesPrecision pulumi.IntPtrOutput `pulumi:"axesPrecision"`
// Set of axis options.
AxisLeft TimeChartAxisLeftPtrOutput `pulumi:"axisLeft"`
// Set of axis options.
AxisRight TimeChartAxisRightPtrOutput `pulumi:"axisRight"`
// Must be `"Dimension"` or `"Metric"`. `"Dimension"` by default.
ColorBy pulumi.StringPtrOutput `pulumi:"colorBy"`
// Description of the chart.
Description pulumi.StringPtrOutput `pulumi:"description"`
// If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default
DisableSampling pulumi.BoolPtrOutput `pulumi:"disableSampling"`
// Seconds since epoch. Used for visualization. Conflicts with `timeRange`.
EndTime pulumi.IntPtrOutput `pulumi:"endTime"`
// Event customization options, associated with a publish statement. You will need to use this to change settings for any `events(…)` statements you use.
EventOptions TimeChartEventOptionArrayOutput `pulumi:"eventOptions"`
// Only used when `plotType` is `"Histogram"`. Histogram specific options.
HistogramOptions TimeChartHistogramOptionArrayOutput `pulumi:"histogramOptions"`
// List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legendOptionsFields`.
//
// Deprecated: Please use legend_options_fields
LegendFieldsToHides pulumi.StringArrayOutput `pulumi:"legendFieldsToHides"`
// List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legendFieldsToHide`.
LegendOptionsFields TimeChartLegendOptionsFieldArrayOutput `pulumi:"legendOptionsFields"`
// How long (in seconds) to wait for late datapoints.
MaxDelay pulumi.IntPtrOutput `pulumi:"maxDelay"`
// The minimum resolution (in seconds) to use for computing the underlying program.
MinimumResolution pulumi.IntPtrOutput `pulumi:"minimumResolution"`
// Name of the chart.
Name pulumi.StringOutput `pulumi:"name"`
// Dimensions to show in the on-chart legend. On-chart legend is off unless a dimension is specified. Allowed: `"metric"`, `"plotLabel"` and any dimension.
OnChartLegendDimension pulumi.StringPtrOutput `pulumi:"onChartLegendDimension"`
// The visualization style to use. Must be `"LineChart"`, `"AreaChart"`, `"ColumnChart"`, or `"Histogram"`. Chart level `plotType` by default.
PlotType pulumi.StringPtrOutput `pulumi:"plotType"`
// Signalflow program text for the chart. More info [in the SignalFx docs](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_signalflow_programming_language).
ProgramText pulumi.StringOutput `pulumi:"programText"`
// Show markers (circles) for each datapoint used to draw line or area charts. `false` by default.
ShowDataMarkers pulumi.BoolPtrOutput `pulumi:"showDataMarkers"`
// Whether vertical highlight lines should be drawn in the visualizations at times when events occurred. `false` by default.
ShowEventLines pulumi.BoolPtrOutput `pulumi:"showEventLines"`
// Whether area and bar charts in the visualization should be stacked. `false` by default.
Stacked pulumi.BoolPtrOutput `pulumi:"stacked"`
// Seconds since epoch. Used for visualization. Conflicts with `timeRange`.
StartTime pulumi.IntPtrOutput `pulumi:"startTime"`
// Tags associated with the chart
//
// Deprecated: signalfx_time_chart.tags is being removed in the next release
Tags pulumi.StringArrayOutput `pulumi:"tags"`
// How many seconds ago from which to display data. For example, the last hour would be `3600`, etc. Conflicts with `startTime` and `endTime`.
TimeRange pulumi.IntPtrOutput `pulumi:"timeRange"`
// Time zone that SignalFlow uses as the basis of calendar window transformation methods. For example, if you set "timezone": "Europe/Paris" and then use the transformation sum(cycle="week", cycle_start="Monday") in your chart's SignalFlow program, the calendar window starts on Monday, Paris time. See the [full list of timezones for more](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_supported_signalflow_time_zones). `"UTC"` by default.
Timezone pulumi.StringPtrOutput `pulumi:"timezone"`
// Must be `"Metric"` or `"Binary`". `"Metric"` by default.
UnitPrefix pulumi.StringPtrOutput `pulumi:"unitPrefix"`
// The URL of the chart.
Url pulumi.StringOutput `pulumi:"url"`
// Plot-level customization options, associated with a publish statement.
VizOptions TimeChartVizOptionArrayOutput `pulumi:"vizOptions"`
}
// NewTimeChart registers a new resource with the given unique name, arguments, and options.
func NewTimeChart(ctx *pulumi.Context,
name string, args *TimeChartArgs, opts ...pulumi.ResourceOption) (*TimeChart, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.ProgramText == nil {
return nil, errors.New("invalid value for required argument 'ProgramText'")
}
var resource TimeChart
err := ctx.RegisterResource("signalfx:index/timeChart:TimeChart", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetTimeChart gets an existing TimeChart resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetTimeChart(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *TimeChartState, opts ...pulumi.ResourceOption) (*TimeChart, error) {
var resource TimeChart
err := ctx.ReadResource("signalfx:index/timeChart:TimeChart", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering TimeChart resources.
type timeChartState struct {
// Force the chart to display zero on the y-axes, even if none of the data is near zero.
AxesIncludeZero *bool `pulumi:"axesIncludeZero"`
// Specifies the digits SignalFx displays for values plotted on the chart. Defaults to `3`.
AxesPrecision *int `pulumi:"axesPrecision"`
// Set of axis options.
AxisLeft *TimeChartAxisLeft `pulumi:"axisLeft"`
// Set of axis options.
AxisRight *TimeChartAxisRight `pulumi:"axisRight"`
// Must be `"Dimension"` or `"Metric"`. `"Dimension"` by default.
ColorBy *string `pulumi:"colorBy"`
// Description of the chart.
Description *string `pulumi:"description"`
// If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default
DisableSampling *bool `pulumi:"disableSampling"`
// Seconds since epoch. Used for visualization. Conflicts with `timeRange`.
EndTime *int `pulumi:"endTime"`
// Event customization options, associated with a publish statement. You will need to use this to change settings for any `events(…)` statements you use.
EventOptions []TimeChartEventOption `pulumi:"eventOptions"`
// Only used when `plotType` is `"Histogram"`. Histogram specific options.
HistogramOptions []TimeChartHistogramOption `pulumi:"histogramOptions"`
// List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legendOptionsFields`.
//
// Deprecated: Please use legend_options_fields
LegendFieldsToHides []string `pulumi:"legendFieldsToHides"`
// List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legendFieldsToHide`.
LegendOptionsFields []TimeChartLegendOptionsField `pulumi:"legendOptionsFields"`
// How long (in seconds) to wait for late datapoints.
MaxDelay *int `pulumi:"maxDelay"`
// The minimum resolution (in seconds) to use for computing the underlying program.
MinimumResolution *int `pulumi:"minimumResolution"`
// Name of the chart.
Name *string `pulumi:"name"`
// Dimensions to show in the on-chart legend. On-chart legend is off unless a dimension is specified. Allowed: `"metric"`, `"plotLabel"` and any dimension.
OnChartLegendDimension *string `pulumi:"onChartLegendDimension"`
// The visualization style to use. Must be `"LineChart"`, `"AreaChart"`, `"ColumnChart"`, or `"Histogram"`. Chart level `plotType` by default.
PlotType *string `pulumi:"plotType"`
// Signalflow program text for the chart. More info [in the SignalFx docs](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_signalflow_programming_language).
ProgramText *string `pulumi:"programText"`
// Show markers (circles) for each datapoint used to draw line or area charts. `false` by default.
ShowDataMarkers *bool `pulumi:"showDataMarkers"`
// Whether vertical highlight lines should be drawn in the visualizations at times when events occurred. `false` by default.
ShowEventLines *bool `pulumi:"showEventLines"`
// Whether area and bar charts in the visualization should be stacked. `false` by default.
Stacked *bool `pulumi:"stacked"`
// Seconds since epoch. Used for visualization. Conflicts with `timeRange`.
StartTime *int `pulumi:"startTime"`
// Tags associated with the chart
//
// Deprecated: signalfx_time_chart.tags is being removed in the next release
Tags []string `pulumi:"tags"`
// How many seconds ago from which to display data. For example, the last hour would be `3600`, etc. Conflicts with `startTime` and `endTime`.
TimeRange *int `pulumi:"timeRange"`
// Time zone that SignalFlow uses as the basis of calendar window transformation methods. For example, if you set "timezone": "Europe/Paris" and then use the transformation sum(cycle="week", cycle_start="Monday") in your chart's SignalFlow program, the calendar window starts on Monday, Paris time. See the [full list of timezones for more](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_supported_signalflow_time_zones). `"UTC"` by default.
Timezone *string `pulumi:"timezone"`
// Must be `"Metric"` or `"Binary`". `"Metric"` by default.
UnitPrefix *string `pulumi:"unitPrefix"`
// The URL of the chart.
Url *string `pulumi:"url"`
// Plot-level customization options, associated with a publish statement.
VizOptions []TimeChartVizOption `pulumi:"vizOptions"`
}
type TimeChartState struct {
// Force the chart to display zero on the y-axes, even if none of the data is near zero.
AxesIncludeZero pulumi.BoolPtrInput
// Specifies the digits SignalFx displays for values plotted on the chart. Defaults to `3`.
AxesPrecision pulumi.IntPtrInput
// Set of axis options.
AxisLeft TimeChartAxisLeftPtrInput
// Set of axis options.
AxisRight TimeChartAxisRightPtrInput
// Must be `"Dimension"` or `"Metric"`. `"Dimension"` by default.
ColorBy pulumi.StringPtrInput
// Description of the chart.
Description pulumi.StringPtrInput
// If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default
DisableSampling pulumi.BoolPtrInput
// Seconds since epoch. Used for visualization. Conflicts with `timeRange`.
EndTime pulumi.IntPtrInput
// Event customization options, associated with a publish statement. You will need to use this to change settings for any `events(…)` statements you use.
EventOptions TimeChartEventOptionArrayInput
// Only used when `plotType` is `"Histogram"`. Histogram specific options.
HistogramOptions TimeChartHistogramOptionArrayInput
// List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legendOptionsFields`.
//
// Deprecated: Please use legend_options_fields
LegendFieldsToHides pulumi.StringArrayInput
// List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legendFieldsToHide`.
LegendOptionsFields TimeChartLegendOptionsFieldArrayInput
// How long (in seconds) to wait for late datapoints.
MaxDelay pulumi.IntPtrInput
// The minimum resolution (in seconds) to use for computing the underlying program.
MinimumResolution pulumi.IntPtrInput
// Name of the chart.
Name pulumi.StringPtrInput
// Dimensions to show in the on-chart legend. On-chart legend is off unless a dimension is specified. Allowed: `"metric"`, `"plotLabel"` and any dimension.
OnChartLegendDimension pulumi.StringPtrInput
// The visualization style to use. Must be `"LineChart"`, `"AreaChart"`, `"ColumnChart"`, or `"Histogram"`. Chart level `plotType` by default.
PlotType pulumi.StringPtrInput
// Signalflow program text for the chart. More info [in the SignalFx docs](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_signalflow_programming_language).
ProgramText pulumi.StringPtrInput
// Show markers (circles) for each datapoint used to draw line or area charts. `false` by default.
ShowDataMarkers pulumi.BoolPtrInput
// Whether vertical highlight lines should be drawn in the visualizations at times when events occurred. `false` by default.
ShowEventLines pulumi.BoolPtrInput
// Whether area and bar charts in the visualization should be stacked. `false` by default.
Stacked pulumi.BoolPtrInput
// Seconds since epoch. Used for visualization. Conflicts with `timeRange`.
StartTime pulumi.IntPtrInput
// Tags associated with the chart
//
// Deprecated: signalfx_time_chart.tags is being removed in the next release
Tags pulumi.StringArrayInput
// How many seconds ago from which to display data. For example, the last hour would be `3600`, etc. Conflicts with `startTime` and `endTime`.
TimeRange pulumi.IntPtrInput
// Time zone that SignalFlow uses as the basis of calendar window transformation methods. For example, if you set "timezone": "Europe/Paris" and then use the transformation sum(cycle="week", cycle_start="Monday") in your chart's SignalFlow program, the calendar window starts on Monday, Paris time. See the [full list of timezones for more](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_supported_signalflow_time_zones). `"UTC"` by default.
Timezone pulumi.StringPtrInput
// Must be `"Metric"` or `"Binary`". `"Metric"` by default.
UnitPrefix pulumi.StringPtrInput
// The URL of the chart.
Url pulumi.StringPtrInput
// Plot-level customization options, associated with a publish statement.
VizOptions TimeChartVizOptionArrayInput
}
func (TimeChartState) ElementType() reflect.Type {
return reflect.TypeOf((*timeChartState)(nil)).Elem()
}
type timeChartArgs struct {
// Force the chart to display zero on the y-axes, even if none of the data is near zero.
AxesIncludeZero *bool `pulumi:"axesIncludeZero"`
// Specifies the digits SignalFx displays for values plotted on the chart. Defaults to `3`.
AxesPrecision *int `pulumi:"axesPrecision"`
// Set of axis options.
AxisLeft *TimeChartAxisLeft `pulumi:"axisLeft"`
// Set of axis options.
AxisRight *TimeChartAxisRight `pulumi:"axisRight"`
// Must be `"Dimension"` or `"Metric"`. `"Dimension"` by default.
ColorBy *string `pulumi:"colorBy"`
// Description of the chart.
Description *string `pulumi:"description"`
// If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default
DisableSampling *bool `pulumi:"disableSampling"`
// Seconds since epoch. Used for visualization. Conflicts with `timeRange`.
EndTime *int `pulumi:"endTime"`
// Event customization options, associated with a publish statement. You will need to use this to change settings for any `events(…)` statements you use.
EventOptions []TimeChartEventOption `pulumi:"eventOptions"`
// Only used when `plotType` is `"Histogram"`. Histogram specific options.
HistogramOptions []TimeChartHistogramOption `pulumi:"histogramOptions"`
// List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legendOptionsFields`.
//
// Deprecated: Please use legend_options_fields
LegendFieldsToHides []string `pulumi:"legendFieldsToHides"`
// List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legendFieldsToHide`.
LegendOptionsFields []TimeChartLegendOptionsField `pulumi:"legendOptionsFields"`
// How long (in seconds) to wait for late datapoints.
MaxDelay *int `pulumi:"maxDelay"`
// The minimum resolution (in seconds) to use for computing the underlying program.
MinimumResolution *int `pulumi:"minimumResolution"`
// Name of the chart.
Name *string `pulumi:"name"`
// Dimensions to show in the on-chart legend. On-chart legend is off unless a dimension is specified. Allowed: `"metric"`, `"plotLabel"` and any dimension.
OnChartLegendDimension *string `pulumi:"onChartLegendDimension"`
// The visualization style to use. Must be `"LineChart"`, `"AreaChart"`, `"ColumnChart"`, or `"Histogram"`. Chart level `plotType` by default.
PlotType *string `pulumi:"plotType"`
// Signalflow program text for the chart. More info [in the SignalFx docs](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_signalflow_programming_language).
ProgramText string `pulumi:"programText"`
// Show markers (circles) for each datapoint used to draw line or area charts. `false` by default.
ShowDataMarkers *bool `pulumi:"showDataMarkers"`
// Whether vertical highlight lines should be drawn in the visualizations at times when events occurred. `false` by default.
ShowEventLines *bool `pulumi:"showEventLines"`
// Whether area and bar charts in the visualization should be stacked. `false` by default.
Stacked *bool `pulumi:"stacked"`
// Seconds since epoch. Used for visualization. Conflicts with `timeRange`.
StartTime *int `pulumi:"startTime"`
// Tags associated with the chart
//
// Deprecated: signalfx_time_chart.tags is being removed in the next release
Tags []string `pulumi:"tags"`
// How many seconds ago from which to display data. For example, the last hour would be `3600`, etc. Conflicts with `startTime` and `endTime`.
TimeRange *int `pulumi:"timeRange"`
// Time zone that SignalFlow uses as the basis of calendar window transformation methods. For example, if you set "timezone": "Europe/Paris" and then use the transformation sum(cycle="week", cycle_start="Monday") in your chart's SignalFlow program, the calendar window starts on Monday, Paris time. See the [full list of timezones for more](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_supported_signalflow_time_zones). `"UTC"` by default.
Timezone *string `pulumi:"timezone"`
// Must be `"Metric"` or `"Binary`". `"Metric"` by default.
UnitPrefix *string `pulumi:"unitPrefix"`
// Plot-level customization options, associated with a publish statement.
VizOptions []TimeChartVizOption `pulumi:"vizOptions"`
}
// The set of arguments for constructing a TimeChart resource.
type TimeChartArgs struct {
// Force the chart to display zero on the y-axes, even if none of the data is near zero.
AxesIncludeZero pulumi.BoolPtrInput
// Specifies the digits SignalFx displays for values plotted on the chart. Defaults to `3`.
AxesPrecision pulumi.IntPtrInput
// Set of axis options.
AxisLeft TimeChartAxisLeftPtrInput
// Set of axis options.
AxisRight TimeChartAxisRightPtrInput
// Must be `"Dimension"` or `"Metric"`. `"Dimension"` by default.
ColorBy pulumi.StringPtrInput
// Description of the chart.
Description pulumi.StringPtrInput
// If `false`, samples a subset of the output MTS, which improves UI performance. `false` by default
DisableSampling pulumi.BoolPtrInput
// Seconds since epoch. Used for visualization. Conflicts with `timeRange`.
EndTime pulumi.IntPtrInput
// Event customization options, associated with a publish statement. You will need to use this to change settings for any `events(…)` statements you use.
EventOptions TimeChartEventOptionArrayInput
// Only used when `plotType` is `"Histogram"`. Histogram specific options.
HistogramOptions TimeChartHistogramOptionArrayInput
// List of properties that should not be displayed in the chart legend (i.e. dimension names). All the properties are visible by default. Deprecated, please use `legendOptionsFields`.
//
// Deprecated: Please use legend_options_fields
LegendFieldsToHides pulumi.StringArrayInput
// List of property names and enabled flags that should be displayed in the data table for the chart, in the order provided. This option cannot be used with `legendFieldsToHide`.
LegendOptionsFields TimeChartLegendOptionsFieldArrayInput
// How long (in seconds) to wait for late datapoints.
MaxDelay pulumi.IntPtrInput
// The minimum resolution (in seconds) to use for computing the underlying program.
MinimumResolution pulumi.IntPtrInput
// Name of the chart.
Name pulumi.StringPtrInput
// Dimensions to show in the on-chart legend. On-chart legend is off unless a dimension is specified. Allowed: `"metric"`, `"plotLabel"` and any dimension.
OnChartLegendDimension pulumi.StringPtrInput
// The visualization style to use. Must be `"LineChart"`, `"AreaChart"`, `"ColumnChart"`, or `"Histogram"`. Chart level `plotType` by default.
PlotType pulumi.StringPtrInput
// Signalflow program text for the chart. More info [in the SignalFx docs](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_signalflow_programming_language).
ProgramText pulumi.StringInput
// Show markers (circles) for each datapoint used to draw line or area charts. `false` by default.
ShowDataMarkers pulumi.BoolPtrInput
// Whether vertical highlight lines should be drawn in the visualizations at times when events occurred. `false` by default.
ShowEventLines pulumi.BoolPtrInput
// Whether area and bar charts in the visualization should be stacked. `false` by default.
Stacked pulumi.BoolPtrInput
// Seconds since epoch. Used for visualization. Conflicts with `timeRange`.
StartTime pulumi.IntPtrInput
// Tags associated with the chart
//
// Deprecated: signalfx_time_chart.tags is being removed in the next release
Tags pulumi.StringArrayInput
// How many seconds ago from which to display data. For example, the last hour would be `3600`, etc. Conflicts with `startTime` and `endTime`.
TimeRange pulumi.IntPtrInput
// Time zone that SignalFlow uses as the basis of calendar window transformation methods. For example, if you set "timezone": "Europe/Paris" and then use the transformation sum(cycle="week", cycle_start="Monday") in your chart's SignalFlow program, the calendar window starts on Monday, Paris time. See the [full list of timezones for more](https://developers.signalfx.com/signalflow_analytics/signalflow_overview.html#_supported_signalflow_time_zones). `"UTC"` by default.
Timezone pulumi.StringPtrInput
// Must be `"Metric"` or `"Binary`". `"Metric"` by default.
UnitPrefix pulumi.StringPtrInput
// Plot-level customization options, associated with a publish statement.
VizOptions TimeChartVizOptionArrayInput
}
func (TimeChartArgs) ElementType() reflect.Type {
return reflect.TypeOf((*timeChartArgs)(nil)).Elem()
}
type TimeChartInput interface {
pulumi.Input
ToTimeChartOutput() TimeChartOutput
ToTimeChartOutputWithContext(ctx context.Context) TimeChartOutput
}
func (*TimeChart) ElementType() reflect.Type {
return reflect.TypeOf((*TimeChart)(nil))
}
func (i *TimeChart) ToTimeChartOutput() TimeChartOutput {
return i.ToTimeChartOutputWithContext(context.Background())
}
func (i *TimeChart) ToTimeChartOutputWithContext(ctx context.Context) TimeChartOutput {
return pulumi.ToOutputWithContext(ctx, i).(TimeChartOutput)
}
func (i *TimeChart) ToTimeChartPtrOutput() TimeChartPtrOutput {
return i.ToTimeChartPtrOutputWithContext(context.Background())
}
func (i *TimeChart) ToTimeChartPtrOutputWithContext(ctx context.Context) TimeChartPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(TimeChartPtrOutput)
}
type TimeChartPtrInput interface {
pulumi.Input
ToTimeChartPtrOutput() TimeChartPtrOutput
ToTimeChartPtrOutputWithContext(ctx context.Context) TimeChartPtrOutput
}
type timeChartPtrType TimeChartArgs
func (*timeChartPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**TimeChart)(nil))
}
func (i *timeChartPtrType) ToTimeChartPtrOutput() TimeChartPtrOutput {
return i.ToTimeChartPtrOutputWithContext(context.Background())
}
func (i *timeChartPtrType) ToTimeChartPtrOutputWithContext(ctx context.Context) TimeChartPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(TimeChartPtrOutput)
}
// TimeChartArrayInput is an input type that accepts TimeChartArray and TimeChartArrayOutput values.
// You can construct a concrete instance of `TimeChartArrayInput` via:
//
// TimeChartArray{ TimeChartArgs{...} }
type TimeChartArrayInput interface {
pulumi.Input
ToTimeChartArrayOutput() TimeChartArrayOutput
ToTimeChartArrayOutputWithContext(context.Context) TimeChartArrayOutput
}
type TimeChartArray []TimeChartInput
func (TimeChartArray) ElementType() reflect.Type {
return reflect.TypeOf(([]*TimeChart)(nil))
}
func (i TimeChartArray) ToTimeChartArrayOutput() TimeChartArrayOutput {
return i.ToTimeChartArrayOutputWithContext(context.Background())
}
func (i TimeChartArray) ToTimeChartArrayOutputWithContext(ctx context.Context) TimeChartArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(TimeChartArrayOutput)
}
// TimeChartMapInput is an input type that accepts TimeChartMap and TimeChartMapOutput values.
// You can construct a concrete instance of `TimeChartMapInput` via:
//
// TimeChartMap{ "key": TimeChartArgs{...} }
type TimeChartMapInput interface {
pulumi.Input
ToTimeChartMapOutput() TimeChartMapOutput
ToTimeChartMapOutputWithContext(context.Context) TimeChartMapOutput
}
type TimeChartMap map[string]TimeChartInput
func (TimeChartMap) ElementType() reflect.Type {
return reflect.TypeOf((map[string]*TimeChart)(nil))
}
func (i TimeChartMap) ToTimeChartMapOutput() TimeChartMapOutput {
return i.ToTimeChartMapOutputWithContext(context.Background())
}
func (i TimeChartMap) ToTimeChartMapOutputWithContext(ctx context.Context) TimeChartMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(TimeChartMapOutput)
}
type TimeChartOutput struct {
*pulumi.OutputState
}
func (TimeChartOutput) ElementType() reflect.Type {
return reflect.TypeOf((*TimeChart)(nil))
}
func (o TimeChartOutput) ToTimeChartOutput() TimeChartOutput {
return o
}
func (o TimeChartOutput) ToTimeChartOutputWithContext(ctx context.Context) TimeChartOutput {
return o
}
func (o TimeChartOutput) ToTimeChartPtrOutput() TimeChartPtrOutput {
return o.ToTimeChartPtrOutputWithContext(context.Background())
}
func (o TimeChartOutput) ToTimeChartPtrOutputWithContext(ctx context.Context) TimeChartPtrOutput {
return o.ApplyT(func(v TimeChart) *TimeChart {
return &v
}).(TimeChartPtrOutput)
}
type TimeChartPtrOutput struct {
*pulumi.OutputState
}
func (TimeChartPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**TimeChart)(nil))
}
func (o TimeChartPtrOutput) ToTimeChartPtrOutput() TimeChartPtrOutput {
return o
}
func (o TimeChartPtrOutput) ToTimeChartPtrOutputWithContext(ctx context.Context) TimeChartPtrOutput {
return o
}
type TimeChartArrayOutput struct{ *pulumi.OutputState }
func (TimeChartArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]TimeChart)(nil))
}
func (o TimeChartArrayOutput) ToTimeChartArrayOutput() TimeChartArrayOutput {
return o
}
func (o TimeChartArrayOutput) ToTimeChartArrayOutputWithContext(ctx context.Context) TimeChartArrayOutput {
return o
}
func (o TimeChartArrayOutput) Index(i pulumi.IntInput) TimeChartOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) TimeChart {
return vs[0].([]TimeChart)[vs[1].(int)]
}).(TimeChartOutput)
}
type TimeChartMapOutput struct{ *pulumi.OutputState }
func (TimeChartMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]TimeChart)(nil))
}
func (o TimeChartMapOutput) ToTimeChartMapOutput() TimeChartMapOutput {
return o
}
func (o TimeChartMapOutput) ToTimeChartMapOutputWithContext(ctx context.Context) TimeChartMapOutput {
return o
}
func (o TimeChartMapOutput) MapIndex(k pulumi.StringInput) TimeChartOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) TimeChart {
return vs[0].(map[string]TimeChart)[vs[1].(string)]
}).(TimeChartOutput)
}
func init() {
pulumi.RegisterOutputType(TimeChartOutput{})
pulumi.RegisterOutputType(TimeChartPtrOutput{})
pulumi.RegisterOutputType(TimeChartArrayOutput{})
pulumi.RegisterOutputType(TimeChartMapOutput{})
}