/
singleValueChart.go
466 lines (405 loc) · 23 KB
/
singleValueChart.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
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package signalfx
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-signalfx/sdk/v7/go/signalfx/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// 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
//
// ## Arguments
//
// The following arguments are supported in the resource block:
//
// * `name` - (Required) Name of the chart.
// * `programText` - (Required) Signalflow program text for the chart. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/).
// * `description` - (Optional) Description of the chart.
// * `colorBy` - (Optional) Must be `"Dimension"`, `"Scale"` or `"Metric"`. `"Dimension"` by default.
// * `colorScale` - (Optional. `colorBy` must be `"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](https://docs.signalfx.com/en/latest/charts/chart-options-tab.html).
// - `gt` - (Optional) Indicates the lower threshold non-inclusive value for this range.
// - `gte` - (Optional) Indicates the lower threshold inclusive value for this range.
// - `lt` - (Optional) Indicates the upper threshold non-inculsive value for this range.
// - `lte` - (Optional) Indicates the upper threshold inclusive value for this range.
// - `color` - (Required) The color to use. Must be one of gray, blue, light_blue, navy, dark_orange, orange, dark_yellow, magenta, cerise, pink, violet, purple, gray_blue, dark_green, green, aquamarine, red, yellow, vivid_yellow, light_green, or lime_green.
//
// * `vizOptions` - (Optional) Plot-level customization options, associated with a publish statement.
// - `label` - (Required) Label used in the publish statement that displays the plot (metric time series data) you want to customize.
// - `displayName` - (Optional) Specifies an alternate value for the Plot Name column of the Data Table associated with the chart.
// - `color` - (Optional) The color to use. Must be one of gray, blue, light_blue, navy, dark_orange, orange, dark_yellow, magenta, cerise, pink, violet, purple, gray_blue, dark_green, green, aquamarine, red, yellow, vivid_yellow, light_green, or lime_green.
// - `valueUnit` - (Optional) 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, Gibibyte (note: this was previously typoed as Gigibyte), Tebibyte, Pebibyte, Exbibyte, Zebibyte, Yobibyte, Nanosecond, Microsecond, Millisecond, Second, Minute, Hour, Day, Week`.
// - `valuePrefix`, `valueSuffix` - (Optional) Arbitrary prefix/suffix to display with the value of this plot.
//
// * `unitPrefix` - (Optional) Must be `"Metric"` or `"Binary"`. `"Metric"` by default.
// * `maxDelay` - (Optional) How long (in seconds) to wait for late datapoints
// * `refreshInterval` - (Optional) How often (in seconds) to refresh the value.
// * `maxPrecision` - (Optional) The maximum precision to for value displayed.
// * `isTimestampHidden` - (Optional) Whether to hide the timestamp in the chart. `false` by default.
// * `secondaryVisualization` - (Optional) The type of secondary visualization. Can be `None`, `Radial`, `Linear`, or `Sparkline`. If unset, the Splunk Observability Cloud default is used (`None`).
// * `showSparkLine` - (Optional) Whether to show a trend line below the current value. `false` by default.
//
// ## Attributes
//
// In a addition to all arguments above, the following attributes are exported:
//
// * `id` - The ID of the chart.
// * `url` - The URL of the chart.
type SingleValueChart struct {
pulumi.CustomResourceState
// (Metric by default) Must be "Metric", "Dimension", or "Scale". "Scale" maps to Color by Value in the UI
ColorBy pulumi.StringPtrOutput `pulumi:"colorBy"`
// Single color range including both the color to display for that range and the borders of the range
ColorScales SingleValueChartColorScaleArrayOutput `pulumi:"colorScales"`
// Description of the chart (Optional)
Description pulumi.StringPtrOutput `pulumi:"description"`
// (false by default) Whether to hide the timestamp in the chart
IsTimestampHidden pulumi.BoolPtrOutput `pulumi:"isTimestampHidden"`
// How long (in seconds) to wait for late datapoints
MaxDelay pulumi.IntPtrOutput `pulumi:"maxDelay"`
// The maximum precision to for values displayed in the list
MaxPrecision pulumi.IntPtrOutput `pulumi:"maxPrecision"`
// Name of the chart
Name pulumi.StringOutput `pulumi:"name"`
// Signalflow program text for the chart. More info at "https://developers.signalfx.com/docs/signalflow-overview"
ProgramText pulumi.StringOutput `pulumi:"programText"`
// How often (in seconds) to refresh the values of the list
RefreshInterval pulumi.IntPtrOutput `pulumi:"refreshInterval"`
// (false by default) What kind of secondary visualization to show (None, Radial, Linear, Sparkline)
SecondaryVisualization pulumi.StringPtrOutput `pulumi:"secondaryVisualization"`
// (false by default) Whether to show a trend line below the current value
ShowSparkLine pulumi.BoolPtrOutput `pulumi:"showSparkLine"`
// The property value is a string that denotes the geographic region associated with the time zone, (e.g. Australia/Sydney)
Timezone pulumi.StringPtrOutput `pulumi:"timezone"`
// (Metric by default) Must be "Metric" or "Binary"
UnitPrefix pulumi.StringPtrOutput `pulumi:"unitPrefix"`
// URL of the chart
Url pulumi.StringOutput `pulumi:"url"`
// Plot-level customization options, associated with a publish statement
VizOptions SingleValueChartVizOptionArrayOutput `pulumi:"vizOptions"`
}
// NewSingleValueChart registers a new resource with the given unique name, arguments, and options.
func NewSingleValueChart(ctx *pulumi.Context,
name string, args *SingleValueChartArgs, opts ...pulumi.ResourceOption) (*SingleValueChart, 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'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource SingleValueChart
err := ctx.RegisterResource("signalfx:index/singleValueChart:SingleValueChart", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetSingleValueChart gets an existing SingleValueChart 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 GetSingleValueChart(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *SingleValueChartState, opts ...pulumi.ResourceOption) (*SingleValueChart, error) {
var resource SingleValueChart
err := ctx.ReadResource("signalfx:index/singleValueChart:SingleValueChart", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering SingleValueChart resources.
type singleValueChartState struct {
// (Metric by default) Must be "Metric", "Dimension", or "Scale". "Scale" maps to Color by Value in the UI
ColorBy *string `pulumi:"colorBy"`
// Single color range including both the color to display for that range and the borders of the range
ColorScales []SingleValueChartColorScale `pulumi:"colorScales"`
// Description of the chart (Optional)
Description *string `pulumi:"description"`
// (false by default) Whether to hide the timestamp in the chart
IsTimestampHidden *bool `pulumi:"isTimestampHidden"`
// How long (in seconds) to wait for late datapoints
MaxDelay *int `pulumi:"maxDelay"`
// The maximum precision to for values displayed in the list
MaxPrecision *int `pulumi:"maxPrecision"`
// Name of the chart
Name *string `pulumi:"name"`
// Signalflow program text for the chart. More info at "https://developers.signalfx.com/docs/signalflow-overview"
ProgramText *string `pulumi:"programText"`
// How often (in seconds) to refresh the values of the list
RefreshInterval *int `pulumi:"refreshInterval"`
// (false by default) What kind of secondary visualization to show (None, Radial, Linear, Sparkline)
SecondaryVisualization *string `pulumi:"secondaryVisualization"`
// (false by default) Whether to show a trend line below the current value
ShowSparkLine *bool `pulumi:"showSparkLine"`
// The property value is a string that denotes the geographic region associated with the time zone, (e.g. Australia/Sydney)
Timezone *string `pulumi:"timezone"`
// (Metric by default) Must be "Metric" or "Binary"
UnitPrefix *string `pulumi:"unitPrefix"`
// URL of the chart
Url *string `pulumi:"url"`
// Plot-level customization options, associated with a publish statement
VizOptions []SingleValueChartVizOption `pulumi:"vizOptions"`
}
type SingleValueChartState struct {
// (Metric by default) Must be "Metric", "Dimension", or "Scale". "Scale" maps to Color by Value in the UI
ColorBy pulumi.StringPtrInput
// Single color range including both the color to display for that range and the borders of the range
ColorScales SingleValueChartColorScaleArrayInput
// Description of the chart (Optional)
Description pulumi.StringPtrInput
// (false by default) Whether to hide the timestamp in the chart
IsTimestampHidden pulumi.BoolPtrInput
// How long (in seconds) to wait for late datapoints
MaxDelay pulumi.IntPtrInput
// The maximum precision to for values displayed in the list
MaxPrecision pulumi.IntPtrInput
// Name of the chart
Name pulumi.StringPtrInput
// Signalflow program text for the chart. More info at "https://developers.signalfx.com/docs/signalflow-overview"
ProgramText pulumi.StringPtrInput
// How often (in seconds) to refresh the values of the list
RefreshInterval pulumi.IntPtrInput
// (false by default) What kind of secondary visualization to show (None, Radial, Linear, Sparkline)
SecondaryVisualization pulumi.StringPtrInput
// (false by default) Whether to show a trend line below the current value
ShowSparkLine pulumi.BoolPtrInput
// The property value is a string that denotes the geographic region associated with the time zone, (e.g. Australia/Sydney)
Timezone pulumi.StringPtrInput
// (Metric by default) Must be "Metric" or "Binary"
UnitPrefix pulumi.StringPtrInput
// URL of the chart
Url pulumi.StringPtrInput
// Plot-level customization options, associated with a publish statement
VizOptions SingleValueChartVizOptionArrayInput
}
func (SingleValueChartState) ElementType() reflect.Type {
return reflect.TypeOf((*singleValueChartState)(nil)).Elem()
}
type singleValueChartArgs struct {
// (Metric by default) Must be "Metric", "Dimension", or "Scale". "Scale" maps to Color by Value in the UI
ColorBy *string `pulumi:"colorBy"`
// Single color range including both the color to display for that range and the borders of the range
ColorScales []SingleValueChartColorScale `pulumi:"colorScales"`
// Description of the chart (Optional)
Description *string `pulumi:"description"`
// (false by default) Whether to hide the timestamp in the chart
IsTimestampHidden *bool `pulumi:"isTimestampHidden"`
// How long (in seconds) to wait for late datapoints
MaxDelay *int `pulumi:"maxDelay"`
// The maximum precision to for values displayed in the list
MaxPrecision *int `pulumi:"maxPrecision"`
// Name of the chart
Name *string `pulumi:"name"`
// Signalflow program text for the chart. More info at "https://developers.signalfx.com/docs/signalflow-overview"
ProgramText string `pulumi:"programText"`
// How often (in seconds) to refresh the values of the list
RefreshInterval *int `pulumi:"refreshInterval"`
// (false by default) What kind of secondary visualization to show (None, Radial, Linear, Sparkline)
SecondaryVisualization *string `pulumi:"secondaryVisualization"`
// (false by default) Whether to show a trend line below the current value
ShowSparkLine *bool `pulumi:"showSparkLine"`
// The property value is a string that denotes the geographic region associated with the time zone, (e.g. Australia/Sydney)
Timezone *string `pulumi:"timezone"`
// (Metric by default) Must be "Metric" or "Binary"
UnitPrefix *string `pulumi:"unitPrefix"`
// Plot-level customization options, associated with a publish statement
VizOptions []SingleValueChartVizOption `pulumi:"vizOptions"`
}
// The set of arguments for constructing a SingleValueChart resource.
type SingleValueChartArgs struct {
// (Metric by default) Must be "Metric", "Dimension", or "Scale". "Scale" maps to Color by Value in the UI
ColorBy pulumi.StringPtrInput
// Single color range including both the color to display for that range and the borders of the range
ColorScales SingleValueChartColorScaleArrayInput
// Description of the chart (Optional)
Description pulumi.StringPtrInput
// (false by default) Whether to hide the timestamp in the chart
IsTimestampHidden pulumi.BoolPtrInput
// How long (in seconds) to wait for late datapoints
MaxDelay pulumi.IntPtrInput
// The maximum precision to for values displayed in the list
MaxPrecision pulumi.IntPtrInput
// Name of the chart
Name pulumi.StringPtrInput
// Signalflow program text for the chart. More info at "https://developers.signalfx.com/docs/signalflow-overview"
ProgramText pulumi.StringInput
// How often (in seconds) to refresh the values of the list
RefreshInterval pulumi.IntPtrInput
// (false by default) What kind of secondary visualization to show (None, Radial, Linear, Sparkline)
SecondaryVisualization pulumi.StringPtrInput
// (false by default) Whether to show a trend line below the current value
ShowSparkLine pulumi.BoolPtrInput
// The property value is a string that denotes the geographic region associated with the time zone, (e.g. Australia/Sydney)
Timezone pulumi.StringPtrInput
// (Metric by default) Must be "Metric" or "Binary"
UnitPrefix pulumi.StringPtrInput
// Plot-level customization options, associated with a publish statement
VizOptions SingleValueChartVizOptionArrayInput
}
func (SingleValueChartArgs) ElementType() reflect.Type {
return reflect.TypeOf((*singleValueChartArgs)(nil)).Elem()
}
type SingleValueChartInput interface {
pulumi.Input
ToSingleValueChartOutput() SingleValueChartOutput
ToSingleValueChartOutputWithContext(ctx context.Context) SingleValueChartOutput
}
func (*SingleValueChart) ElementType() reflect.Type {
return reflect.TypeOf((**SingleValueChart)(nil)).Elem()
}
func (i *SingleValueChart) ToSingleValueChartOutput() SingleValueChartOutput {
return i.ToSingleValueChartOutputWithContext(context.Background())
}
func (i *SingleValueChart) ToSingleValueChartOutputWithContext(ctx context.Context) SingleValueChartOutput {
return pulumi.ToOutputWithContext(ctx, i).(SingleValueChartOutput)
}
// SingleValueChartArrayInput is an input type that accepts SingleValueChartArray and SingleValueChartArrayOutput values.
// You can construct a concrete instance of `SingleValueChartArrayInput` via:
//
// SingleValueChartArray{ SingleValueChartArgs{...} }
type SingleValueChartArrayInput interface {
pulumi.Input
ToSingleValueChartArrayOutput() SingleValueChartArrayOutput
ToSingleValueChartArrayOutputWithContext(context.Context) SingleValueChartArrayOutput
}
type SingleValueChartArray []SingleValueChartInput
func (SingleValueChartArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*SingleValueChart)(nil)).Elem()
}
func (i SingleValueChartArray) ToSingleValueChartArrayOutput() SingleValueChartArrayOutput {
return i.ToSingleValueChartArrayOutputWithContext(context.Background())
}
func (i SingleValueChartArray) ToSingleValueChartArrayOutputWithContext(ctx context.Context) SingleValueChartArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(SingleValueChartArrayOutput)
}
// SingleValueChartMapInput is an input type that accepts SingleValueChartMap and SingleValueChartMapOutput values.
// You can construct a concrete instance of `SingleValueChartMapInput` via:
//
// SingleValueChartMap{ "key": SingleValueChartArgs{...} }
type SingleValueChartMapInput interface {
pulumi.Input
ToSingleValueChartMapOutput() SingleValueChartMapOutput
ToSingleValueChartMapOutputWithContext(context.Context) SingleValueChartMapOutput
}
type SingleValueChartMap map[string]SingleValueChartInput
func (SingleValueChartMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*SingleValueChart)(nil)).Elem()
}
func (i SingleValueChartMap) ToSingleValueChartMapOutput() SingleValueChartMapOutput {
return i.ToSingleValueChartMapOutputWithContext(context.Background())
}
func (i SingleValueChartMap) ToSingleValueChartMapOutputWithContext(ctx context.Context) SingleValueChartMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(SingleValueChartMapOutput)
}
type SingleValueChartOutput struct{ *pulumi.OutputState }
func (SingleValueChartOutput) ElementType() reflect.Type {
return reflect.TypeOf((**SingleValueChart)(nil)).Elem()
}
func (o SingleValueChartOutput) ToSingleValueChartOutput() SingleValueChartOutput {
return o
}
func (o SingleValueChartOutput) ToSingleValueChartOutputWithContext(ctx context.Context) SingleValueChartOutput {
return o
}
// (Metric by default) Must be "Metric", "Dimension", or "Scale". "Scale" maps to Color by Value in the UI
func (o SingleValueChartOutput) ColorBy() pulumi.StringPtrOutput {
return o.ApplyT(func(v *SingleValueChart) pulumi.StringPtrOutput { return v.ColorBy }).(pulumi.StringPtrOutput)
}
// Single color range including both the color to display for that range and the borders of the range
func (o SingleValueChartOutput) ColorScales() SingleValueChartColorScaleArrayOutput {
return o.ApplyT(func(v *SingleValueChart) SingleValueChartColorScaleArrayOutput { return v.ColorScales }).(SingleValueChartColorScaleArrayOutput)
}
// Description of the chart (Optional)
func (o SingleValueChartOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *SingleValueChart) pulumi.StringPtrOutput { return v.Description }).(pulumi.StringPtrOutput)
}
// (false by default) Whether to hide the timestamp in the chart
func (o SingleValueChartOutput) IsTimestampHidden() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *SingleValueChart) pulumi.BoolPtrOutput { return v.IsTimestampHidden }).(pulumi.BoolPtrOutput)
}
// How long (in seconds) to wait for late datapoints
func (o SingleValueChartOutput) MaxDelay() pulumi.IntPtrOutput {
return o.ApplyT(func(v *SingleValueChart) pulumi.IntPtrOutput { return v.MaxDelay }).(pulumi.IntPtrOutput)
}
// The maximum precision to for values displayed in the list
func (o SingleValueChartOutput) MaxPrecision() pulumi.IntPtrOutput {
return o.ApplyT(func(v *SingleValueChart) pulumi.IntPtrOutput { return v.MaxPrecision }).(pulumi.IntPtrOutput)
}
// Name of the chart
func (o SingleValueChartOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *SingleValueChart) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// Signalflow program text for the chart. More info at "https://developers.signalfx.com/docs/signalflow-overview"
func (o SingleValueChartOutput) ProgramText() pulumi.StringOutput {
return o.ApplyT(func(v *SingleValueChart) pulumi.StringOutput { return v.ProgramText }).(pulumi.StringOutput)
}
// How often (in seconds) to refresh the values of the list
func (o SingleValueChartOutput) RefreshInterval() pulumi.IntPtrOutput {
return o.ApplyT(func(v *SingleValueChart) pulumi.IntPtrOutput { return v.RefreshInterval }).(pulumi.IntPtrOutput)
}
// (false by default) What kind of secondary visualization to show (None, Radial, Linear, Sparkline)
func (o SingleValueChartOutput) SecondaryVisualization() pulumi.StringPtrOutput {
return o.ApplyT(func(v *SingleValueChart) pulumi.StringPtrOutput { return v.SecondaryVisualization }).(pulumi.StringPtrOutput)
}
// (false by default) Whether to show a trend line below the current value
func (o SingleValueChartOutput) ShowSparkLine() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *SingleValueChart) pulumi.BoolPtrOutput { return v.ShowSparkLine }).(pulumi.BoolPtrOutput)
}
// The property value is a string that denotes the geographic region associated with the time zone, (e.g. Australia/Sydney)
func (o SingleValueChartOutput) Timezone() pulumi.StringPtrOutput {
return o.ApplyT(func(v *SingleValueChart) pulumi.StringPtrOutput { return v.Timezone }).(pulumi.StringPtrOutput)
}
// (Metric by default) Must be "Metric" or "Binary"
func (o SingleValueChartOutput) UnitPrefix() pulumi.StringPtrOutput {
return o.ApplyT(func(v *SingleValueChart) pulumi.StringPtrOutput { return v.UnitPrefix }).(pulumi.StringPtrOutput)
}
// URL of the chart
func (o SingleValueChartOutput) Url() pulumi.StringOutput {
return o.ApplyT(func(v *SingleValueChart) pulumi.StringOutput { return v.Url }).(pulumi.StringOutput)
}
// Plot-level customization options, associated with a publish statement
func (o SingleValueChartOutput) VizOptions() SingleValueChartVizOptionArrayOutput {
return o.ApplyT(func(v *SingleValueChart) SingleValueChartVizOptionArrayOutput { return v.VizOptions }).(SingleValueChartVizOptionArrayOutput)
}
type SingleValueChartArrayOutput struct{ *pulumi.OutputState }
func (SingleValueChartArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*SingleValueChart)(nil)).Elem()
}
func (o SingleValueChartArrayOutput) ToSingleValueChartArrayOutput() SingleValueChartArrayOutput {
return o
}
func (o SingleValueChartArrayOutput) ToSingleValueChartArrayOutputWithContext(ctx context.Context) SingleValueChartArrayOutput {
return o
}
func (o SingleValueChartArrayOutput) Index(i pulumi.IntInput) SingleValueChartOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *SingleValueChart {
return vs[0].([]*SingleValueChart)[vs[1].(int)]
}).(SingleValueChartOutput)
}
type SingleValueChartMapOutput struct{ *pulumi.OutputState }
func (SingleValueChartMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*SingleValueChart)(nil)).Elem()
}
func (o SingleValueChartMapOutput) ToSingleValueChartMapOutput() SingleValueChartMapOutput {
return o
}
func (o SingleValueChartMapOutput) ToSingleValueChartMapOutputWithContext(ctx context.Context) SingleValueChartMapOutput {
return o
}
func (o SingleValueChartMapOutput) MapIndex(k pulumi.StringInput) SingleValueChartOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *SingleValueChart {
return vs[0].(map[string]*SingleValueChart)[vs[1].(string)]
}).(SingleValueChartOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*SingleValueChartInput)(nil)).Elem(), &SingleValueChart{})
pulumi.RegisterInputType(reflect.TypeOf((*SingleValueChartArrayInput)(nil)).Elem(), SingleValueChartArray{})
pulumi.RegisterInputType(reflect.TypeOf((*SingleValueChartMapInput)(nil)).Elem(), SingleValueChartMap{})
pulumi.RegisterOutputType(SingleValueChartOutput{})
pulumi.RegisterOutputType(SingleValueChartArrayOutput{})
pulumi.RegisterOutputType(SingleValueChartMapOutput{})
}