pulumi-newrelic 5.18.0a1706747659__py3-none-any.whl → 5.18.0a1706812334__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.
@@ -8,7 +8,6 @@ import importlib.util
8
8
  import inspect
9
9
  import json
10
10
  import os
11
- import pkg_resources
12
11
  import sys
13
12
  import typing
14
13
 
@@ -19,6 +18,11 @@ from pulumi.runtime.sync_await import _sync_await
19
18
  from semver import VersionInfo as SemverVersion
20
19
  from parver import Version as PEP440Version
21
20
 
21
+ if sys.version_info >= (3, 8):
22
+ from importlib import metadata
23
+ else:
24
+ import importlib_metadata as metadata
25
+
22
26
 
23
27
  def get_env(*args):
24
28
  for v in args:
@@ -72,7 +76,7 @@ def _get_semver_version():
72
76
  # to receive a valid semver string when receiving requests from the language host, so it's our
73
77
  # responsibility as the library to convert our own PEP440 version into a valid semver string.
74
78
 
75
- pep440_version_string = pkg_resources.require(root_package)[0].version
79
+ pep440_version_string = metadata.version(root_package)
76
80
  pep440_version = PEP440Version.parse(pep440_version_string)
77
81
  (major, minor, patch) = pep440_version.release
78
82
  prerelease = None
@@ -20,6 +20,11 @@ class EventEventArgs:
20
20
  attributes: pulumi.Input[Sequence[pulumi.Input['EventEventAttributeArgs']]],
21
21
  type: pulumi.Input[str],
22
22
  timestamp: Optional[pulumi.Input[int]] = None):
23
+ """
24
+ :param pulumi.Input[Sequence[pulumi.Input['EventEventAttributeArgs']]] attributes: An attribute to include in your event payload. Multiple attribute blocks can be defined for an event.
25
+ :param pulumi.Input[str] type: The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
26
+ :param pulumi.Input[int] timestamp: Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
27
+ """
23
28
  pulumi.set(__self__, "attributes", attributes)
24
29
  pulumi.set(__self__, "type", type)
25
30
  if timestamp is not None:
@@ -28,6 +33,9 @@ class EventEventArgs:
28
33
  @property
29
34
  @pulumi.getter
30
35
  def attributes(self) -> pulumi.Input[Sequence[pulumi.Input['EventEventAttributeArgs']]]:
36
+ """
37
+ An attribute to include in your event payload. Multiple attribute blocks can be defined for an event.
38
+ """
31
39
  return pulumi.get(self, "attributes")
32
40
 
33
41
  @attributes.setter
@@ -37,6 +45,9 @@ class EventEventArgs:
37
45
  @property
38
46
  @pulumi.getter
39
47
  def type(self) -> pulumi.Input[str]:
48
+ """
49
+ The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
50
+ """
40
51
  return pulumi.get(self, "type")
41
52
 
42
53
  @type.setter
@@ -46,6 +57,9 @@ class EventEventArgs:
46
57
  @property
47
58
  @pulumi.getter
48
59
  def timestamp(self) -> Optional[pulumi.Input[int]]:
60
+ """
61
+ Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
62
+ """
49
63
  return pulumi.get(self, "timestamp")
50
64
 
51
65
  @timestamp.setter
@@ -59,6 +73,11 @@ class EventEventAttributeArgs:
59
73
  key: pulumi.Input[str],
60
74
  value: pulumi.Input[str],
61
75
  type: Optional[pulumi.Input[str]] = None):
76
+ """
77
+ :param pulumi.Input[str] key: The name of the attribute.
78
+ :param pulumi.Input[str] value: The value of the attribute.
79
+ :param pulumi.Input[str] type: Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
80
+ """
62
81
  pulumi.set(__self__, "key", key)
63
82
  pulumi.set(__self__, "value", value)
64
83
  if type is not None:
@@ -67,6 +86,9 @@ class EventEventAttributeArgs:
67
86
  @property
68
87
  @pulumi.getter
69
88
  def key(self) -> pulumi.Input[str]:
89
+ """
90
+ The name of the attribute.
91
+ """
70
92
  return pulumi.get(self, "key")
71
93
 
72
94
  @key.setter
@@ -76,6 +98,9 @@ class EventEventAttributeArgs:
76
98
  @property
77
99
  @pulumi.getter
78
100
  def value(self) -> pulumi.Input[str]:
101
+ """
102
+ The value of the attribute.
103
+ """
79
104
  return pulumi.get(self, "value")
80
105
 
81
106
  @value.setter
@@ -85,6 +110,9 @@ class EventEventAttributeArgs:
85
110
  @property
86
111
  @pulumi.getter
87
112
  def type(self) -> Optional[pulumi.Input[str]]:
113
+ """
114
+ Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
115
+ """
88
116
  return pulumi.get(self, "type")
89
117
 
90
118
  @type.setter
@@ -21,6 +21,11 @@ class EventEvent(dict):
21
21
  attributes: Sequence['outputs.EventEventAttribute'],
22
22
  type: str,
23
23
  timestamp: Optional[int] = None):
24
+ """
25
+ :param Sequence['EventEventAttributeArgs'] attributes: An attribute to include in your event payload. Multiple attribute blocks can be defined for an event.
26
+ :param str type: The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
27
+ :param int timestamp: Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
28
+ """
24
29
  pulumi.set(__self__, "attributes", attributes)
25
30
  pulumi.set(__self__, "type", type)
26
31
  if timestamp is not None:
@@ -29,16 +34,25 @@ class EventEvent(dict):
29
34
  @property
30
35
  @pulumi.getter
31
36
  def attributes(self) -> Sequence['outputs.EventEventAttribute']:
37
+ """
38
+ An attribute to include in your event payload. Multiple attribute blocks can be defined for an event.
39
+ """
32
40
  return pulumi.get(self, "attributes")
33
41
 
34
42
  @property
35
43
  @pulumi.getter
36
44
  def type(self) -> str:
45
+ """
46
+ The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
47
+ """
37
48
  return pulumi.get(self, "type")
38
49
 
39
50
  @property
40
51
  @pulumi.getter
41
52
  def timestamp(self) -> Optional[int]:
53
+ """
54
+ Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
55
+ """
42
56
  return pulumi.get(self, "timestamp")
43
57
 
44
58
 
@@ -48,6 +62,11 @@ class EventEventAttribute(dict):
48
62
  key: str,
49
63
  value: str,
50
64
  type: Optional[str] = None):
65
+ """
66
+ :param str key: The name of the attribute.
67
+ :param str value: The value of the attribute.
68
+ :param str type: Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
69
+ """
51
70
  pulumi.set(__self__, "key", key)
52
71
  pulumi.set(__self__, "value", value)
53
72
  if type is not None:
@@ -56,16 +75,25 @@ class EventEventAttribute(dict):
56
75
  @property
57
76
  @pulumi.getter
58
77
  def key(self) -> str:
78
+ """
79
+ The name of the attribute.
80
+ """
59
81
  return pulumi.get(self, "key")
60
82
 
61
83
  @property
62
84
  @pulumi.getter
63
85
  def value(self) -> str:
86
+ """
87
+ The value of the attribute.
88
+ """
64
89
  return pulumi.get(self, "value")
65
90
 
66
91
  @property
67
92
  @pulumi.getter
68
93
  def type(self) -> Optional[str]:
94
+ """
95
+ Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
96
+ """
69
97
  return pulumi.get(self, "type")
70
98
 
71
99