generated from pulumi/pulumi-tf-provider-boilerplate
/
managementAgentDataSource.go
559 lines (493 loc) · 28.9 KB
/
managementAgentDataSource.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
// 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 managementagent
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// This resource provides the Management Agent Data Source resource in Oracle Cloud Infrastructure Management Agent service.
//
// Datasource creation request to given Management Agent.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-oci/sdk/go/oci/ManagementAgent"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := ManagementAgent.NewManagementAgentDataSource(ctx, "test_management_agent_data_source", &ManagementAgent.ManagementAgentDataSourceArgs{
// CompartmentId: pulumi.Any(compartmentId),
// ManagementAgentId: pulumi.Any(testManagementAgent.Id),
// Name: pulumi.Any(managementAgentDataSourceName),
// Type: pulumi.Any(managementAgentDataSourceType),
// Url: pulumi.Any(managementAgentDataSourceUrl),
// AllowMetrics: pulumi.Any(managementAgentDataSourceAllowMetrics),
// ConnectionTimeout: pulumi.Any(managementAgentDataSourceConnectionTimeout),
// MetricDimensions: managementagent.ManagementAgentDataSourceMetricDimensionArray{
// &managementagent.ManagementAgentDataSourceMetricDimensionArgs{
// Name: pulumi.Any(managementAgentDataSourceMetricDimensionsName),
// Value: pulumi.Any(managementAgentDataSourceMetricDimensionsValue),
// },
// },
// Namespace: pulumi.Any(managementAgentDataSourceNamespace),
// ProxyUrl: pulumi.Any(managementAgentDataSourceProxyUrl),
// ReadDataLimitInKilobytes: pulumi.Any(managementAgentDataSourceReadDataLimitInKilobytes),
// ReadTimeout: pulumi.Any(managementAgentDataSourceReadTimeout),
// ResourceGroup: pulumi.Any(managementAgentDataSourceResourceGroup),
// ScheduleMins: pulumi.Any(managementAgentDataSourceScheduleMins),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// ManagementAgentDataSources can be imported using the `id`, e.g.
//
// ```sh
// $ pulumi import oci:ManagementAgent/managementAgentDataSource:ManagementAgentDataSource test_management_agent_data_source "managementAgents/{managementAgentId}/dataSources/{key}"
// ```
type ManagementAgentDataSource struct {
pulumi.CustomResourceState
// (Updatable) Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required.
AllowMetrics pulumi.StringOutput `pulumi:"allowMetrics"`
// Compartment owning this DataSource.
CompartmentId pulumi.StringOutput `pulumi:"compartmentId"`
// (Updatable) Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint.
ConnectionTimeout pulumi.IntOutput `pulumi:"connectionTimeout"`
DataSourceKey pulumi.StringOutput `pulumi:"dataSourceKey"`
// If the Kubernetes cluster type is Daemon set then this will be set to true.
IsDaemonSet pulumi.BoolOutput `pulumi:"isDaemonSet"`
// Unique Management Agent identifier
ManagementAgentId pulumi.StringOutput `pulumi:"managementAgentId"`
// (Updatable) The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.
MetricDimensions ManagementAgentDataSourceMetricDimensionArrayOutput `pulumi:"metricDimensions"`
// Unique name of the DataSource.
Name pulumi.StringOutput `pulumi:"name"`
// The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded.
Namespace pulumi.StringOutput `pulumi:"namespace"`
// (Updatable) The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property).
ProxyUrl pulumi.StringOutput `pulumi:"proxyUrl"`
// Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
ReadDataLimit pulumi.IntOutput `pulumi:"readDataLimit"`
// (Updatable) Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
ReadDataLimitInKilobytes pulumi.IntOutput `pulumi:"readDataLimitInKilobytes"`
// (Updatable) Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint.
ReadTimeout pulumi.IntOutput `pulumi:"readTimeout"`
// (Updatable) Oracle Cloud Infrastructure monitoring resource group to assign the metric to.
ResourceGroup pulumi.StringOutput `pulumi:"resourceGroup"`
// (Updatable) Number in minutes. The scraping occurs at the specified interval.
ScheduleMins pulumi.IntOutput `pulumi:"scheduleMins"`
// State of the DataSource.
State pulumi.StringOutput `pulumi:"state"`
// The time the DataSource was created. An RFC3339 formatted datetime string
TimeCreated pulumi.StringOutput `pulumi:"timeCreated"`
// The time the DataSource data was last received. An RFC3339 formatted datetime string
TimeUpdated pulumi.StringOutput `pulumi:"timeUpdated"`
// (Updatable) The type of the DataSource. Support types: PROMETHEUS_EMITTER
Type pulumi.StringOutput `pulumi:"type"`
// (Updatable) The url through which the Prometheus Exporter publishes its metrics. (http only)
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Url pulumi.StringOutput `pulumi:"url"`
}
// NewManagementAgentDataSource registers a new resource with the given unique name, arguments, and options.
func NewManagementAgentDataSource(ctx *pulumi.Context,
name string, args *ManagementAgentDataSourceArgs, opts ...pulumi.ResourceOption) (*ManagementAgentDataSource, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.CompartmentId == nil {
return nil, errors.New("invalid value for required argument 'CompartmentId'")
}
if args.ManagementAgentId == nil {
return nil, errors.New("invalid value for required argument 'ManagementAgentId'")
}
if args.Type == nil {
return nil, errors.New("invalid value for required argument 'Type'")
}
if args.Url == nil {
return nil, errors.New("invalid value for required argument 'Url'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource ManagementAgentDataSource
err := ctx.RegisterResource("oci:ManagementAgent/managementAgentDataSource:ManagementAgentDataSource", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetManagementAgentDataSource gets an existing ManagementAgentDataSource 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 GetManagementAgentDataSource(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *ManagementAgentDataSourceState, opts ...pulumi.ResourceOption) (*ManagementAgentDataSource, error) {
var resource ManagementAgentDataSource
err := ctx.ReadResource("oci:ManagementAgent/managementAgentDataSource:ManagementAgentDataSource", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering ManagementAgentDataSource resources.
type managementAgentDataSourceState struct {
// (Updatable) Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required.
AllowMetrics *string `pulumi:"allowMetrics"`
// Compartment owning this DataSource.
CompartmentId *string `pulumi:"compartmentId"`
// (Updatable) Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint.
ConnectionTimeout *int `pulumi:"connectionTimeout"`
DataSourceKey *string `pulumi:"dataSourceKey"`
// If the Kubernetes cluster type is Daemon set then this will be set to true.
IsDaemonSet *bool `pulumi:"isDaemonSet"`
// Unique Management Agent identifier
ManagementAgentId *string `pulumi:"managementAgentId"`
// (Updatable) The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.
MetricDimensions []ManagementAgentDataSourceMetricDimension `pulumi:"metricDimensions"`
// Unique name of the DataSource.
Name *string `pulumi:"name"`
// The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded.
Namespace *string `pulumi:"namespace"`
// (Updatable) The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property).
ProxyUrl *string `pulumi:"proxyUrl"`
// Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
ReadDataLimit *int `pulumi:"readDataLimit"`
// (Updatable) Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
ReadDataLimitInKilobytes *int `pulumi:"readDataLimitInKilobytes"`
// (Updatable) Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint.
ReadTimeout *int `pulumi:"readTimeout"`
// (Updatable) Oracle Cloud Infrastructure monitoring resource group to assign the metric to.
ResourceGroup *string `pulumi:"resourceGroup"`
// (Updatable) Number in minutes. The scraping occurs at the specified interval.
ScheduleMins *int `pulumi:"scheduleMins"`
// State of the DataSource.
State *string `pulumi:"state"`
// The time the DataSource was created. An RFC3339 formatted datetime string
TimeCreated *string `pulumi:"timeCreated"`
// The time the DataSource data was last received. An RFC3339 formatted datetime string
TimeUpdated *string `pulumi:"timeUpdated"`
// (Updatable) The type of the DataSource. Support types: PROMETHEUS_EMITTER
Type *string `pulumi:"type"`
// (Updatable) The url through which the Prometheus Exporter publishes its metrics. (http only)
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Url *string `pulumi:"url"`
}
type ManagementAgentDataSourceState struct {
// (Updatable) Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required.
AllowMetrics pulumi.StringPtrInput
// Compartment owning this DataSource.
CompartmentId pulumi.StringPtrInput
// (Updatable) Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint.
ConnectionTimeout pulumi.IntPtrInput
DataSourceKey pulumi.StringPtrInput
// If the Kubernetes cluster type is Daemon set then this will be set to true.
IsDaemonSet pulumi.BoolPtrInput
// Unique Management Agent identifier
ManagementAgentId pulumi.StringPtrInput
// (Updatable) The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.
MetricDimensions ManagementAgentDataSourceMetricDimensionArrayInput
// Unique name of the DataSource.
Name pulumi.StringPtrInput
// The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded.
Namespace pulumi.StringPtrInput
// (Updatable) The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property).
ProxyUrl pulumi.StringPtrInput
// Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
ReadDataLimit pulumi.IntPtrInput
// (Updatable) Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
ReadDataLimitInKilobytes pulumi.IntPtrInput
// (Updatable) Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint.
ReadTimeout pulumi.IntPtrInput
// (Updatable) Oracle Cloud Infrastructure monitoring resource group to assign the metric to.
ResourceGroup pulumi.StringPtrInput
// (Updatable) Number in minutes. The scraping occurs at the specified interval.
ScheduleMins pulumi.IntPtrInput
// State of the DataSource.
State pulumi.StringPtrInput
// The time the DataSource was created. An RFC3339 formatted datetime string
TimeCreated pulumi.StringPtrInput
// The time the DataSource data was last received. An RFC3339 formatted datetime string
TimeUpdated pulumi.StringPtrInput
// (Updatable) The type of the DataSource. Support types: PROMETHEUS_EMITTER
Type pulumi.StringPtrInput
// (Updatable) The url through which the Prometheus Exporter publishes its metrics. (http only)
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Url pulumi.StringPtrInput
}
func (ManagementAgentDataSourceState) ElementType() reflect.Type {
return reflect.TypeOf((*managementAgentDataSourceState)(nil)).Elem()
}
type managementAgentDataSourceArgs struct {
// (Updatable) Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required.
AllowMetrics *string `pulumi:"allowMetrics"`
// Compartment owning this DataSource.
CompartmentId string `pulumi:"compartmentId"`
// (Updatable) Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint.
ConnectionTimeout *int `pulumi:"connectionTimeout"`
// Unique Management Agent identifier
ManagementAgentId string `pulumi:"managementAgentId"`
// (Updatable) The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.
MetricDimensions []ManagementAgentDataSourceMetricDimension `pulumi:"metricDimensions"`
// Unique name of the DataSource.
Name *string `pulumi:"name"`
// The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded.
Namespace *string `pulumi:"namespace"`
// (Updatable) The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property).
ProxyUrl *string `pulumi:"proxyUrl"`
// (Updatable) Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
ReadDataLimitInKilobytes *int `pulumi:"readDataLimitInKilobytes"`
// (Updatable) Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint.
ReadTimeout *int `pulumi:"readTimeout"`
// (Updatable) Oracle Cloud Infrastructure monitoring resource group to assign the metric to.
ResourceGroup *string `pulumi:"resourceGroup"`
// (Updatable) Number in minutes. The scraping occurs at the specified interval.
ScheduleMins *int `pulumi:"scheduleMins"`
// (Updatable) The type of the DataSource. Support types: PROMETHEUS_EMITTER
Type string `pulumi:"type"`
// (Updatable) The url through which the Prometheus Exporter publishes its metrics. (http only)
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Url string `pulumi:"url"`
}
// The set of arguments for constructing a ManagementAgentDataSource resource.
type ManagementAgentDataSourceArgs struct {
// (Updatable) Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required.
AllowMetrics pulumi.StringPtrInput
// Compartment owning this DataSource.
CompartmentId pulumi.StringInput
// (Updatable) Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint.
ConnectionTimeout pulumi.IntPtrInput
// Unique Management Agent identifier
ManagementAgentId pulumi.StringInput
// (Updatable) The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.
MetricDimensions ManagementAgentDataSourceMetricDimensionArrayInput
// Unique name of the DataSource.
Name pulumi.StringPtrInput
// The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded.
Namespace pulumi.StringPtrInput
// (Updatable) The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property).
ProxyUrl pulumi.StringPtrInput
// (Updatable) Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
ReadDataLimitInKilobytes pulumi.IntPtrInput
// (Updatable) Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint.
ReadTimeout pulumi.IntPtrInput
// (Updatable) Oracle Cloud Infrastructure monitoring resource group to assign the metric to.
ResourceGroup pulumi.StringPtrInput
// (Updatable) Number in minutes. The scraping occurs at the specified interval.
ScheduleMins pulumi.IntPtrInput
// (Updatable) The type of the DataSource. Support types: PROMETHEUS_EMITTER
Type pulumi.StringInput
// (Updatable) The url through which the Prometheus Exporter publishes its metrics. (http only)
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Url pulumi.StringInput
}
func (ManagementAgentDataSourceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*managementAgentDataSourceArgs)(nil)).Elem()
}
type ManagementAgentDataSourceInput interface {
pulumi.Input
ToManagementAgentDataSourceOutput() ManagementAgentDataSourceOutput
ToManagementAgentDataSourceOutputWithContext(ctx context.Context) ManagementAgentDataSourceOutput
}
func (*ManagementAgentDataSource) ElementType() reflect.Type {
return reflect.TypeOf((**ManagementAgentDataSource)(nil)).Elem()
}
func (i *ManagementAgentDataSource) ToManagementAgentDataSourceOutput() ManagementAgentDataSourceOutput {
return i.ToManagementAgentDataSourceOutputWithContext(context.Background())
}
func (i *ManagementAgentDataSource) ToManagementAgentDataSourceOutputWithContext(ctx context.Context) ManagementAgentDataSourceOutput {
return pulumi.ToOutputWithContext(ctx, i).(ManagementAgentDataSourceOutput)
}
// ManagementAgentDataSourceArrayInput is an input type that accepts ManagementAgentDataSourceArray and ManagementAgentDataSourceArrayOutput values.
// You can construct a concrete instance of `ManagementAgentDataSourceArrayInput` via:
//
// ManagementAgentDataSourceArray{ ManagementAgentDataSourceArgs{...} }
type ManagementAgentDataSourceArrayInput interface {
pulumi.Input
ToManagementAgentDataSourceArrayOutput() ManagementAgentDataSourceArrayOutput
ToManagementAgentDataSourceArrayOutputWithContext(context.Context) ManagementAgentDataSourceArrayOutput
}
type ManagementAgentDataSourceArray []ManagementAgentDataSourceInput
func (ManagementAgentDataSourceArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*ManagementAgentDataSource)(nil)).Elem()
}
func (i ManagementAgentDataSourceArray) ToManagementAgentDataSourceArrayOutput() ManagementAgentDataSourceArrayOutput {
return i.ToManagementAgentDataSourceArrayOutputWithContext(context.Background())
}
func (i ManagementAgentDataSourceArray) ToManagementAgentDataSourceArrayOutputWithContext(ctx context.Context) ManagementAgentDataSourceArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ManagementAgentDataSourceArrayOutput)
}
// ManagementAgentDataSourceMapInput is an input type that accepts ManagementAgentDataSourceMap and ManagementAgentDataSourceMapOutput values.
// You can construct a concrete instance of `ManagementAgentDataSourceMapInput` via:
//
// ManagementAgentDataSourceMap{ "key": ManagementAgentDataSourceArgs{...} }
type ManagementAgentDataSourceMapInput interface {
pulumi.Input
ToManagementAgentDataSourceMapOutput() ManagementAgentDataSourceMapOutput
ToManagementAgentDataSourceMapOutputWithContext(context.Context) ManagementAgentDataSourceMapOutput
}
type ManagementAgentDataSourceMap map[string]ManagementAgentDataSourceInput
func (ManagementAgentDataSourceMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*ManagementAgentDataSource)(nil)).Elem()
}
func (i ManagementAgentDataSourceMap) ToManagementAgentDataSourceMapOutput() ManagementAgentDataSourceMapOutput {
return i.ToManagementAgentDataSourceMapOutputWithContext(context.Background())
}
func (i ManagementAgentDataSourceMap) ToManagementAgentDataSourceMapOutputWithContext(ctx context.Context) ManagementAgentDataSourceMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(ManagementAgentDataSourceMapOutput)
}
type ManagementAgentDataSourceOutput struct{ *pulumi.OutputState }
func (ManagementAgentDataSourceOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ManagementAgentDataSource)(nil)).Elem()
}
func (o ManagementAgentDataSourceOutput) ToManagementAgentDataSourceOutput() ManagementAgentDataSourceOutput {
return o
}
func (o ManagementAgentDataSourceOutput) ToManagementAgentDataSourceOutputWithContext(ctx context.Context) ManagementAgentDataSourceOutput {
return o
}
// (Updatable) Comma separated metric name list. The complete set of desired scraped metrics. Use this property to limit the set of metrics uploaded if required.
func (o ManagementAgentDataSourceOutput) AllowMetrics() pulumi.StringOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.StringOutput { return v.AllowMetrics }).(pulumi.StringOutput)
}
// Compartment owning this DataSource.
func (o ManagementAgentDataSourceOutput) CompartmentId() pulumi.StringOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.StringOutput { return v.CompartmentId }).(pulumi.StringOutput)
}
// (Updatable) Number in milliseconds. The timeout for connecting to the Prometheus Exporter's endpoint.
func (o ManagementAgentDataSourceOutput) ConnectionTimeout() pulumi.IntOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.IntOutput { return v.ConnectionTimeout }).(pulumi.IntOutput)
}
func (o ManagementAgentDataSourceOutput) DataSourceKey() pulumi.StringOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.StringOutput { return v.DataSourceKey }).(pulumi.StringOutput)
}
// If the Kubernetes cluster type is Daemon set then this will be set to true.
func (o ManagementAgentDataSourceOutput) IsDaemonSet() pulumi.BoolOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.BoolOutput { return v.IsDaemonSet }).(pulumi.BoolOutput)
}
// Unique Management Agent identifier
func (o ManagementAgentDataSourceOutput) ManagementAgentId() pulumi.StringOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.StringOutput { return v.ManagementAgentId }).(pulumi.StringOutput)
}
// (Updatable) The names of other user-supplied properties expressed as fixed values to be used as dimensions for every uploaded datapoint.
func (o ManagementAgentDataSourceOutput) MetricDimensions() ManagementAgentDataSourceMetricDimensionArrayOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) ManagementAgentDataSourceMetricDimensionArrayOutput {
return v.MetricDimensions
}).(ManagementAgentDataSourceMetricDimensionArrayOutput)
}
// Unique name of the DataSource.
func (o ManagementAgentDataSourceOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// The Oracle Cloud Infrastructure monitoring namespace to which scraped metrics should be uploaded.
func (o ManagementAgentDataSourceOutput) Namespace() pulumi.StringOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.StringOutput { return v.Namespace }).(pulumi.StringOutput)
}
// (Updatable) The url of the network proxy that provides access to the Prometheus Exporter's endpoint (url required property).
func (o ManagementAgentDataSourceOutput) ProxyUrl() pulumi.StringOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.StringOutput { return v.ProxyUrl }).(pulumi.StringOutput)
}
// Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
func (o ManagementAgentDataSourceOutput) ReadDataLimit() pulumi.IntOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.IntOutput { return v.ReadDataLimit }).(pulumi.IntOutput)
}
// (Updatable) Number in kilobytes. The limit on the data being sent, not to exceed the agent's fixed limit of 400 (KB).
func (o ManagementAgentDataSourceOutput) ReadDataLimitInKilobytes() pulumi.IntOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.IntOutput { return v.ReadDataLimitInKilobytes }).(pulumi.IntOutput)
}
// (Updatable) Number in milliseconds. The timeout for reading the response from the Prometheus Exporter's endpoint.
func (o ManagementAgentDataSourceOutput) ReadTimeout() pulumi.IntOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.IntOutput { return v.ReadTimeout }).(pulumi.IntOutput)
}
// (Updatable) Oracle Cloud Infrastructure monitoring resource group to assign the metric to.
func (o ManagementAgentDataSourceOutput) ResourceGroup() pulumi.StringOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.StringOutput { return v.ResourceGroup }).(pulumi.StringOutput)
}
// (Updatable) Number in minutes. The scraping occurs at the specified interval.
func (o ManagementAgentDataSourceOutput) ScheduleMins() pulumi.IntOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.IntOutput { return v.ScheduleMins }).(pulumi.IntOutput)
}
// State of the DataSource.
func (o ManagementAgentDataSourceOutput) State() pulumi.StringOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.StringOutput { return v.State }).(pulumi.StringOutput)
}
// The time the DataSource was created. An RFC3339 formatted datetime string
func (o ManagementAgentDataSourceOutput) TimeCreated() pulumi.StringOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.StringOutput { return v.TimeCreated }).(pulumi.StringOutput)
}
// The time the DataSource data was last received. An RFC3339 formatted datetime string
func (o ManagementAgentDataSourceOutput) TimeUpdated() pulumi.StringOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.StringOutput { return v.TimeUpdated }).(pulumi.StringOutput)
}
// (Updatable) The type of the DataSource. Support types: PROMETHEUS_EMITTER
func (o ManagementAgentDataSourceOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.StringOutput { return v.Type }).(pulumi.StringOutput)
}
// (Updatable) The url through which the Prometheus Exporter publishes its metrics. (http only)
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
func (o ManagementAgentDataSourceOutput) Url() pulumi.StringOutput {
return o.ApplyT(func(v *ManagementAgentDataSource) pulumi.StringOutput { return v.Url }).(pulumi.StringOutput)
}
type ManagementAgentDataSourceArrayOutput struct{ *pulumi.OutputState }
func (ManagementAgentDataSourceArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*ManagementAgentDataSource)(nil)).Elem()
}
func (o ManagementAgentDataSourceArrayOutput) ToManagementAgentDataSourceArrayOutput() ManagementAgentDataSourceArrayOutput {
return o
}
func (o ManagementAgentDataSourceArrayOutput) ToManagementAgentDataSourceArrayOutputWithContext(ctx context.Context) ManagementAgentDataSourceArrayOutput {
return o
}
func (o ManagementAgentDataSourceArrayOutput) Index(i pulumi.IntInput) ManagementAgentDataSourceOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *ManagementAgentDataSource {
return vs[0].([]*ManagementAgentDataSource)[vs[1].(int)]
}).(ManagementAgentDataSourceOutput)
}
type ManagementAgentDataSourceMapOutput struct{ *pulumi.OutputState }
func (ManagementAgentDataSourceMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*ManagementAgentDataSource)(nil)).Elem()
}
func (o ManagementAgentDataSourceMapOutput) ToManagementAgentDataSourceMapOutput() ManagementAgentDataSourceMapOutput {
return o
}
func (o ManagementAgentDataSourceMapOutput) ToManagementAgentDataSourceMapOutputWithContext(ctx context.Context) ManagementAgentDataSourceMapOutput {
return o
}
func (o ManagementAgentDataSourceMapOutput) MapIndex(k pulumi.StringInput) ManagementAgentDataSourceOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *ManagementAgentDataSource {
return vs[0].(map[string]*ManagementAgentDataSource)[vs[1].(string)]
}).(ManagementAgentDataSourceOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*ManagementAgentDataSourceInput)(nil)).Elem(), &ManagementAgentDataSource{})
pulumi.RegisterInputType(reflect.TypeOf((*ManagementAgentDataSourceArrayInput)(nil)).Elem(), ManagementAgentDataSourceArray{})
pulumi.RegisterInputType(reflect.TypeOf((*ManagementAgentDataSourceMapInput)(nil)).Elem(), ManagementAgentDataSourceMap{})
pulumi.RegisterOutputType(ManagementAgentDataSourceOutput{})
pulumi.RegisterOutputType(ManagementAgentDataSourceArrayOutput{})
pulumi.RegisterOutputType(ManagementAgentDataSourceMapOutput{})
}