pulumi-wavefront 3.2.0a1710161007__py3-none-any.whl → 3.2.0a1736849819__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_wavefront/_inputs.py +528 -3
- pulumi_wavefront/_utilities.py +41 -5
- pulumi_wavefront/alert.py +16 -13
- pulumi_wavefront/alert_target.py +20 -17
- pulumi_wavefront/cloud_integration_app_dynamics.py +13 -10
- pulumi_wavefront/cloud_integration_aws_external_id.py +7 -6
- pulumi_wavefront/cloud_integration_azure.py +9 -6
- pulumi_wavefront/cloud_integration_azure_activity_log.py +9 -6
- pulumi_wavefront/cloud_integration_cloud_trail.py +9 -6
- pulumi_wavefront/cloud_integration_cloud_watch.py +9 -6
- pulumi_wavefront/cloud_integration_ec2.py +9 -6
- pulumi_wavefront/cloud_integration_gcp.py +11 -12
- pulumi_wavefront/cloud_integration_gcp_billing.py +13 -14
- pulumi_wavefront/cloud_integration_new_relic.py +16 -11
- pulumi_wavefront/config/__init__.pyi +5 -0
- pulumi_wavefront/config/vars.py +5 -0
- pulumi_wavefront/dashboard.py +15 -10
- pulumi_wavefront/dashboard_json.py +233 -234
- pulumi_wavefront/derived_metric.py +7 -4
- pulumi_wavefront/event.py +9 -6
- pulumi_wavefront/external_link.py +7 -4
- pulumi_wavefront/get_alert.py +39 -9
- pulumi_wavefront/get_alerts.py +18 -9
- pulumi_wavefront/get_dashboard.py +49 -10
- pulumi_wavefront/get_dashboards.py +18 -9
- pulumi_wavefront/get_default_user_group.py +14 -9
- pulumi_wavefront/get_derived_metric.py +37 -9
- pulumi_wavefront/get_derived_metrics.py +18 -9
- pulumi_wavefront/get_event.py +23 -9
- pulumi_wavefront/get_events.py +28 -15
- pulumi_wavefront/get_external_link.py +25 -9
- pulumi_wavefront/get_external_links.py +18 -9
- pulumi_wavefront/get_maintenance_window.py +31 -9
- pulumi_wavefront/get_maintenance_window_all.py +16 -5
- pulumi_wavefront/get_metrics_policy.py +15 -5
- pulumi_wavefront/get_role.py +17 -9
- pulumi_wavefront/get_roles.py +18 -9
- pulumi_wavefront/get_user.py +19 -9
- pulumi_wavefront/get_user_group.py +18 -9
- pulumi_wavefront/get_user_groups.py +18 -9
- pulumi_wavefront/get_users.py +14 -9
- pulumi_wavefront/ingestion_policy.py +14 -9
- pulumi_wavefront/maintenance_window.py +13 -12
- pulumi_wavefront/metrics_policy.py +30 -33
- pulumi_wavefront/outputs.py +13 -8
- pulumi_wavefront/provider.py +5 -0
- pulumi_wavefront/pulumi-plugin.json +2 -1
- pulumi_wavefront/role.py +7 -6
- pulumi_wavefront/service_account.py +9 -8
- pulumi_wavefront/user.py +5 -4
- pulumi_wavefront/user_group.py +11 -6
- {pulumi_wavefront-3.2.0a1710161007.dist-info → pulumi_wavefront-3.2.0a1736849819.dist-info}/METADATA +7 -6
- pulumi_wavefront-3.2.0a1736849819.dist-info/RECORD +58 -0
- {pulumi_wavefront-3.2.0a1710161007.dist-info → pulumi_wavefront-3.2.0a1736849819.dist-info}/WHEEL +1 -1
- pulumi_wavefront-3.2.0a1710161007.dist-info/RECORD +0 -58
- {pulumi_wavefront-3.2.0a1710161007.dist-info → pulumi_wavefront-3.2.0a1736849819.dist-info}/top_level.txt +0 -0
pulumi_wavefront/get_alert.py
CHANGED
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
10
15
|
from . import _utilities
|
11
16
|
from . import outputs
|
12
17
|
|
@@ -338,14 +343,13 @@ def get_alert(id: Optional[str] = None,
|
|
338
343
|
|
339
344
|
## Example Usage
|
340
345
|
|
341
|
-
<!--Start PulumiCodeChooser -->
|
342
346
|
```python
|
343
347
|
import pulumi
|
344
348
|
import pulumi_wavefront as wavefront
|
345
349
|
|
350
|
+
# Get the information about the alert.
|
346
351
|
example = wavefront.get_alert(id="alert-id")
|
347
352
|
```
|
348
|
-
<!--End PulumiCodeChooser -->
|
349
353
|
|
350
354
|
|
351
355
|
:param str id: The ID associated with the alert data to be fetched.
|
@@ -383,28 +387,54 @@ def get_alert(id: Optional[str] = None,
|
|
383
387
|
tags=pulumi.get(__ret__, 'tags'),
|
384
388
|
target=pulumi.get(__ret__, 'target'),
|
385
389
|
targets=pulumi.get(__ret__, 'targets'))
|
386
|
-
|
387
|
-
|
388
|
-
@_utilities.lift_output_func(get_alert)
|
389
390
|
def get_alert_output(id: Optional[pulumi.Input[str]] = None,
|
390
391
|
targets: Optional[pulumi.Input[Optional[Mapping[str, str]]]] = None,
|
391
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAlertResult]:
|
392
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlertResult]:
|
392
393
|
"""
|
393
394
|
Use this data source to get information about a Wavefront alert by its ID.
|
394
395
|
|
395
396
|
## Example Usage
|
396
397
|
|
397
|
-
<!--Start PulumiCodeChooser -->
|
398
398
|
```python
|
399
399
|
import pulumi
|
400
400
|
import pulumi_wavefront as wavefront
|
401
401
|
|
402
|
+
# Get the information about the alert.
|
402
403
|
example = wavefront.get_alert(id="alert-id")
|
403
404
|
```
|
404
|
-
<!--End PulumiCodeChooser -->
|
405
405
|
|
406
406
|
|
407
407
|
:param str id: The ID associated with the alert data to be fetched.
|
408
408
|
:param Mapping[str, str] targets: A comma-separated list of the email addresses or integration endpoints (such as PagerDuty or webhook) to notify when the alert status changes. Multiple target types can be in the list.
|
409
409
|
"""
|
410
|
-
|
410
|
+
__args__ = dict()
|
411
|
+
__args__['id'] = id
|
412
|
+
__args__['targets'] = targets
|
413
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
414
|
+
__ret__ = pulumi.runtime.invoke_output('wavefront:index/getAlert:getAlert', __args__, opts=opts, typ=GetAlertResult)
|
415
|
+
return __ret__.apply(lambda __response__: GetAlertResult(
|
416
|
+
additional_information=pulumi.get(__response__, 'additional_information'),
|
417
|
+
alert_triage_dashboards=pulumi.get(__response__, 'alert_triage_dashboards'),
|
418
|
+
alert_type=pulumi.get(__response__, 'alert_type'),
|
419
|
+
can_modifies=pulumi.get(__response__, 'can_modifies'),
|
420
|
+
can_views=pulumi.get(__response__, 'can_views'),
|
421
|
+
condition=pulumi.get(__response__, 'condition'),
|
422
|
+
conditions=pulumi.get(__response__, 'conditions'),
|
423
|
+
display_expression=pulumi.get(__response__, 'display_expression'),
|
424
|
+
evaluate_realtime_data=pulumi.get(__response__, 'evaluate_realtime_data'),
|
425
|
+
failing_host_label_pairs=pulumi.get(__response__, 'failing_host_label_pairs'),
|
426
|
+
id=pulumi.get(__response__, 'id'),
|
427
|
+
in_maintenance_host_label_pairs=pulumi.get(__response__, 'in_maintenance_host_label_pairs'),
|
428
|
+
include_obsolete_metrics=pulumi.get(__response__, 'include_obsolete_metrics'),
|
429
|
+
minutes=pulumi.get(__response__, 'minutes'),
|
430
|
+
name=pulumi.get(__response__, 'name'),
|
431
|
+
notification_resend_frequency_minutes=pulumi.get(__response__, 'notification_resend_frequency_minutes'),
|
432
|
+
process_rate_minutes=pulumi.get(__response__, 'process_rate_minutes'),
|
433
|
+
resolve_after_minutes=pulumi.get(__response__, 'resolve_after_minutes'),
|
434
|
+
runbook_links=pulumi.get(__response__, 'runbook_links'),
|
435
|
+
severity=pulumi.get(__response__, 'severity'),
|
436
|
+
severity_lists=pulumi.get(__response__, 'severity_lists'),
|
437
|
+
statuses=pulumi.get(__response__, 'statuses'),
|
438
|
+
tags=pulumi.get(__response__, 'tags'),
|
439
|
+
target=pulumi.get(__response__, 'target'),
|
440
|
+
targets=pulumi.get(__response__, 'targets')))
|
pulumi_wavefront/get_alerts.py
CHANGED
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
10
15
|
from . import _utilities
|
11
16
|
from . import outputs
|
12
17
|
|
@@ -83,15 +88,14 @@ def get_alerts(limit: Optional[int] = None,
|
|
83
88
|
|
84
89
|
## Example Usage
|
85
90
|
|
86
|
-
<!--Start PulumiCodeChooser -->
|
87
91
|
```python
|
88
92
|
import pulumi
|
89
93
|
import pulumi_wavefront as wavefront
|
90
94
|
|
95
|
+
# Get the information about all alerts.
|
91
96
|
example = wavefront.get_alerts(limit=10,
|
92
97
|
offset=0)
|
93
98
|
```
|
94
|
-
<!--End PulumiCodeChooser -->
|
95
99
|
|
96
100
|
|
97
101
|
:param int limit: Limit is the maximum number of results to be returned. Defaults to 100.
|
@@ -108,29 +112,34 @@ def get_alerts(limit: Optional[int] = None,
|
|
108
112
|
id=pulumi.get(__ret__, 'id'),
|
109
113
|
limit=pulumi.get(__ret__, 'limit'),
|
110
114
|
offset=pulumi.get(__ret__, 'offset'))
|
111
|
-
|
112
|
-
|
113
|
-
@_utilities.lift_output_func(get_alerts)
|
114
115
|
def get_alerts_output(limit: Optional[pulumi.Input[Optional[int]]] = None,
|
115
116
|
offset: Optional[pulumi.Input[Optional[int]]] = None,
|
116
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetAlertsResult]:
|
117
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetAlertsResult]:
|
117
118
|
"""
|
118
119
|
Use this data source to get information about all Wavefront alerts.
|
119
120
|
|
120
121
|
## Example Usage
|
121
122
|
|
122
|
-
<!--Start PulumiCodeChooser -->
|
123
123
|
```python
|
124
124
|
import pulumi
|
125
125
|
import pulumi_wavefront as wavefront
|
126
126
|
|
127
|
+
# Get the information about all alerts.
|
127
128
|
example = wavefront.get_alerts(limit=10,
|
128
129
|
offset=0)
|
129
130
|
```
|
130
|
-
<!--End PulumiCodeChooser -->
|
131
131
|
|
132
132
|
|
133
133
|
:param int limit: Limit is the maximum number of results to be returned. Defaults to 100.
|
134
134
|
:param int offset: Offset is the offset from the first result to be returned. Defaults to 0.
|
135
135
|
"""
|
136
|
-
|
136
|
+
__args__ = dict()
|
137
|
+
__args__['limit'] = limit
|
138
|
+
__args__['offset'] = offset
|
139
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
140
|
+
__ret__ = pulumi.runtime.invoke_output('wavefront:index/getAlerts:getAlerts', __args__, opts=opts, typ=GetAlertsResult)
|
141
|
+
return __ret__.apply(lambda __response__: GetAlertsResult(
|
142
|
+
alerts=pulumi.get(__response__, 'alerts'),
|
143
|
+
id=pulumi.get(__response__, 'id'),
|
144
|
+
limit=pulumi.get(__response__, 'limit'),
|
145
|
+
offset=pulumi.get(__response__, 'offset')))
|
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
10
15
|
from . import _utilities
|
11
16
|
from . import outputs
|
12
17
|
|
@@ -283,7 +288,7 @@ class GetDashboardResult:
|
|
283
288
|
|
284
289
|
@property
|
285
290
|
@pulumi.getter
|
286
|
-
def parameters(self) -> Mapping[str,
|
291
|
+
def parameters(self) -> Mapping[str, str]:
|
287
292
|
return pulumi.get(self, "parameters")
|
288
293
|
|
289
294
|
@property
|
@@ -388,14 +393,13 @@ def get_dashboard(id: Optional[str] = None,
|
|
388
393
|
|
389
394
|
## Example Usage
|
390
395
|
|
391
|
-
<!--Start PulumiCodeChooser -->
|
392
396
|
```python
|
393
397
|
import pulumi
|
394
398
|
import pulumi_wavefront as wavefront
|
395
399
|
|
400
|
+
# Get the information about a dashboard.
|
396
401
|
example = wavefront.get_dashboard(id="dashboard-id")
|
397
402
|
```
|
398
|
-
<!--End PulumiCodeChooser -->
|
399
403
|
|
400
404
|
|
401
405
|
:param str id: The ID associated with the dashboard data to be fetched.
|
@@ -441,26 +445,61 @@ def get_dashboard(id: Optional[str] = None,
|
|
441
445
|
views_last_day=pulumi.get(__ret__, 'views_last_day'),
|
442
446
|
views_last_month=pulumi.get(__ret__, 'views_last_month'),
|
443
447
|
views_last_week=pulumi.get(__ret__, 'views_last_week'))
|
444
|
-
|
445
|
-
|
446
|
-
@_utilities.lift_output_func(get_dashboard)
|
447
448
|
def get_dashboard_output(id: Optional[pulumi.Input[str]] = None,
|
448
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDashboardResult]:
|
449
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDashboardResult]:
|
449
450
|
"""
|
450
451
|
Use this data source to get information about a certain Wavefront dashboard by its ID.
|
451
452
|
|
452
453
|
## Example Usage
|
453
454
|
|
454
|
-
<!--Start PulumiCodeChooser -->
|
455
455
|
```python
|
456
456
|
import pulumi
|
457
457
|
import pulumi_wavefront as wavefront
|
458
458
|
|
459
|
+
# Get the information about a dashboard.
|
459
460
|
example = wavefront.get_dashboard(id="dashboard-id")
|
460
461
|
```
|
461
|
-
<!--End PulumiCodeChooser -->
|
462
462
|
|
463
463
|
|
464
464
|
:param str id: The ID associated with the dashboard data to be fetched.
|
465
465
|
"""
|
466
|
-
|
466
|
+
__args__ = dict()
|
467
|
+
__args__['id'] = id
|
468
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
469
|
+
__ret__ = pulumi.runtime.invoke_output('wavefront:index/getDashboard:getDashboard', __args__, opts=opts, typ=GetDashboardResult)
|
470
|
+
return __ret__.apply(lambda __response__: GetDashboardResult(
|
471
|
+
can_modifies=pulumi.get(__response__, 'can_modifies'),
|
472
|
+
can_views=pulumi.get(__response__, 'can_views'),
|
473
|
+
chart_title_bg_color=pulumi.get(__response__, 'chart_title_bg_color'),
|
474
|
+
chart_title_color=pulumi.get(__response__, 'chart_title_color'),
|
475
|
+
chart_title_scalar=pulumi.get(__response__, 'chart_title_scalar'),
|
476
|
+
created_epoch_millis=pulumi.get(__response__, 'created_epoch_millis'),
|
477
|
+
creator_id=pulumi.get(__response__, 'creator_id'),
|
478
|
+
customer=pulumi.get(__response__, 'customer'),
|
479
|
+
default_end_time=pulumi.get(__response__, 'default_end_time'),
|
480
|
+
default_start_time=pulumi.get(__response__, 'default_start_time'),
|
481
|
+
default_time_window=pulumi.get(__response__, 'default_time_window'),
|
482
|
+
deleted=pulumi.get(__response__, 'deleted'),
|
483
|
+
description=pulumi.get(__response__, 'description'),
|
484
|
+
display_description=pulumi.get(__response__, 'display_description'),
|
485
|
+
display_query_parameters=pulumi.get(__response__, 'display_query_parameters'),
|
486
|
+
display_section_table_of_contents=pulumi.get(__response__, 'display_section_table_of_contents'),
|
487
|
+
event_filter_type=pulumi.get(__response__, 'event_filter_type'),
|
488
|
+
event_query=pulumi.get(__response__, 'event_query'),
|
489
|
+
favorite=pulumi.get(__response__, 'favorite'),
|
490
|
+
hidden=pulumi.get(__response__, 'hidden'),
|
491
|
+
id=pulumi.get(__response__, 'id'),
|
492
|
+
name=pulumi.get(__response__, 'name'),
|
493
|
+
num_charts=pulumi.get(__response__, 'num_charts'),
|
494
|
+
num_favorites=pulumi.get(__response__, 'num_favorites'),
|
495
|
+
parameter_details=pulumi.get(__response__, 'parameter_details'),
|
496
|
+
parameters=pulumi.get(__response__, 'parameters'),
|
497
|
+
sections=pulumi.get(__response__, 'sections'),
|
498
|
+
system_owned=pulumi.get(__response__, 'system_owned'),
|
499
|
+
tags=pulumi.get(__response__, 'tags'),
|
500
|
+
updated_epoch_millis=pulumi.get(__response__, 'updated_epoch_millis'),
|
501
|
+
updater_id=pulumi.get(__response__, 'updater_id'),
|
502
|
+
url=pulumi.get(__response__, 'url'),
|
503
|
+
views_last_day=pulumi.get(__response__, 'views_last_day'),
|
504
|
+
views_last_month=pulumi.get(__response__, 'views_last_month'),
|
505
|
+
views_last_week=pulumi.get(__response__, 'views_last_week')))
|
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
10
15
|
from . import _utilities
|
11
16
|
from . import outputs
|
12
17
|
|
@@ -83,15 +88,14 @@ def get_dashboards(limit: Optional[int] = None,
|
|
83
88
|
|
84
89
|
## Example Usage
|
85
90
|
|
86
|
-
<!--Start PulumiCodeChooser -->
|
87
91
|
```python
|
88
92
|
import pulumi
|
89
93
|
import pulumi_wavefront as wavefront
|
90
94
|
|
95
|
+
# Get the information about all dashboards.
|
91
96
|
example = wavefront.get_dashboards(limit=10,
|
92
97
|
offset=0)
|
93
98
|
```
|
94
|
-
<!--End PulumiCodeChooser -->
|
95
99
|
|
96
100
|
|
97
101
|
:param int limit: Limit is the maximum number of results to be returned. Defaults to 100.
|
@@ -108,29 +112,34 @@ def get_dashboards(limit: Optional[int] = None,
|
|
108
112
|
id=pulumi.get(__ret__, 'id'),
|
109
113
|
limit=pulumi.get(__ret__, 'limit'),
|
110
114
|
offset=pulumi.get(__ret__, 'offset'))
|
111
|
-
|
112
|
-
|
113
|
-
@_utilities.lift_output_func(get_dashboards)
|
114
115
|
def get_dashboards_output(limit: Optional[pulumi.Input[Optional[int]]] = None,
|
115
116
|
offset: Optional[pulumi.Input[Optional[int]]] = None,
|
116
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDashboardsResult]:
|
117
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDashboardsResult]:
|
117
118
|
"""
|
118
119
|
Use this data source to get information about all Wavefront dashboards.
|
119
120
|
|
120
121
|
## Example Usage
|
121
122
|
|
122
|
-
<!--Start PulumiCodeChooser -->
|
123
123
|
```python
|
124
124
|
import pulumi
|
125
125
|
import pulumi_wavefront as wavefront
|
126
126
|
|
127
|
+
# Get the information about all dashboards.
|
127
128
|
example = wavefront.get_dashboards(limit=10,
|
128
129
|
offset=0)
|
129
130
|
```
|
130
|
-
<!--End PulumiCodeChooser -->
|
131
131
|
|
132
132
|
|
133
133
|
:param int limit: Limit is the maximum number of results to be returned. Defaults to 100.
|
134
134
|
:param int offset: Offset is the offset from the first result to be returned. Defaults to 0.
|
135
135
|
"""
|
136
|
-
|
136
|
+
__args__ = dict()
|
137
|
+
__args__['limit'] = limit
|
138
|
+
__args__['offset'] = offset
|
139
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
140
|
+
__ret__ = pulumi.runtime.invoke_output('wavefront:index/getDashboards:getDashboards', __args__, opts=opts, typ=GetDashboardsResult)
|
141
|
+
return __ret__.apply(lambda __response__: GetDashboardsResult(
|
142
|
+
dashboards=pulumi.get(__response__, 'dashboards'),
|
143
|
+
id=pulumi.get(__response__, 'id'),
|
144
|
+
limit=pulumi.get(__response__, 'limit'),
|
145
|
+
offset=pulumi.get(__response__, 'offset')))
|
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
10
15
|
from . import _utilities
|
11
16
|
|
12
17
|
__all__ = [
|
@@ -63,14 +68,13 @@ def get_default_user_group(opts: Optional[pulumi.InvokeOptions] = None) -> Await
|
|
63
68
|
|
64
69
|
## Example Usage
|
65
70
|
|
66
|
-
<!--Start PulumiCodeChooser -->
|
67
71
|
```python
|
68
72
|
import pulumi
|
69
73
|
import pulumi_wavefront as wavefront
|
70
74
|
|
75
|
+
# Get the default user group "Everyone"
|
71
76
|
everyone_group = wavefront.get_default_user_group()
|
72
77
|
```
|
73
|
-
<!--End PulumiCodeChooser -->
|
74
78
|
"""
|
75
79
|
__args__ = dict()
|
76
80
|
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
@@ -79,22 +83,23 @@ def get_default_user_group(opts: Optional[pulumi.InvokeOptions] = None) -> Await
|
|
79
83
|
return AwaitableGetDefaultUserGroupResult(
|
80
84
|
group_id=pulumi.get(__ret__, 'group_id'),
|
81
85
|
id=pulumi.get(__ret__, 'id'))
|
82
|
-
|
83
|
-
|
84
|
-
@_utilities.lift_output_func(get_default_user_group)
|
85
|
-
def get_default_user_group_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDefaultUserGroupResult]:
|
86
|
+
def get_default_user_group_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDefaultUserGroupResult]:
|
86
87
|
"""
|
87
88
|
Use this data source to get the Group ID of the `Everyone` group in Wavefront.
|
88
89
|
|
89
90
|
## Example Usage
|
90
91
|
|
91
|
-
<!--Start PulumiCodeChooser -->
|
92
92
|
```python
|
93
93
|
import pulumi
|
94
94
|
import pulumi_wavefront as wavefront
|
95
95
|
|
96
|
+
# Get the default user group "Everyone"
|
96
97
|
everyone_group = wavefront.get_default_user_group()
|
97
98
|
```
|
98
|
-
<!--End PulumiCodeChooser -->
|
99
99
|
"""
|
100
|
-
|
100
|
+
__args__ = dict()
|
101
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
102
|
+
__ret__ = pulumi.runtime.invoke_output('wavefront:index/getDefaultUserGroup:getDefaultUserGroup', __args__, opts=opts, typ=GetDefaultUserGroupResult)
|
103
|
+
return __ret__.apply(lambda __response__: GetDefaultUserGroupResult(
|
104
|
+
group_id=pulumi.get(__response__, 'group_id'),
|
105
|
+
id=pulumi.get(__response__, 'id')))
|
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
10
15
|
from . import _utilities
|
11
16
|
|
12
17
|
__all__ = [
|
@@ -327,14 +332,13 @@ def get_derived_metric(id: Optional[str] = None,
|
|
327
332
|
|
328
333
|
## Example Usage
|
329
334
|
|
330
|
-
<!--Start PulumiCodeChooser -->
|
331
335
|
```python
|
332
336
|
import pulumi
|
333
337
|
import pulumi_wavefront as wavefront
|
334
338
|
|
339
|
+
#Get the information about a derived metric.
|
335
340
|
example = wavefront.get_derived_metric(id="derived_metric_id")
|
336
341
|
```
|
337
|
-
<!--End PulumiCodeChooser -->
|
338
342
|
|
339
343
|
|
340
344
|
:param str id: The ID associated with the derived metric data to be fetched.
|
@@ -369,26 +373,50 @@ def get_derived_metric(id: Optional[str] = None,
|
|
369
373
|
tags=pulumi.get(__ret__, 'tags'),
|
370
374
|
update_user_id=pulumi.get(__ret__, 'update_user_id'),
|
371
375
|
updated_epoch_millis=pulumi.get(__ret__, 'updated_epoch_millis'))
|
372
|
-
|
373
|
-
|
374
|
-
@_utilities.lift_output_func(get_derived_metric)
|
375
376
|
def get_derived_metric_output(id: Optional[pulumi.Input[str]] = None,
|
376
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDerivedMetricResult]:
|
377
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDerivedMetricResult]:
|
377
378
|
"""
|
378
379
|
Use this data source to get information about a certain Wavefront derived metric by its ID.
|
379
380
|
|
380
381
|
## Example Usage
|
381
382
|
|
382
|
-
<!--Start PulumiCodeChooser -->
|
383
383
|
```python
|
384
384
|
import pulumi
|
385
385
|
import pulumi_wavefront as wavefront
|
386
386
|
|
387
|
+
#Get the information about a derived metric.
|
387
388
|
example = wavefront.get_derived_metric(id="derived_metric_id")
|
388
389
|
```
|
389
|
-
<!--End PulumiCodeChooser -->
|
390
390
|
|
391
391
|
|
392
392
|
:param str id: The ID associated with the derived metric data to be fetched.
|
393
393
|
"""
|
394
|
-
|
394
|
+
__args__ = dict()
|
395
|
+
__args__['id'] = id
|
396
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
397
|
+
__ret__ = pulumi.runtime.invoke_output('wavefront:index/getDerivedMetric:getDerivedMetric', __args__, opts=opts, typ=GetDerivedMetricResult)
|
398
|
+
return __ret__.apply(lambda __response__: GetDerivedMetricResult(
|
399
|
+
additional_information=pulumi.get(__response__, 'additional_information'),
|
400
|
+
create_user_id=pulumi.get(__response__, 'create_user_id'),
|
401
|
+
created_epoch_millis=pulumi.get(__response__, 'created_epoch_millis'),
|
402
|
+
deleted=pulumi.get(__response__, 'deleted'),
|
403
|
+
hosts_useds=pulumi.get(__response__, 'hosts_useds'),
|
404
|
+
id=pulumi.get(__response__, 'id'),
|
405
|
+
in_trash=pulumi.get(__response__, 'in_trash'),
|
406
|
+
include_obsolete_metrics=pulumi.get(__response__, 'include_obsolete_metrics'),
|
407
|
+
last_error_message=pulumi.get(__response__, 'last_error_message'),
|
408
|
+
last_failed_time=pulumi.get(__response__, 'last_failed_time'),
|
409
|
+
last_processed_millis=pulumi.get(__response__, 'last_processed_millis'),
|
410
|
+
last_query_time=pulumi.get(__response__, 'last_query_time'),
|
411
|
+
metrics_useds=pulumi.get(__response__, 'metrics_useds'),
|
412
|
+
minutes=pulumi.get(__response__, 'minutes'),
|
413
|
+
name=pulumi.get(__response__, 'name'),
|
414
|
+
points_scanned_at_last_query=pulumi.get(__response__, 'points_scanned_at_last_query'),
|
415
|
+
process_rate_minutes=pulumi.get(__response__, 'process_rate_minutes'),
|
416
|
+
query=pulumi.get(__response__, 'query'),
|
417
|
+
query_failing=pulumi.get(__response__, 'query_failing'),
|
418
|
+
query_qb_enabled=pulumi.get(__response__, 'query_qb_enabled'),
|
419
|
+
statuses=pulumi.get(__response__, 'statuses'),
|
420
|
+
tags=pulumi.get(__response__, 'tags'),
|
421
|
+
update_user_id=pulumi.get(__response__, 'update_user_id'),
|
422
|
+
updated_epoch_millis=pulumi.get(__response__, 'updated_epoch_millis')))
|
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
10
15
|
from . import _utilities
|
11
16
|
from . import outputs
|
12
17
|
|
@@ -83,15 +88,14 @@ def get_derived_metrics(limit: Optional[int] = None,
|
|
83
88
|
|
84
89
|
## Example Usage
|
85
90
|
|
86
|
-
<!--Start PulumiCodeChooser -->
|
87
91
|
```python
|
88
92
|
import pulumi
|
89
93
|
import pulumi_wavefront as wavefront
|
90
94
|
|
95
|
+
# Get the information about all derived metrics.
|
91
96
|
example = wavefront.get_derived_metrics(limit=10,
|
92
97
|
offset=0)
|
93
98
|
```
|
94
|
-
<!--End PulumiCodeChooser -->
|
95
99
|
|
96
100
|
|
97
101
|
:param int limit: Limit is the maximum number of results to be returned. Defaults to 100.
|
@@ -108,29 +112,34 @@ def get_derived_metrics(limit: Optional[int] = None,
|
|
108
112
|
id=pulumi.get(__ret__, 'id'),
|
109
113
|
limit=pulumi.get(__ret__, 'limit'),
|
110
114
|
offset=pulumi.get(__ret__, 'offset'))
|
111
|
-
|
112
|
-
|
113
|
-
@_utilities.lift_output_func(get_derived_metrics)
|
114
115
|
def get_derived_metrics_output(limit: Optional[pulumi.Input[Optional[int]]] = None,
|
115
116
|
offset: Optional[pulumi.Input[Optional[int]]] = None,
|
116
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetDerivedMetricsResult]:
|
117
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetDerivedMetricsResult]:
|
117
118
|
"""
|
118
119
|
Use this data source to get information about all Wavefront derived metrics.
|
119
120
|
|
120
121
|
## Example Usage
|
121
122
|
|
122
|
-
<!--Start PulumiCodeChooser -->
|
123
123
|
```python
|
124
124
|
import pulumi
|
125
125
|
import pulumi_wavefront as wavefront
|
126
126
|
|
127
|
+
# Get the information about all derived metrics.
|
127
128
|
example = wavefront.get_derived_metrics(limit=10,
|
128
129
|
offset=0)
|
129
130
|
```
|
130
|
-
<!--End PulumiCodeChooser -->
|
131
131
|
|
132
132
|
|
133
133
|
:param int limit: Limit is the maximum number of results to be returned. Defaults to 100.
|
134
134
|
:param int offset: Offset is the offset from the first result to be returned. Defaults to 0.
|
135
135
|
"""
|
136
|
-
|
136
|
+
__args__ = dict()
|
137
|
+
__args__['limit'] = limit
|
138
|
+
__args__['offset'] = offset
|
139
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
140
|
+
__ret__ = pulumi.runtime.invoke_output('wavefront:index/getDerivedMetrics:getDerivedMetrics', __args__, opts=opts, typ=GetDerivedMetricsResult)
|
141
|
+
return __ret__.apply(lambda __response__: GetDerivedMetricsResult(
|
142
|
+
derived_metrics=pulumi.get(__response__, 'derived_metrics'),
|
143
|
+
id=pulumi.get(__response__, 'id'),
|
144
|
+
limit=pulumi.get(__response__, 'limit'),
|
145
|
+
offset=pulumi.get(__response__, 'offset')))
|
pulumi_wavefront/get_event.py
CHANGED
@@ -4,9 +4,14 @@
|
|
4
4
|
|
5
5
|
import copy
|
6
6
|
import warnings
|
7
|
+
import sys
|
7
8
|
import pulumi
|
8
9
|
import pulumi.runtime
|
9
10
|
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
11
|
+
if sys.version_info >= (3, 11):
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
13
|
+
else:
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
10
15
|
from . import _utilities
|
11
16
|
|
12
17
|
__all__ = [
|
@@ -156,14 +161,13 @@ def get_event(id: Optional[str] = None,
|
|
156
161
|
|
157
162
|
## Example Usage
|
158
163
|
|
159
|
-
<!--Start PulumiCodeChooser -->
|
160
164
|
```python
|
161
165
|
import pulumi
|
162
166
|
import pulumi_wavefront as wavefront
|
163
167
|
|
168
|
+
# Get the information about a Wavefront event by its ID.
|
164
169
|
example = wavefront.get_event(id="sample-event-id")
|
165
170
|
```
|
166
|
-
<!--End PulumiCodeChooser -->
|
167
171
|
|
168
172
|
|
169
173
|
:param str id: The ID associated with the event data to be fetched.
|
@@ -184,26 +188,36 @@ def get_event(id: Optional[str] = None,
|
|
184
188
|
start_time=pulumi.get(__ret__, 'start_time'),
|
185
189
|
tags=pulumi.get(__ret__, 'tags'),
|
186
190
|
type=pulumi.get(__ret__, 'type'))
|
187
|
-
|
188
|
-
|
189
|
-
@_utilities.lift_output_func(get_event)
|
190
191
|
def get_event_output(id: Optional[pulumi.Input[str]] = None,
|
191
|
-
opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetEventResult]:
|
192
|
+
opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetEventResult]:
|
192
193
|
"""
|
193
194
|
Use this data source to get information about a certain Wavefront event.
|
194
195
|
|
195
196
|
## Example Usage
|
196
197
|
|
197
|
-
<!--Start PulumiCodeChooser -->
|
198
198
|
```python
|
199
199
|
import pulumi
|
200
200
|
import pulumi_wavefront as wavefront
|
201
201
|
|
202
|
+
# Get the information about a Wavefront event by its ID.
|
202
203
|
example = wavefront.get_event(id="sample-event-id")
|
203
204
|
```
|
204
|
-
<!--End PulumiCodeChooser -->
|
205
205
|
|
206
206
|
|
207
207
|
:param str id: The ID associated with the event data to be fetched.
|
208
208
|
"""
|
209
|
-
|
209
|
+
__args__ = dict()
|
210
|
+
__args__['id'] = id
|
211
|
+
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
|
212
|
+
__ret__ = pulumi.runtime.invoke_output('wavefront:index/getEvent:getEvent', __args__, opts=opts, typ=GetEventResult)
|
213
|
+
return __ret__.apply(lambda __response__: GetEventResult(
|
214
|
+
annotations=pulumi.get(__response__, 'annotations'),
|
215
|
+
details=pulumi.get(__response__, 'details'),
|
216
|
+
endtime_key=pulumi.get(__response__, 'endtime_key'),
|
217
|
+
id=pulumi.get(__response__, 'id'),
|
218
|
+
is_ephemeral=pulumi.get(__response__, 'is_ephemeral'),
|
219
|
+
name=pulumi.get(__response__, 'name'),
|
220
|
+
severity=pulumi.get(__response__, 'severity'),
|
221
|
+
start_time=pulumi.get(__response__, 'start_time'),
|
222
|
+
tags=pulumi.get(__response__, 'tags'),
|
223
|
+
type=pulumi.get(__response__, 'type')))
|