@pulumi/signalfx 7.0.0 → 7.0.2
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.
- package/alertMutingRule.d.ts +37 -19
- package/alertMutingRule.js +22 -4
- package/alertMutingRule.js.map +1 -1
- package/aws/externalIntegration.d.ts +23 -11
- package/aws/externalIntegration.js +16 -4
- package/aws/externalIntegration.js.map +1 -1
- package/aws/integration.d.ts +141 -72
- package/aws/integration.js +41 -4
- package/aws/integration.js.map +1 -1
- package/aws/tokenIntegration.d.ts +18 -7
- package/aws/tokenIntegration.js +13 -2
- package/aws/tokenIntegration.js.map +1 -1
- package/azure/integration.d.ts +101 -45
- package/azure/integration.js +29 -3
- package/azure/integration.js.map +1 -1
- package/config/vars.d.ts +3 -3
- package/dashboard.d.ts +62 -62
- package/dashboardGroup.d.ts +62 -27
- package/dashboardGroup.js +41 -6
- package/dashboardGroup.js.map +1 -1
- package/dataLink.d.ts +52 -18
- package/dataLink.js +31 -3
- package/dataLink.js.map +1 -1
- package/detector.d.ts +133 -70
- package/detector.js +70 -15
- package/detector.js.map +1 -1
- package/eventFeedChart.d.ts +38 -20
- package/eventFeedChart.js +18 -0
- package/eventFeedChart.js.map +1 -1
- package/gcp/integration.d.ts +66 -35
- package/gcp/integration.js +24 -5
- package/gcp/integration.js.map +1 -1
- package/getDimensionValues.d.ts +18 -2
- package/getDimensionValues.js +18 -2
- package/getDimensionValues.js.map +1 -1
- package/heatmapChart.d.ts +80 -46
- package/heatmapChart.js +36 -2
- package/heatmapChart.js.map +1 -1
- package/jira/integration.d.ts +51 -24
- package/jira/integration.js +24 -3
- package/jira/integration.js.map +1 -1
- package/listChart.d.ts +111 -64
- package/listChart.js +46 -2
- package/listChart.js.map +1 -1
- package/log/timeline.d.ts +44 -24
- package/log/timeline.js +21 -1
- package/log/timeline.js.map +1 -1
- package/log/view.d.ts +54 -31
- package/log/view.js +25 -2
- package/log/view.js.map +1 -1
- package/metricRuleset.d.ts +33 -11
- package/metricRuleset.js +24 -2
- package/metricRuleset.js.map +1 -1
- package/opsgenie/integration.d.ts +28 -15
- package/opsgenie/integration.js +16 -3
- package/opsgenie/integration.js.map +1 -1
- package/orgToken.d.ts +50 -39
- package/orgToken.js +32 -3
- package/orgToken.js.map +1 -1
- package/package.json +2 -3
- package/package.json.bak +1 -2
- package/pagerduty/getIntegration.d.ts +22 -14
- package/pagerduty/getIntegration.js +22 -2
- package/pagerduty/getIntegration.js.map +1 -1
- package/pagerduty/integration.d.ts +23 -12
- package/pagerduty/integration.js +14 -3
- package/pagerduty/integration.js.map +1 -1
- package/provider.d.ts +6 -6
- package/servicenow/integration.d.ts +46 -17
- package/servicenow/integration.js +19 -2
- package/servicenow/integration.js.map +1 -1
- package/singleValueChart.d.ts +74 -39
- package/singleValueChart.js +36 -1
- package/singleValueChart.js.map +1 -1
- package/slack/integration.d.ts +24 -12
- package/slack/integration.js +15 -3
- package/slack/integration.js.map +1 -1
- package/tableChart.d.ts +32 -16
- package/tableChart.js +18 -2
- package/tableChart.js.map +1 -1
- package/team.d.ts +54 -33
- package/team.js +25 -4
- package/team.js.map +1 -1
- package/textChart.d.ts +27 -12
- package/textChart.js +16 -1
- package/textChart.js.map +1 -1
- package/timeChart.d.ts +148 -94
- package/timeChart.js +68 -2
- package/timeChart.js.map +1 -1
- package/types/input.d.ts +0 -577
- package/types/output.d.ts +0 -577
- package/utilities.d.ts +4 -0
- package/utilities.js +33 -1
- package/utilities.js.map +1 -1
- package/victorops/integration.d.ts +24 -12
- package/victorops/integration.js +15 -3
- package/victorops/integration.js.map +1 -1
- package/webhookIntegration.d.ts +31 -15
- package/webhookIntegration.js +19 -3
- package/webhookIntegration.js.map +1 -1
- package/scripts/install-pulumi-plugin.js +0 -21
package/pagerduty/integration.js
CHANGED
|
@@ -6,11 +6,11 @@ exports.Integration = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Splunk Observability Cloud PagerDuty integrations.
|
|
10
10
|
*
|
|
11
|
-
* > **NOTE** When managing integrations, use a session token of an administrator to authenticate the
|
|
11
|
+
* > **NOTE** When managing integrations, use a session token of an administrator to authenticate the Splunk Observability Cloud provider. See [Operations that require a session token for an administrator](https://dev.splunk.com/observability/docs/administration/authtokens#Operations-that-require-a-session-token-for-an-administrator). Otherwise you'll receive a 4xx error.
|
|
12
12
|
*
|
|
13
|
-
* ## Example
|
|
13
|
+
* ## Example
|
|
14
14
|
*
|
|
15
15
|
* ```typescript
|
|
16
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -21,6 +21,17 @@ const utilities = require("../utilities");
|
|
|
21
21
|
* enabled: true,
|
|
22
22
|
* });
|
|
23
23
|
* ```
|
|
24
|
+
* ## Arguments
|
|
25
|
+
*
|
|
26
|
+
* * `name` - (Required) Name of the integration.
|
|
27
|
+
* * `enabled` - (Required) Whether the integration is enabled.
|
|
28
|
+
* * `apiKey` - (Required) PagerDuty API key.
|
|
29
|
+
*
|
|
30
|
+
* ## Attributes
|
|
31
|
+
*
|
|
32
|
+
* In a addition to all arguments above, the following attributes are exported:
|
|
33
|
+
*
|
|
34
|
+
* * `id` - The ID of the integration.
|
|
24
35
|
*/
|
|
25
36
|
class Integration extends pulumi.CustomResource {
|
|
26
37
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../pagerduty/integration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../pagerduty/integration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,WAAY,SAAQ,MAA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aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;YACjF,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC3D,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AAtEL,kCAuEC;AAzDG,gBAAgB;AACO,wBAAY,GAAG,4CAA4C,CAAC"}
|
package/provider.d.ts
CHANGED
|
@@ -12,15 +12,15 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
12
12
|
*/
|
|
13
13
|
static isInstance(obj: any): obj is Provider;
|
|
14
14
|
/**
|
|
15
|
-
* API URL for your
|
|
15
|
+
* API URL for your Splunk Observability Cloud org, may include a realm
|
|
16
16
|
*/
|
|
17
17
|
readonly apiUrl: pulumi.Output<string | undefined>;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Splunk Observability Cloud auth token
|
|
20
20
|
*/
|
|
21
21
|
readonly authToken: pulumi.Output<string | undefined>;
|
|
22
22
|
/**
|
|
23
|
-
* Application URL for your
|
|
23
|
+
* Application URL for your Splunk Observability Cloud org, often customized for organizations using SSO
|
|
24
24
|
*/
|
|
25
25
|
readonly customAppUrl: pulumi.Output<string | undefined>;
|
|
26
26
|
/**
|
|
@@ -37,15 +37,15 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
37
37
|
*/
|
|
38
38
|
export interface ProviderArgs {
|
|
39
39
|
/**
|
|
40
|
-
* API URL for your
|
|
40
|
+
* API URL for your Splunk Observability Cloud org, may include a realm
|
|
41
41
|
*/
|
|
42
42
|
apiUrl?: pulumi.Input<string>;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Splunk Observability Cloud auth token
|
|
45
45
|
*/
|
|
46
46
|
authToken?: pulumi.Input<string>;
|
|
47
47
|
/**
|
|
48
|
-
* Application URL for your
|
|
48
|
+
* Application URL for your Splunk Observability Cloud org, often customized for organizations using SSO
|
|
49
49
|
*/
|
|
50
50
|
customAppUrl?: pulumi.Input<string>;
|
|
51
51
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* ServiceNow integrations. For help with this integration see [Integration with ServiceNow](https://docs.splunk.com/observability/en/admin/notif-services/servicenow.html).
|
|
4
4
|
*
|
|
5
5
|
* > **NOTE** When managing integrations, use a session token of an administrator to authenticate the Observability Cloud provider. See [Operations that require a session token for an administrator](https://dev.splunk.com/observability/docs/administration/authtokens#Operations-that-require-a-session-token-for-an-administrator). Otherwise you'll receive a 4xx error.
|
|
6
6
|
*
|
|
7
|
-
* ## Example
|
|
7
|
+
* ## Example
|
|
8
8
|
*
|
|
9
9
|
* ```typescript
|
|
10
10
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -20,6 +20,23 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
20
20
|
* username: "thisis_me",
|
|
21
21
|
* });
|
|
22
22
|
* ```
|
|
23
|
+
*
|
|
24
|
+
* ## Arguments
|
|
25
|
+
*
|
|
26
|
+
* * `name` - (Required) Name of the integration.
|
|
27
|
+
* * `enabled` - (Required) Whether the integration is enabled.
|
|
28
|
+
* * `username` - (Required) User name used to authenticate the ServiceNow integration.
|
|
29
|
+
* * `password` - (Required) Password used to authenticate the ServiceNow integration.
|
|
30
|
+
* * `instanceName` - (Required) Name of the ServiceNow instance, for example `myinst.service-now.com`.
|
|
31
|
+
* * `issueType` - (Required) The type of issue in standard ITIL terminology. The allowed values are `Incident` and `Problem`.
|
|
32
|
+
* * `alertTriggeredPayloadTemplate` - (Optional) A template that Observability Cloud uses to create the ServiceNow POST JSON payloads when an alert sends a notification to ServiceNow. Use this optional field to send the values of Observability Cloud alert properties to specific fields in ServiceNow. See [API reference](https://dev.splunk.com/observability/reference/api/integrations/latest) for details.
|
|
33
|
+
* * `alertResolvedPayloadTemplate` - (Optional) A template that Observability Cloud uses to create the ServiceNow PUT JSON payloads when an alert is cleared in ServiceNow. Use this optional field to send the values of Observability Cloud alert properties to specific fields in ServiceNow. See [API reference](https://dev.splunk.com/observability/reference/api/integrations/latest) for details.
|
|
34
|
+
*
|
|
35
|
+
* ## Attributes
|
|
36
|
+
*
|
|
37
|
+
* In a addition to all arguments above, the following attributes are exported:
|
|
38
|
+
*
|
|
39
|
+
* * `id` - The ID of the integration.
|
|
23
40
|
*/
|
|
24
41
|
export declare class Integration extends pulumi.CustomResource {
|
|
25
42
|
/**
|
|
@@ -38,19 +55,23 @@ export declare class Integration extends pulumi.CustomResource {
|
|
|
38
55
|
*/
|
|
39
56
|
static isInstance(obj: any): obj is Integration;
|
|
40
57
|
/**
|
|
41
|
-
* A template that Observability Cloud uses to create the ServiceNow PUT JSON payloads when an alert is cleared in
|
|
58
|
+
* A template that Observability Cloud uses to create the ServiceNow PUT JSON payloads when an alert is cleared in
|
|
59
|
+
* ServiceNow. Use this optional field to send the values of Observability Cloud alert properties to specific fields in
|
|
60
|
+
* ServiceNow. See API reference for details.
|
|
42
61
|
*/
|
|
43
62
|
readonly alertResolvedPayloadTemplate: pulumi.Output<string | undefined>;
|
|
44
63
|
/**
|
|
45
|
-
* A template that Observability Cloud uses to create the ServiceNow POST JSON payloads when an alert sends a notification
|
|
64
|
+
* A template that Observability Cloud uses to create the ServiceNow POST JSON payloads when an alert sends a notification
|
|
65
|
+
* to ServiceNow. Use this optional field to send the values of Observability Cloud alert properties to specific fields in
|
|
66
|
+
* ServiceNow. See API reference for details.
|
|
46
67
|
*/
|
|
47
68
|
readonly alertTriggeredPayloadTemplate: pulumi.Output<string | undefined>;
|
|
48
69
|
/**
|
|
49
|
-
* Whether the integration is enabled
|
|
70
|
+
* Whether the integration is enabled
|
|
50
71
|
*/
|
|
51
72
|
readonly enabled: pulumi.Output<boolean>;
|
|
52
73
|
/**
|
|
53
|
-
* Name of the ServiceNow instance, for example `
|
|
74
|
+
* Name of the ServiceNow instance, for example `myInstances.service-now.com`.
|
|
54
75
|
*/
|
|
55
76
|
readonly instanceName: pulumi.Output<string>;
|
|
56
77
|
/**
|
|
@@ -58,7 +79,7 @@ export declare class Integration extends pulumi.CustomResource {
|
|
|
58
79
|
*/
|
|
59
80
|
readonly issueType: pulumi.Output<string>;
|
|
60
81
|
/**
|
|
61
|
-
* Name of the integration
|
|
82
|
+
* Name of the integration
|
|
62
83
|
*/
|
|
63
84
|
readonly name: pulumi.Output<string>;
|
|
64
85
|
/**
|
|
@@ -83,19 +104,23 @@ export declare class Integration extends pulumi.CustomResource {
|
|
|
83
104
|
*/
|
|
84
105
|
export interface IntegrationState {
|
|
85
106
|
/**
|
|
86
|
-
* A template that Observability Cloud uses to create the ServiceNow PUT JSON payloads when an alert is cleared in
|
|
107
|
+
* A template that Observability Cloud uses to create the ServiceNow PUT JSON payloads when an alert is cleared in
|
|
108
|
+
* ServiceNow. Use this optional field to send the values of Observability Cloud alert properties to specific fields in
|
|
109
|
+
* ServiceNow. See API reference for details.
|
|
87
110
|
*/
|
|
88
111
|
alertResolvedPayloadTemplate?: pulumi.Input<string>;
|
|
89
112
|
/**
|
|
90
|
-
* A template that Observability Cloud uses to create the ServiceNow POST JSON payloads when an alert sends a notification
|
|
113
|
+
* A template that Observability Cloud uses to create the ServiceNow POST JSON payloads when an alert sends a notification
|
|
114
|
+
* to ServiceNow. Use this optional field to send the values of Observability Cloud alert properties to specific fields in
|
|
115
|
+
* ServiceNow. See API reference for details.
|
|
91
116
|
*/
|
|
92
117
|
alertTriggeredPayloadTemplate?: pulumi.Input<string>;
|
|
93
118
|
/**
|
|
94
|
-
* Whether the integration is enabled
|
|
119
|
+
* Whether the integration is enabled
|
|
95
120
|
*/
|
|
96
121
|
enabled?: pulumi.Input<boolean>;
|
|
97
122
|
/**
|
|
98
|
-
* Name of the ServiceNow instance, for example `
|
|
123
|
+
* Name of the ServiceNow instance, for example `myInstances.service-now.com`.
|
|
99
124
|
*/
|
|
100
125
|
instanceName?: pulumi.Input<string>;
|
|
101
126
|
/**
|
|
@@ -103,7 +128,7 @@ export interface IntegrationState {
|
|
|
103
128
|
*/
|
|
104
129
|
issueType?: pulumi.Input<string>;
|
|
105
130
|
/**
|
|
106
|
-
* Name of the integration
|
|
131
|
+
* Name of the integration
|
|
107
132
|
*/
|
|
108
133
|
name?: pulumi.Input<string>;
|
|
109
134
|
/**
|
|
@@ -120,19 +145,23 @@ export interface IntegrationState {
|
|
|
120
145
|
*/
|
|
121
146
|
export interface IntegrationArgs {
|
|
122
147
|
/**
|
|
123
|
-
* A template that Observability Cloud uses to create the ServiceNow PUT JSON payloads when an alert is cleared in
|
|
148
|
+
* A template that Observability Cloud uses to create the ServiceNow PUT JSON payloads when an alert is cleared in
|
|
149
|
+
* ServiceNow. Use this optional field to send the values of Observability Cloud alert properties to specific fields in
|
|
150
|
+
* ServiceNow. See API reference for details.
|
|
124
151
|
*/
|
|
125
152
|
alertResolvedPayloadTemplate?: pulumi.Input<string>;
|
|
126
153
|
/**
|
|
127
|
-
* A template that Observability Cloud uses to create the ServiceNow POST JSON payloads when an alert sends a notification
|
|
154
|
+
* A template that Observability Cloud uses to create the ServiceNow POST JSON payloads when an alert sends a notification
|
|
155
|
+
* to ServiceNow. Use this optional field to send the values of Observability Cloud alert properties to specific fields in
|
|
156
|
+
* ServiceNow. See API reference for details.
|
|
128
157
|
*/
|
|
129
158
|
alertTriggeredPayloadTemplate?: pulumi.Input<string>;
|
|
130
159
|
/**
|
|
131
|
-
* Whether the integration is enabled
|
|
160
|
+
* Whether the integration is enabled
|
|
132
161
|
*/
|
|
133
162
|
enabled: pulumi.Input<boolean>;
|
|
134
163
|
/**
|
|
135
|
-
* Name of the ServiceNow instance, for example `
|
|
164
|
+
* Name of the ServiceNow instance, for example `myInstances.service-now.com`.
|
|
136
165
|
*/
|
|
137
166
|
instanceName: pulumi.Input<string>;
|
|
138
167
|
/**
|
|
@@ -140,7 +169,7 @@ export interface IntegrationArgs {
|
|
|
140
169
|
*/
|
|
141
170
|
issueType: pulumi.Input<string>;
|
|
142
171
|
/**
|
|
143
|
-
* Name of the integration
|
|
172
|
+
* Name of the integration
|
|
144
173
|
*/
|
|
145
174
|
name?: pulumi.Input<string>;
|
|
146
175
|
/**
|
|
@@ -6,11 +6,11 @@ exports.Integration = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("../utilities");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* ServiceNow integrations. For help with this integration see [Integration with ServiceNow](https://docs.splunk.com/observability/en/admin/notif-services/servicenow.html).
|
|
10
10
|
*
|
|
11
11
|
* > **NOTE** When managing integrations, use a session token of an administrator to authenticate the Observability Cloud provider. See [Operations that require a session token for an administrator](https://dev.splunk.com/observability/docs/administration/authtokens#Operations-that-require-a-session-token-for-an-administrator). Otherwise you'll receive a 4xx error.
|
|
12
12
|
*
|
|
13
|
-
* ## Example
|
|
13
|
+
* ## Example
|
|
14
14
|
*
|
|
15
15
|
* ```typescript
|
|
16
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -26,6 +26,23 @@ const utilities = require("../utilities");
|
|
|
26
26
|
* username: "thisis_me",
|
|
27
27
|
* });
|
|
28
28
|
* ```
|
|
29
|
+
*
|
|
30
|
+
* ## Arguments
|
|
31
|
+
*
|
|
32
|
+
* * `name` - (Required) Name of the integration.
|
|
33
|
+
* * `enabled` - (Required) Whether the integration is enabled.
|
|
34
|
+
* * `username` - (Required) User name used to authenticate the ServiceNow integration.
|
|
35
|
+
* * `password` - (Required) Password used to authenticate the ServiceNow integration.
|
|
36
|
+
* * `instanceName` - (Required) Name of the ServiceNow instance, for example `myinst.service-now.com`.
|
|
37
|
+
* * `issueType` - (Required) The type of issue in standard ITIL terminology. The allowed values are `Incident` and `Problem`.
|
|
38
|
+
* * `alertTriggeredPayloadTemplate` - (Optional) A template that Observability Cloud uses to create the ServiceNow POST JSON payloads when an alert sends a notification to ServiceNow. Use this optional field to send the values of Observability Cloud alert properties to specific fields in ServiceNow. See [API reference](https://dev.splunk.com/observability/reference/api/integrations/latest) for details.
|
|
39
|
+
* * `alertResolvedPayloadTemplate` - (Optional) A template that Observability Cloud uses to create the ServiceNow PUT JSON payloads when an alert is cleared in ServiceNow. Use this optional field to send the values of Observability Cloud alert properties to specific fields in ServiceNow. See [API reference](https://dev.splunk.com/observability/reference/api/integrations/latest) for details.
|
|
40
|
+
*
|
|
41
|
+
* ## Attributes
|
|
42
|
+
*
|
|
43
|
+
* In a addition to all arguments above, the following attributes are exported:
|
|
44
|
+
*
|
|
45
|
+
* * `id` - The ID of the integration.
|
|
29
46
|
*/
|
|
30
47
|
class Integration extends pulumi.CustomResource {
|
|
31
48
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../servicenow/integration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,0CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"integration.js","sourceRoot":"","sources":["../../servicenow/integration.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;A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CAAC;QAC7C,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;;AApHL,kCAqHC;AAvGG,gBAAgB;AACO,wBAAY,GAAG,6CAA6C,CAAC"}
|
package/singleValueChart.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as outputs from "./types/output";
|
|
|
6
6
|
*
|
|
7
7
|
* If the time period is in the past, the number represents the value of the metric near the end of the time period.
|
|
8
8
|
*
|
|
9
|
-
* ## Example
|
|
9
|
+
* ## Example
|
|
10
10
|
*
|
|
11
11
|
* ```typescript
|
|
12
12
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -25,6 +25,41 @@ import * as outputs from "./types/output";
|
|
|
25
25
|
* refreshInterval: 1,
|
|
26
26
|
* });
|
|
27
27
|
* ```
|
|
28
|
+
*
|
|
29
|
+
* ## Arguments
|
|
30
|
+
*
|
|
31
|
+
* The following arguments are supported in the resource block:
|
|
32
|
+
*
|
|
33
|
+
* * `name` - (Required) Name of the chart.
|
|
34
|
+
* * `programText` - (Required) Signalflow program text for the chart. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/).
|
|
35
|
+
* * `description` - (Optional) Description of the chart.
|
|
36
|
+
* * `colorBy` - (Optional) Must be `"Dimension"`, `"Scale"` or `"Metric"`. `"Dimension"` by default.
|
|
37
|
+
* * `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).
|
|
38
|
+
* * `gt` - (Optional) Indicates the lower threshold non-inclusive value for this range.
|
|
39
|
+
* * `gte` - (Optional) Indicates the lower threshold inclusive value for this range.
|
|
40
|
+
* * `lt` - (Optional) Indicates the upper threshold non-inculsive value for this range.
|
|
41
|
+
* * `lte` - (Optional) Indicates the upper threshold inclusive value for this range.
|
|
42
|
+
* * `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.
|
|
43
|
+
* * `vizOptions` - (Optional) Plot-level customization options, associated with a publish statement.
|
|
44
|
+
* * `label` - (Required) Label used in the publish statement that displays the plot (metric time series data) you want to customize.
|
|
45
|
+
* * `displayName` - (Optional) Specifies an alternate value for the Plot Name column of the Data Table associated with the chart.
|
|
46
|
+
* * `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.
|
|
47
|
+
* * `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`.
|
|
48
|
+
* * `valuePrefix`, `valueSuffix` - (Optional) Arbitrary prefix/suffix to display with the value of this plot.
|
|
49
|
+
* * `unitPrefix` - (Optional) Must be `"Metric"` or `"Binary"`. `"Metric"` by default.
|
|
50
|
+
* * `maxDelay` - (Optional) How long (in seconds) to wait for late datapoints
|
|
51
|
+
* * `refreshInterval` - (Optional) How often (in seconds) to refresh the value.
|
|
52
|
+
* * `maxPrecision` - (Optional) The maximum precision to for value displayed.
|
|
53
|
+
* * `isTimestampHidden` - (Optional) Whether to hide the timestamp in the chart. `false` by default.
|
|
54
|
+
* * `secondaryVisualization` - (Optional) The type of secondary visualization. Can be `None`, `Radial`, `Linear`, or `Sparkline`. If unset, the Splunk Observability Cloud default is used (`None`).
|
|
55
|
+
* * `showSparkLine` - (Optional) Whether to show a trend line below the current value. `false` by default.
|
|
56
|
+
*
|
|
57
|
+
* ## Attributes
|
|
58
|
+
*
|
|
59
|
+
* In a addition to all arguments above, the following attributes are exported:
|
|
60
|
+
*
|
|
61
|
+
* * `id` - The ID of the chart.
|
|
62
|
+
* * `url` - The URL of the chart.
|
|
28
63
|
*/
|
|
29
64
|
export declare class SingleValueChart extends pulumi.CustomResource {
|
|
30
65
|
/**
|
|
@@ -43,19 +78,19 @@ export declare class SingleValueChart extends pulumi.CustomResource {
|
|
|
43
78
|
*/
|
|
44
79
|
static isInstance(obj: any): obj is SingleValueChart;
|
|
45
80
|
/**
|
|
46
|
-
* Must be
|
|
81
|
+
* (Metric by default) Must be "Metric", "Dimension", or "Scale". "Scale" maps to Color by Value in the UI
|
|
47
82
|
*/
|
|
48
83
|
readonly colorBy: pulumi.Output<string | undefined>;
|
|
49
84
|
/**
|
|
50
|
-
* Single color range including both the color to display for that range and the borders of the range
|
|
85
|
+
* Single color range including both the color to display for that range and the borders of the range
|
|
51
86
|
*/
|
|
52
87
|
readonly colorScales: pulumi.Output<outputs.SingleValueChartColorScale[] | undefined>;
|
|
53
88
|
/**
|
|
54
|
-
* Description of the chart
|
|
89
|
+
* Description of the chart (Optional)
|
|
55
90
|
*/
|
|
56
91
|
readonly description: pulumi.Output<string | undefined>;
|
|
57
92
|
/**
|
|
58
|
-
* Whether to hide the timestamp in the chart
|
|
93
|
+
* (false by default) Whether to hide the timestamp in the chart
|
|
59
94
|
*/
|
|
60
95
|
readonly isTimestampHidden: pulumi.Output<boolean | undefined>;
|
|
61
96
|
/**
|
|
@@ -63,27 +98,27 @@ export declare class SingleValueChart extends pulumi.CustomResource {
|
|
|
63
98
|
*/
|
|
64
99
|
readonly maxDelay: pulumi.Output<number | undefined>;
|
|
65
100
|
/**
|
|
66
|
-
* The maximum precision to for
|
|
101
|
+
* The maximum precision to for values displayed in the list
|
|
67
102
|
*/
|
|
68
103
|
readonly maxPrecision: pulumi.Output<number | undefined>;
|
|
69
104
|
/**
|
|
70
|
-
* Name of the chart
|
|
105
|
+
* Name of the chart
|
|
71
106
|
*/
|
|
72
107
|
readonly name: pulumi.Output<string>;
|
|
73
108
|
/**
|
|
74
|
-
* Signalflow program text for the chart. More info
|
|
109
|
+
* Signalflow program text for the chart. More info at "https://developers.signalfx.com/docs/signalflow-overview"
|
|
75
110
|
*/
|
|
76
111
|
readonly programText: pulumi.Output<string>;
|
|
77
112
|
/**
|
|
78
|
-
* How often (in seconds) to refresh the
|
|
113
|
+
* How often (in seconds) to refresh the values of the list
|
|
79
114
|
*/
|
|
80
115
|
readonly refreshInterval: pulumi.Output<number | undefined>;
|
|
81
116
|
/**
|
|
82
|
-
*
|
|
117
|
+
* (false by default) What kind of secondary visualization to show (None, Radial, Linear, Sparkline)
|
|
83
118
|
*/
|
|
84
119
|
readonly secondaryVisualization: pulumi.Output<string | undefined>;
|
|
85
120
|
/**
|
|
86
|
-
* Whether to show a trend line below the current value
|
|
121
|
+
* (false by default) Whether to show a trend line below the current value
|
|
87
122
|
*/
|
|
88
123
|
readonly showSparkLine: pulumi.Output<boolean | undefined>;
|
|
89
124
|
/**
|
|
@@ -91,15 +126,15 @@ export declare class SingleValueChart extends pulumi.CustomResource {
|
|
|
91
126
|
*/
|
|
92
127
|
readonly timezone: pulumi.Output<string | undefined>;
|
|
93
128
|
/**
|
|
94
|
-
* Must be
|
|
129
|
+
* (Metric by default) Must be "Metric" or "Binary"
|
|
95
130
|
*/
|
|
96
131
|
readonly unitPrefix: pulumi.Output<string | undefined>;
|
|
97
132
|
/**
|
|
98
|
-
*
|
|
133
|
+
* URL of the chart
|
|
99
134
|
*/
|
|
100
135
|
readonly url: pulumi.Output<string>;
|
|
101
136
|
/**
|
|
102
|
-
* Plot-level customization options, associated with a publish statement
|
|
137
|
+
* Plot-level customization options, associated with a publish statement
|
|
103
138
|
*/
|
|
104
139
|
readonly vizOptions: pulumi.Output<outputs.SingleValueChartVizOption[] | undefined>;
|
|
105
140
|
/**
|
|
@@ -116,19 +151,19 @@ export declare class SingleValueChart extends pulumi.CustomResource {
|
|
|
116
151
|
*/
|
|
117
152
|
export interface SingleValueChartState {
|
|
118
153
|
/**
|
|
119
|
-
* Must be
|
|
154
|
+
* (Metric by default) Must be "Metric", "Dimension", or "Scale". "Scale" maps to Color by Value in the UI
|
|
120
155
|
*/
|
|
121
156
|
colorBy?: pulumi.Input<string>;
|
|
122
157
|
/**
|
|
123
|
-
* Single color range including both the color to display for that range and the borders of the range
|
|
158
|
+
* Single color range including both the color to display for that range and the borders of the range
|
|
124
159
|
*/
|
|
125
160
|
colorScales?: pulumi.Input<pulumi.Input<inputs.SingleValueChartColorScale>[]>;
|
|
126
161
|
/**
|
|
127
|
-
* Description of the chart
|
|
162
|
+
* Description of the chart (Optional)
|
|
128
163
|
*/
|
|
129
164
|
description?: pulumi.Input<string>;
|
|
130
165
|
/**
|
|
131
|
-
* Whether to hide the timestamp in the chart
|
|
166
|
+
* (false by default) Whether to hide the timestamp in the chart
|
|
132
167
|
*/
|
|
133
168
|
isTimestampHidden?: pulumi.Input<boolean>;
|
|
134
169
|
/**
|
|
@@ -136,27 +171,27 @@ export interface SingleValueChartState {
|
|
|
136
171
|
*/
|
|
137
172
|
maxDelay?: pulumi.Input<number>;
|
|
138
173
|
/**
|
|
139
|
-
* The maximum precision to for
|
|
174
|
+
* The maximum precision to for values displayed in the list
|
|
140
175
|
*/
|
|
141
176
|
maxPrecision?: pulumi.Input<number>;
|
|
142
177
|
/**
|
|
143
|
-
* Name of the chart
|
|
178
|
+
* Name of the chart
|
|
144
179
|
*/
|
|
145
180
|
name?: pulumi.Input<string>;
|
|
146
181
|
/**
|
|
147
|
-
* Signalflow program text for the chart. More info
|
|
182
|
+
* Signalflow program text for the chart. More info at "https://developers.signalfx.com/docs/signalflow-overview"
|
|
148
183
|
*/
|
|
149
184
|
programText?: pulumi.Input<string>;
|
|
150
185
|
/**
|
|
151
|
-
* How often (in seconds) to refresh the
|
|
186
|
+
* How often (in seconds) to refresh the values of the list
|
|
152
187
|
*/
|
|
153
188
|
refreshInterval?: pulumi.Input<number>;
|
|
154
189
|
/**
|
|
155
|
-
*
|
|
190
|
+
* (false by default) What kind of secondary visualization to show (None, Radial, Linear, Sparkline)
|
|
156
191
|
*/
|
|
157
192
|
secondaryVisualization?: pulumi.Input<string>;
|
|
158
193
|
/**
|
|
159
|
-
* Whether to show a trend line below the current value
|
|
194
|
+
* (false by default) Whether to show a trend line below the current value
|
|
160
195
|
*/
|
|
161
196
|
showSparkLine?: pulumi.Input<boolean>;
|
|
162
197
|
/**
|
|
@@ -164,15 +199,15 @@ export interface SingleValueChartState {
|
|
|
164
199
|
*/
|
|
165
200
|
timezone?: pulumi.Input<string>;
|
|
166
201
|
/**
|
|
167
|
-
* Must be
|
|
202
|
+
* (Metric by default) Must be "Metric" or "Binary"
|
|
168
203
|
*/
|
|
169
204
|
unitPrefix?: pulumi.Input<string>;
|
|
170
205
|
/**
|
|
171
|
-
*
|
|
206
|
+
* URL of the chart
|
|
172
207
|
*/
|
|
173
208
|
url?: pulumi.Input<string>;
|
|
174
209
|
/**
|
|
175
|
-
* Plot-level customization options, associated with a publish statement
|
|
210
|
+
* Plot-level customization options, associated with a publish statement
|
|
176
211
|
*/
|
|
177
212
|
vizOptions?: pulumi.Input<pulumi.Input<inputs.SingleValueChartVizOption>[]>;
|
|
178
213
|
}
|
|
@@ -181,19 +216,19 @@ export interface SingleValueChartState {
|
|
|
181
216
|
*/
|
|
182
217
|
export interface SingleValueChartArgs {
|
|
183
218
|
/**
|
|
184
|
-
* Must be
|
|
219
|
+
* (Metric by default) Must be "Metric", "Dimension", or "Scale". "Scale" maps to Color by Value in the UI
|
|
185
220
|
*/
|
|
186
221
|
colorBy?: pulumi.Input<string>;
|
|
187
222
|
/**
|
|
188
|
-
* Single color range including both the color to display for that range and the borders of the range
|
|
223
|
+
* Single color range including both the color to display for that range and the borders of the range
|
|
189
224
|
*/
|
|
190
225
|
colorScales?: pulumi.Input<pulumi.Input<inputs.SingleValueChartColorScale>[]>;
|
|
191
226
|
/**
|
|
192
|
-
* Description of the chart
|
|
227
|
+
* Description of the chart (Optional)
|
|
193
228
|
*/
|
|
194
229
|
description?: pulumi.Input<string>;
|
|
195
230
|
/**
|
|
196
|
-
* Whether to hide the timestamp in the chart
|
|
231
|
+
* (false by default) Whether to hide the timestamp in the chart
|
|
197
232
|
*/
|
|
198
233
|
isTimestampHidden?: pulumi.Input<boolean>;
|
|
199
234
|
/**
|
|
@@ -201,27 +236,27 @@ export interface SingleValueChartArgs {
|
|
|
201
236
|
*/
|
|
202
237
|
maxDelay?: pulumi.Input<number>;
|
|
203
238
|
/**
|
|
204
|
-
* The maximum precision to for
|
|
239
|
+
* The maximum precision to for values displayed in the list
|
|
205
240
|
*/
|
|
206
241
|
maxPrecision?: pulumi.Input<number>;
|
|
207
242
|
/**
|
|
208
|
-
* Name of the chart
|
|
243
|
+
* Name of the chart
|
|
209
244
|
*/
|
|
210
245
|
name?: pulumi.Input<string>;
|
|
211
246
|
/**
|
|
212
|
-
* Signalflow program text for the chart. More info
|
|
247
|
+
* Signalflow program text for the chart. More info at "https://developers.signalfx.com/docs/signalflow-overview"
|
|
213
248
|
*/
|
|
214
249
|
programText: pulumi.Input<string>;
|
|
215
250
|
/**
|
|
216
|
-
* How often (in seconds) to refresh the
|
|
251
|
+
* How often (in seconds) to refresh the values of the list
|
|
217
252
|
*/
|
|
218
253
|
refreshInterval?: pulumi.Input<number>;
|
|
219
254
|
/**
|
|
220
|
-
*
|
|
255
|
+
* (false by default) What kind of secondary visualization to show (None, Radial, Linear, Sparkline)
|
|
221
256
|
*/
|
|
222
257
|
secondaryVisualization?: pulumi.Input<string>;
|
|
223
258
|
/**
|
|
224
|
-
* Whether to show a trend line below the current value
|
|
259
|
+
* (false by default) Whether to show a trend line below the current value
|
|
225
260
|
*/
|
|
226
261
|
showSparkLine?: pulumi.Input<boolean>;
|
|
227
262
|
/**
|
|
@@ -229,11 +264,11 @@ export interface SingleValueChartArgs {
|
|
|
229
264
|
*/
|
|
230
265
|
timezone?: pulumi.Input<string>;
|
|
231
266
|
/**
|
|
232
|
-
* Must be
|
|
267
|
+
* (Metric by default) Must be "Metric" or "Binary"
|
|
233
268
|
*/
|
|
234
269
|
unitPrefix?: pulumi.Input<string>;
|
|
235
270
|
/**
|
|
236
|
-
* Plot-level customization options, associated with a publish statement
|
|
271
|
+
* Plot-level customization options, associated with a publish statement
|
|
237
272
|
*/
|
|
238
273
|
vizOptions?: pulumi.Input<pulumi.Input<inputs.SingleValueChartVizOption>[]>;
|
|
239
274
|
}
|
package/singleValueChart.js
CHANGED
|
@@ -10,7 +10,7 @@ const utilities = require("./utilities");
|
|
|
10
10
|
*
|
|
11
11
|
* If the time period is in the past, the number represents the value of the metric near the end of the time period.
|
|
12
12
|
*
|
|
13
|
-
* ## Example
|
|
13
|
+
* ## Example
|
|
14
14
|
*
|
|
15
15
|
* ```typescript
|
|
16
16
|
* import * as pulumi from "@pulumi/pulumi";
|
|
@@ -29,6 +29,41 @@ const utilities = require("./utilities");
|
|
|
29
29
|
* refreshInterval: 1,
|
|
30
30
|
* });
|
|
31
31
|
* ```
|
|
32
|
+
*
|
|
33
|
+
* ## Arguments
|
|
34
|
+
*
|
|
35
|
+
* The following arguments are supported in the resource block:
|
|
36
|
+
*
|
|
37
|
+
* * `name` - (Required) Name of the chart.
|
|
38
|
+
* * `programText` - (Required) Signalflow program text for the chart. More info [in the Splunk Observability Cloud docs](https://dev.splunk.com/observability/docs/signalflow/).
|
|
39
|
+
* * `description` - (Optional) Description of the chart.
|
|
40
|
+
* * `colorBy` - (Optional) Must be `"Dimension"`, `"Scale"` or `"Metric"`. `"Dimension"` by default.
|
|
41
|
+
* * `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).
|
|
42
|
+
* * `gt` - (Optional) Indicates the lower threshold non-inclusive value for this range.
|
|
43
|
+
* * `gte` - (Optional) Indicates the lower threshold inclusive value for this range.
|
|
44
|
+
* * `lt` - (Optional) Indicates the upper threshold non-inculsive value for this range.
|
|
45
|
+
* * `lte` - (Optional) Indicates the upper threshold inclusive value for this range.
|
|
46
|
+
* * `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.
|
|
47
|
+
* * `vizOptions` - (Optional) Plot-level customization options, associated with a publish statement.
|
|
48
|
+
* * `label` - (Required) Label used in the publish statement that displays the plot (metric time series data) you want to customize.
|
|
49
|
+
* * `displayName` - (Optional) Specifies an alternate value for the Plot Name column of the Data Table associated with the chart.
|
|
50
|
+
* * `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.
|
|
51
|
+
* * `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`.
|
|
52
|
+
* * `valuePrefix`, `valueSuffix` - (Optional) Arbitrary prefix/suffix to display with the value of this plot.
|
|
53
|
+
* * `unitPrefix` - (Optional) Must be `"Metric"` or `"Binary"`. `"Metric"` by default.
|
|
54
|
+
* * `maxDelay` - (Optional) How long (in seconds) to wait for late datapoints
|
|
55
|
+
* * `refreshInterval` - (Optional) How often (in seconds) to refresh the value.
|
|
56
|
+
* * `maxPrecision` - (Optional) The maximum precision to for value displayed.
|
|
57
|
+
* * `isTimestampHidden` - (Optional) Whether to hide the timestamp in the chart. `false` by default.
|
|
58
|
+
* * `secondaryVisualization` - (Optional) The type of secondary visualization. Can be `None`, `Radial`, `Linear`, or `Sparkline`. If unset, the Splunk Observability Cloud default is used (`None`).
|
|
59
|
+
* * `showSparkLine` - (Optional) Whether to show a trend line below the current value. `false` by default.
|
|
60
|
+
*
|
|
61
|
+
* ## Attributes
|
|
62
|
+
*
|
|
63
|
+
* In a addition to all arguments above, the following attributes are exported:
|
|
64
|
+
*
|
|
65
|
+
* * `id` - The ID of the chart.
|
|
66
|
+
* * `url` - The URL of the chart.
|
|
32
67
|
*/
|
|
33
68
|
class SingleValueChart extends pulumi.CustomResource {
|
|
34
69
|
/**
|
package/singleValueChart.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"singleValueChart.js","sourceRoot":"","sources":["../singleValueChart.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"singleValueChart.js","sourceRoot":"","sources":["../singleValueChart.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IACvD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,G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