@pulumi/newrelic 5.79.5 → 5.80.0
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/getTeamsHierarchyLevels.d.ts +66 -0
- package/getTeamsHierarchyLevels.d.ts.map +1 -0
- package/getTeamsHierarchyLevels.js +89 -0
- package/getTeamsHierarchyLevels.js.map +1 -0
- package/index.d.ts +15 -0
- package/index.d.ts.map +1 -1
- package/index.js +24 -1
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/scorecard.d.ts +251 -0
- package/scorecard.d.ts.map +1 -0
- package/scorecard.js +220 -0
- package/scorecard.js.map +1 -0
- package/scorecardRule.d.ts +292 -0
- package/scorecardRule.d.ts.map +1 -0
- package/scorecardRule.js +243 -0
- package/scorecardRule.js.map +1 -0
- package/team.d.ts +458 -0
- package/team.d.ts.map +1 -0
- package/team.js +356 -0
- package/team.js.map +1 -0
- package/teamsOrganizationSettings.d.ts +207 -0
- package/teamsOrganizationSettings.d.ts.map +1 -0
- package/teamsOrganizationSettings.js +188 -0
- package/teamsOrganizationSettings.js.map +1 -0
- package/types/input.d.ts +102 -0
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +112 -0
- package/types/output.d.ts.map +1 -1
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.TeamsOrganizationSettings = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Use this resource to manage the organisation-level settings that control how New Relic Teams works across your organisation:
|
|
33
|
+
*
|
|
34
|
+
* - **Entity discovery**: Automatically assigns entities to teams based on tag values.
|
|
35
|
+
* - **Hierarchy levels**: Define and rename the ordered tiers shown in the Teams UI.
|
|
36
|
+
* - **Sync group rules**: Automatically creates teams from IdP groups that match name patterns.
|
|
37
|
+
*
|
|
38
|
+
* > **NOTE:** There is exactly one `TEAMS_ORGANIZATION_SETTINGS` entity per New Relic organisation. This resource is **import-optional** — if you apply it without importing first, the provider automatically locates the singleton, applies your configuration, and emits a warning stating that the existing settings have been overridden. `pulumi import` is supported for an explicit workflow.
|
|
39
|
+
*
|
|
40
|
+
* ## Example Usage
|
|
41
|
+
*
|
|
42
|
+
* ```typescript
|
|
43
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
44
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
45
|
+
*
|
|
46
|
+
* const all = newrelic.getTeamsHierarchyLevels({});
|
|
47
|
+
* const org = new newrelic.TeamsOrganizationSettings("org", {
|
|
48
|
+
* discoveryEnabled: true,
|
|
49
|
+
* discoveryTagKeys: [
|
|
50
|
+
* "team",
|
|
51
|
+
* "teamId",
|
|
52
|
+
* ],
|
|
53
|
+
* hierarchyLevels: [
|
|
54
|
+
* {
|
|
55
|
+
* id: all.then(all => all.levels?.[0]?.id),
|
|
56
|
+
* name: "Division",
|
|
57
|
+
* },
|
|
58
|
+
* {
|
|
59
|
+
* id: all.then(all => all.levels?.[1]?.id),
|
|
60
|
+
* name: "Squad",
|
|
61
|
+
* },
|
|
62
|
+
* ],
|
|
63
|
+
* syncGroupsEnabled: true,
|
|
64
|
+
* syncGroupRules: {
|
|
65
|
+
* conditions: [
|
|
66
|
+
* {
|
|
67
|
+
* type: "CONTAINS",
|
|
68
|
+
* value: "-engineering-",
|
|
69
|
+
* },
|
|
70
|
+
* {
|
|
71
|
+
* type: "ENDS_WITH",
|
|
72
|
+
* value: "-prod",
|
|
73
|
+
* },
|
|
74
|
+
* ],
|
|
75
|
+
* },
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* See additional examples below.
|
|
80
|
+
*
|
|
81
|
+
* ## Hierarchy Level IDs
|
|
82
|
+
*
|
|
83
|
+
* Use the `newrelic.getTeamsHierarchyLevels` data source to discover level GUIDs programmatically:
|
|
84
|
+
*
|
|
85
|
+
* ```typescript
|
|
86
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
87
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
88
|
+
*
|
|
89
|
+
* const all = newrelic.getTeamsHierarchyLevels({});
|
|
90
|
+
* export const divisionLevelId = all.then(all => all.levels?.[0]?.id);
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* Alternatively, each `newrelic.Team` resource exports a `hierarchyLevelId` attribute that reflects the level the team is currently assigned to. You can use this to reference a specific level without the data source:
|
|
94
|
+
*
|
|
95
|
+
* ```typescript
|
|
96
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
97
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
98
|
+
*
|
|
99
|
+
* const division = new newrelic.Team("division", {name: "Engineering Division"});
|
|
100
|
+
* const org = new newrelic.TeamsOrganizationSettings("org", {hierarchyLevels: [{
|
|
101
|
+
* id: division.hierarchyLevelId,
|
|
102
|
+
* name: "Division",
|
|
103
|
+
* }]});
|
|
104
|
+
* ```
|
|
105
|
+
*
|
|
106
|
+
* ## Additional Examples
|
|
107
|
+
*
|
|
108
|
+
* ### Discovery only — no hierarchy configuration
|
|
109
|
+
*
|
|
110
|
+
* ```typescript
|
|
111
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
112
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
113
|
+
*
|
|
114
|
+
* const org = new newrelic.TeamsOrganizationSettings("org", {
|
|
115
|
+
* discoveryEnabled: true,
|
|
116
|
+
* discoveryTagKeys: ["team"],
|
|
117
|
+
* });
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* ### Disable all discovery
|
|
121
|
+
*
|
|
122
|
+
* ```typescript
|
|
123
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
124
|
+
* import * as newrelic from "@pulumi/newrelic";
|
|
125
|
+
*
|
|
126
|
+
* const org = new newrelic.TeamsOrganizationSettings("org", {discoveryEnabled: false});
|
|
127
|
+
* ```
|
|
128
|
+
*
|
|
129
|
+
* ## Import
|
|
130
|
+
*
|
|
131
|
+
* The organisation settings singleton must be imported using its entity GUID. Discover the GUID with NerdGraph:
|
|
132
|
+
*
|
|
133
|
+
* Then import:
|
|
134
|
+
*
|
|
135
|
+
* ```sh
|
|
136
|
+
* $ pulumi import newrelic:index/teamsOrganizationSettings:TeamsOrganizationSettings org <guid>
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
class TeamsOrganizationSettings extends pulumi.CustomResource {
|
|
140
|
+
/**
|
|
141
|
+
* Get an existing TeamsOrganizationSettings resource's state with the given name, ID, and optional extra
|
|
142
|
+
* properties used to qualify the lookup.
|
|
143
|
+
*
|
|
144
|
+
* @param name The _unique_ name of the resulting resource.
|
|
145
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
146
|
+
* @param state Any extra arguments used during the lookup.
|
|
147
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
148
|
+
*/
|
|
149
|
+
static get(name, id, state, opts) {
|
|
150
|
+
return new TeamsOrganizationSettings(name, state, { ...opts, id: id });
|
|
151
|
+
}
|
|
152
|
+
/** @internal */
|
|
153
|
+
static __pulumiType = 'newrelic:index/teamsOrganizationSettings:TeamsOrganizationSettings';
|
|
154
|
+
/**
|
|
155
|
+
* Returns true if the given object is an instance of TeamsOrganizationSettings. This is designed to work even
|
|
156
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
157
|
+
*/
|
|
158
|
+
static isInstance(obj) {
|
|
159
|
+
if (obj === undefined || obj === null) {
|
|
160
|
+
return false;
|
|
161
|
+
}
|
|
162
|
+
return obj['__pulumiType'] === TeamsOrganizationSettings.__pulumiType;
|
|
163
|
+
}
|
|
164
|
+
constructor(name, argsOrState, opts) {
|
|
165
|
+
let resourceInputs = {};
|
|
166
|
+
opts = opts || {};
|
|
167
|
+
if (opts.id) {
|
|
168
|
+
const state = argsOrState;
|
|
169
|
+
resourceInputs["discoveryEnabled"] = state?.discoveryEnabled;
|
|
170
|
+
resourceInputs["discoveryTagKeys"] = state?.discoveryTagKeys;
|
|
171
|
+
resourceInputs["hierarchyLevels"] = state?.hierarchyLevels;
|
|
172
|
+
resourceInputs["syncGroupRules"] = state?.syncGroupRules;
|
|
173
|
+
resourceInputs["syncGroupsEnabled"] = state?.syncGroupsEnabled;
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
const args = argsOrState;
|
|
177
|
+
resourceInputs["discoveryEnabled"] = args?.discoveryEnabled;
|
|
178
|
+
resourceInputs["discoveryTagKeys"] = args?.discoveryTagKeys;
|
|
179
|
+
resourceInputs["hierarchyLevels"] = args?.hierarchyLevels;
|
|
180
|
+
resourceInputs["syncGroupRules"] = args?.syncGroupRules;
|
|
181
|
+
resourceInputs["syncGroupsEnabled"] = args?.syncGroupsEnabled;
|
|
182
|
+
}
|
|
183
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
184
|
+
super(TeamsOrganizationSettings.__pulumiType, name, resourceInputs, opts);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
exports.TeamsOrganizationSettings = TeamsOrganizationSettings;
|
|
188
|
+
//# sourceMappingURL=teamsOrganizationSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teamsOrganizationSettings.js","sourceRoot":"","sources":["../teamsOrganizationSettings.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2GG;AACH,MAAa,yBAA0B,SAAQ,MAAM,CAAC,cAAc;IAChE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAsC,EAAE,IAAmC;QACpI,OAAO,IAAI,yBAAyB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAChF,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,oEAAoE,CAAC;IAE3G;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KA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@ -4156,6 +4156,58 @@ export interface PathpointFlowStageStageKpiQueryTimeWindowRelativeRange {
|
|
|
4156
4156
|
*/
|
|
4157
4157
|
since: pulumi.Input<string>;
|
|
4158
4158
|
}
|
|
4159
|
+
export interface ScorecardProgressLevel {
|
|
4160
|
+
/**
|
|
4161
|
+
* A description of the scorecard's purpose.
|
|
4162
|
+
*/
|
|
4163
|
+
description?: pulumi.Input<string | undefined>;
|
|
4164
|
+
/**
|
|
4165
|
+
* Hex colour for this level, e.g. '#FF0000'.
|
|
4166
|
+
*/
|
|
4167
|
+
hexColorCode?: pulumi.Input<string | undefined>;
|
|
4168
|
+
/**
|
|
4169
|
+
* The entity GUID of the scorecard.
|
|
4170
|
+
*/
|
|
4171
|
+
id: pulumi.Input<string>;
|
|
4172
|
+
/**
|
|
4173
|
+
* The name of the scorecard.
|
|
4174
|
+
*/
|
|
4175
|
+
name: pulumi.Input<string>;
|
|
4176
|
+
}
|
|
4177
|
+
export interface ScorecardRuleNrqlEngine {
|
|
4178
|
+
/**
|
|
4179
|
+
* Account IDs where this rule runs.
|
|
4180
|
+
*/
|
|
4181
|
+
accounts: pulumi.Input<pulumi.Input<number>[]>;
|
|
4182
|
+
/**
|
|
4183
|
+
* Additional account IDs to join with the query accounts.
|
|
4184
|
+
*/
|
|
4185
|
+
joinAccounts?: pulumi.Input<pulumi.Input<number>[] | undefined>;
|
|
4186
|
+
/**
|
|
4187
|
+
* The NRQL query. Must be FACET-ed and alias the result as 'score'.
|
|
4188
|
+
*/
|
|
4189
|
+
query: pulumi.Input<string>;
|
|
4190
|
+
}
|
|
4191
|
+
export interface ScorecardRuleTag {
|
|
4192
|
+
/**
|
|
4193
|
+
* The tag key.
|
|
4194
|
+
*/
|
|
4195
|
+
key: pulumi.Input<string>;
|
|
4196
|
+
/**
|
|
4197
|
+
* One or more tag values.
|
|
4198
|
+
*/
|
|
4199
|
+
values: pulumi.Input<pulumi.Input<string>[]>;
|
|
4200
|
+
}
|
|
4201
|
+
export interface ScorecardTag {
|
|
4202
|
+
/**
|
|
4203
|
+
* The tag key.
|
|
4204
|
+
*/
|
|
4205
|
+
key: pulumi.Input<string>;
|
|
4206
|
+
/**
|
|
4207
|
+
* One or more tag values.
|
|
4208
|
+
*/
|
|
4209
|
+
values: pulumi.Input<pulumi.Input<string>[]>;
|
|
4210
|
+
}
|
|
4159
4211
|
export interface ServiceLevelEvents {
|
|
4160
4212
|
/**
|
|
4161
4213
|
* The ID of the account where the entity (e.g, APM Service, Browser application, Workload, etc.) belongs to,
|
|
@@ -4295,6 +4347,56 @@ export interface ServiceLevelObjectiveTimeWindowRolling {
|
|
|
4295
4347
|
*/
|
|
4296
4348
|
unit: pulumi.Input<string>;
|
|
4297
4349
|
}
|
|
4350
|
+
export interface TeamResource {
|
|
4351
|
+
/**
|
|
4352
|
+
* The URL or contact address for this resource.
|
|
4353
|
+
*/
|
|
4354
|
+
content: pulumi.Input<string>;
|
|
4355
|
+
/**
|
|
4356
|
+
* A short label shown in the UI for this resource.
|
|
4357
|
+
*/
|
|
4358
|
+
title?: pulumi.Input<string | undefined>;
|
|
4359
|
+
/**
|
|
4360
|
+
* Resource category. Valid values are defined in TeamResourceTypeValues() in the go-client and stay in sync with the API automatically.
|
|
4361
|
+
*/
|
|
4362
|
+
type: pulumi.Input<string>;
|
|
4363
|
+
}
|
|
4364
|
+
export interface TeamTag {
|
|
4365
|
+
/**
|
|
4366
|
+
* The tag key.
|
|
4367
|
+
*/
|
|
4368
|
+
key: pulumi.Input<string>;
|
|
4369
|
+
/**
|
|
4370
|
+
* The tag values.
|
|
4371
|
+
*/
|
|
4372
|
+
values: pulumi.Input<pulumi.Input<string>[]>;
|
|
4373
|
+
}
|
|
4374
|
+
export interface TeamsOrganizationSettingsHierarchyLevel {
|
|
4375
|
+
/**
|
|
4376
|
+
* The entity GUID of the organisation settings singleton entity.
|
|
4377
|
+
*/
|
|
4378
|
+
id: pulumi.Input<string>;
|
|
4379
|
+
/**
|
|
4380
|
+
* Display name of this hierarchy level (e.g. 'Division', 'Squad'). Renaming here updates the entity in the API.
|
|
4381
|
+
*/
|
|
4382
|
+
name: pulumi.Input<string>;
|
|
4383
|
+
}
|
|
4384
|
+
export interface TeamsOrganizationSettingsSyncGroupRules {
|
|
4385
|
+
/**
|
|
4386
|
+
* Conditions that a group name must satisfy for this rule to apply.
|
|
4387
|
+
*/
|
|
4388
|
+
conditions: pulumi.Input<pulumi.Input<inputs.TeamsOrganizationSettingsSyncGroupRulesCondition>[]>;
|
|
4389
|
+
}
|
|
4390
|
+
export interface TeamsOrganizationSettingsSyncGroupRulesCondition {
|
|
4391
|
+
/**
|
|
4392
|
+
* Match type: STARTS_WITH, ENDS_WITH, or CONTAINS.
|
|
4393
|
+
*/
|
|
4394
|
+
type: pulumi.Input<string>;
|
|
4395
|
+
/**
|
|
4396
|
+
* The string to match against the group name.
|
|
4397
|
+
*/
|
|
4398
|
+
value: pulumi.Input<string>;
|
|
4399
|
+
}
|
|
4298
4400
|
export interface WorkflowDestination {
|
|
4299
4401
|
/**
|
|
4300
4402
|
* (Required) Destination's channel id.
|