@datarobot/pulumi-datarobot 0.5.0 → 0.5.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.
@@ -0,0 +1,186 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Custom Metric From Job
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as datarobot from "@datarobot/pulumi-datarobot";
12
+ *
13
+ * const example = new datarobot.CustomMetricFromJob("example", {
14
+ * deploymentId: datarobot_deployment.example.id,
15
+ * customJobId: datarobot_custom_metric_job.example.id,
16
+ * });
17
+ * export const exampleId = example.id;
18
+ * ```
19
+ */
20
+ export declare class CustomMetricFromJob extends pulumi.CustomResource {
21
+ /**
22
+ * Get an existing CustomMetricFromJob resource's state with the given name, ID, and optional extra
23
+ * properties used to qualify the lookup.
24
+ *
25
+ * @param name The _unique_ name of the resulting resource.
26
+ * @param id The _unique_ provider ID of the resource to lookup.
27
+ * @param state Any extra arguments used during the lookup.
28
+ * @param opts Optional settings to control the behavior of the CustomResource.
29
+ */
30
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CustomMetricFromJobState, opts?: pulumi.CustomResourceOptions): CustomMetricFromJob;
31
+ /**
32
+ * Returns true if the given object is an instance of CustomMetricFromJob. This is designed to work even
33
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
34
+ */
35
+ static isInstance(obj: any): obj is CustomMetricFromJob;
36
+ /**
37
+ * Baseline value for the metric.
38
+ */
39
+ readonly baselineValue: pulumi.Output<number | undefined>;
40
+ /**
41
+ * Batch ID source when reading values from columnar dataset like a file.
42
+ */
43
+ readonly batch: pulumi.Output<outputs.CustomMetricFromJobBatch | undefined>;
44
+ /**
45
+ * ID of the Custom Job.
46
+ */
47
+ readonly customJobId: pulumi.Output<string>;
48
+ /**
49
+ * ID of the Deployment.
50
+ */
51
+ readonly deploymentId: pulumi.Output<string>;
52
+ /**
53
+ * Description of the metric.
54
+ */
55
+ readonly description: pulumi.Output<string | undefined>;
56
+ /**
57
+ * Name of the metric.
58
+ */
59
+ readonly name: pulumi.Output<string>;
60
+ /**
61
+ * Additional parameters to be injected into the Metric Job at runtime.
62
+ */
63
+ readonly parameterOverrides: pulumi.Output<outputs.CustomMetricFromJobParameterOverride[] | undefined>;
64
+ /**
65
+ * Points to a weight column if users provide pre-aggregated metric values. Used with columnar datasets.
66
+ */
67
+ readonly sampleCount: pulumi.Output<outputs.CustomMetricFromJobSampleCount | undefined>;
68
+ /**
69
+ * Defines at what intervals the metric job should run.
70
+ */
71
+ readonly schedule: pulumi.Output<outputs.CustomMetricFromJobSchedule | undefined>;
72
+ /**
73
+ * Timestamp spoofing when reading values from file, like dataset. By default, we replicate pd.to_datetime formatting behaviour.
74
+ */
75
+ readonly timestamp: pulumi.Output<outputs.CustomMetricFromJobTimestamp | undefined>;
76
+ /**
77
+ * Value source when reading values from columnar dataset like a file.
78
+ */
79
+ readonly value: pulumi.Output<outputs.CustomMetricFromJobValue | undefined>;
80
+ /**
81
+ * Create a CustomMetricFromJob resource with the given unique name, arguments, and options.
82
+ *
83
+ * @param name The _unique_ name of the resource.
84
+ * @param args The arguments to use to populate this resource's properties.
85
+ * @param opts A bag of options that control this resource's behavior.
86
+ */
87
+ constructor(name: string, args: CustomMetricFromJobArgs, opts?: pulumi.CustomResourceOptions);
88
+ }
89
+ /**
90
+ * Input properties used for looking up and filtering CustomMetricFromJob resources.
91
+ */
92
+ export interface CustomMetricFromJobState {
93
+ /**
94
+ * Baseline value for the metric.
95
+ */
96
+ baselineValue?: pulumi.Input<number>;
97
+ /**
98
+ * Batch ID source when reading values from columnar dataset like a file.
99
+ */
100
+ batch?: pulumi.Input<inputs.CustomMetricFromJobBatch>;
101
+ /**
102
+ * ID of the Custom Job.
103
+ */
104
+ customJobId?: pulumi.Input<string>;
105
+ /**
106
+ * ID of the Deployment.
107
+ */
108
+ deploymentId?: pulumi.Input<string>;
109
+ /**
110
+ * Description of the metric.
111
+ */
112
+ description?: pulumi.Input<string>;
113
+ /**
114
+ * Name of the metric.
115
+ */
116
+ name?: pulumi.Input<string>;
117
+ /**
118
+ * Additional parameters to be injected into the Metric Job at runtime.
119
+ */
120
+ parameterOverrides?: pulumi.Input<pulumi.Input<inputs.CustomMetricFromJobParameterOverride>[]>;
121
+ /**
122
+ * Points to a weight column if users provide pre-aggregated metric values. Used with columnar datasets.
123
+ */
124
+ sampleCount?: pulumi.Input<inputs.CustomMetricFromJobSampleCount>;
125
+ /**
126
+ * Defines at what intervals the metric job should run.
127
+ */
128
+ schedule?: pulumi.Input<inputs.CustomMetricFromJobSchedule>;
129
+ /**
130
+ * Timestamp spoofing when reading values from file, like dataset. By default, we replicate pd.to_datetime formatting behaviour.
131
+ */
132
+ timestamp?: pulumi.Input<inputs.CustomMetricFromJobTimestamp>;
133
+ /**
134
+ * Value source when reading values from columnar dataset like a file.
135
+ */
136
+ value?: pulumi.Input<inputs.CustomMetricFromJobValue>;
137
+ }
138
+ /**
139
+ * The set of arguments for constructing a CustomMetricFromJob resource.
140
+ */
141
+ export interface CustomMetricFromJobArgs {
142
+ /**
143
+ * Baseline value for the metric.
144
+ */
145
+ baselineValue?: pulumi.Input<number>;
146
+ /**
147
+ * Batch ID source when reading values from columnar dataset like a file.
148
+ */
149
+ batch?: pulumi.Input<inputs.CustomMetricFromJobBatch>;
150
+ /**
151
+ * ID of the Custom Job.
152
+ */
153
+ customJobId: pulumi.Input<string>;
154
+ /**
155
+ * ID of the Deployment.
156
+ */
157
+ deploymentId: pulumi.Input<string>;
158
+ /**
159
+ * Description of the metric.
160
+ */
161
+ description?: pulumi.Input<string>;
162
+ /**
163
+ * Name of the metric.
164
+ */
165
+ name?: pulumi.Input<string>;
166
+ /**
167
+ * Additional parameters to be injected into the Metric Job at runtime.
168
+ */
169
+ parameterOverrides?: pulumi.Input<pulumi.Input<inputs.CustomMetricFromJobParameterOverride>[]>;
170
+ /**
171
+ * Points to a weight column if users provide pre-aggregated metric values. Used with columnar datasets.
172
+ */
173
+ sampleCount?: pulumi.Input<inputs.CustomMetricFromJobSampleCount>;
174
+ /**
175
+ * Defines at what intervals the metric job should run.
176
+ */
177
+ schedule?: pulumi.Input<inputs.CustomMetricFromJobSchedule>;
178
+ /**
179
+ * Timestamp spoofing when reading values from file, like dataset. By default, we replicate pd.to_datetime formatting behaviour.
180
+ */
181
+ timestamp?: pulumi.Input<inputs.CustomMetricFromJobTimestamp>;
182
+ /**
183
+ * Value source when reading values from columnar dataset like a file.
184
+ */
185
+ value?: pulumi.Input<inputs.CustomMetricFromJobValue>;
186
+ }
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.CustomMetricFromJob = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Custom Metric From Job
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as datarobot from "@datarobot/pulumi-datarobot";
16
+ *
17
+ * const example = new datarobot.CustomMetricFromJob("example", {
18
+ * deploymentId: datarobot_deployment.example.id,
19
+ * customJobId: datarobot_custom_metric_job.example.id,
20
+ * });
21
+ * export const exampleId = example.id;
22
+ * ```
23
+ */
24
+ class CustomMetricFromJob extends pulumi.CustomResource {
25
+ /**
26
+ * Get an existing CustomMetricFromJob resource's state with the given name, ID, and optional extra
27
+ * properties used to qualify the lookup.
28
+ *
29
+ * @param name The _unique_ name of the resulting resource.
30
+ * @param id The _unique_ provider ID of the resource to lookup.
31
+ * @param state Any extra arguments used during the lookup.
32
+ * @param opts Optional settings to control the behavior of the CustomResource.
33
+ */
34
+ static get(name, id, state, opts) {
35
+ return new CustomMetricFromJob(name, state, Object.assign(Object.assign({}, opts), { id: id }));
36
+ }
37
+ /**
38
+ * Returns true if the given object is an instance of CustomMetricFromJob. This is designed to work even
39
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
40
+ */
41
+ static isInstance(obj) {
42
+ if (obj === undefined || obj === null) {
43
+ return false;
44
+ }
45
+ return obj['__pulumiType'] === CustomMetricFromJob.__pulumiType;
46
+ }
47
+ constructor(name, argsOrState, opts) {
48
+ let resourceInputs = {};
49
+ opts = opts || {};
50
+ if (opts.id) {
51
+ const state = argsOrState;
52
+ resourceInputs["baselineValue"] = state ? state.baselineValue : undefined;
53
+ resourceInputs["batch"] = state ? state.batch : undefined;
54
+ resourceInputs["customJobId"] = state ? state.customJobId : undefined;
55
+ resourceInputs["deploymentId"] = state ? state.deploymentId : undefined;
56
+ resourceInputs["description"] = state ? state.description : undefined;
57
+ resourceInputs["name"] = state ? state.name : undefined;
58
+ resourceInputs["parameterOverrides"] = state ? state.parameterOverrides : undefined;
59
+ resourceInputs["sampleCount"] = state ? state.sampleCount : undefined;
60
+ resourceInputs["schedule"] = state ? state.schedule : undefined;
61
+ resourceInputs["timestamp"] = state ? state.timestamp : undefined;
62
+ resourceInputs["value"] = state ? state.value : undefined;
63
+ }
64
+ else {
65
+ const args = argsOrState;
66
+ if ((!args || args.customJobId === undefined) && !opts.urn) {
67
+ throw new Error("Missing required property 'customJobId'");
68
+ }
69
+ if ((!args || args.deploymentId === undefined) && !opts.urn) {
70
+ throw new Error("Missing required property 'deploymentId'");
71
+ }
72
+ resourceInputs["baselineValue"] = args ? args.baselineValue : undefined;
73
+ resourceInputs["batch"] = args ? args.batch : undefined;
74
+ resourceInputs["customJobId"] = args ? args.customJobId : undefined;
75
+ resourceInputs["deploymentId"] = args ? args.deploymentId : undefined;
76
+ resourceInputs["description"] = args ? args.description : undefined;
77
+ resourceInputs["name"] = args ? args.name : undefined;
78
+ resourceInputs["parameterOverrides"] = args ? args.parameterOverrides : undefined;
79
+ resourceInputs["sampleCount"] = args ? args.sampleCount : undefined;
80
+ resourceInputs["schedule"] = args ? args.schedule : undefined;
81
+ resourceInputs["timestamp"] = args ? args.timestamp : undefined;
82
+ resourceInputs["value"] = args ? args.value : undefined;
83
+ }
84
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
85
+ super(CustomMetricFromJob.__pulumiType, name, resourceInputs, opts);
86
+ }
87
+ }
88
+ exports.CustomMetricFromJob = CustomMetricFromJob;
89
+ /** @internal */
90
+ CustomMetricFromJob.__pulumiType = 'datarobot:index/customMetricFromJob:CustomMetricFromJob';
91
+ //# sourceMappingURL=customMetricFromJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customMetricFromJob.js","sourceRoot":"","sources":["../customMetricFromJob.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,CAAC,YAAY,CAAC;IACpE,CAAC;IAuDD,YAAY,IAAY,EAAE,WAAgE,EAAE,IAAmC;QAC3H,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CA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AC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;SAC3D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAvHL,kDAwHC;AA1GG,gBAAgB;AACO,gCAAY,GAAG,yDAAyD,CAAC"}
@@ -0,0 +1,253 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Custom Job
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as datarobot from "@datarobot/pulumi-datarobot";
12
+ *
13
+ * const example = new datarobot.CustomMetricJob("example", {
14
+ * files: [
15
+ * "file1.py",
16
+ * "file2.py",
17
+ * ],
18
+ * environmentId: "65f9b27eab986d30d4c64268",
19
+ * description: "Example Custom Metric Job Description",
20
+ * runtimeParameterValues: [{
21
+ * key: "EXAMPLE_PARAM",
22
+ * type: "string",
23
+ * value: "val",
24
+ * }],
25
+ * egressNetworkPolicy: "none",
26
+ * resourceBundleId: "cpu.micro",
27
+ * units: "count",
28
+ * directionality: "lowerIsBetter",
29
+ * type: "sum",
30
+ * isModelSpecific: false,
31
+ * });
32
+ * export const exampleId = example.id;
33
+ * ```
34
+ */
35
+ export declare class CustomMetricJob extends pulumi.CustomResource {
36
+ /**
37
+ * Get an existing CustomMetricJob resource's state with the given name, ID, and optional extra
38
+ * properties used to qualify the lookup.
39
+ *
40
+ * @param name The _unique_ name of the resulting resource.
41
+ * @param id The _unique_ provider ID of the resource to lookup.
42
+ * @param state Any extra arguments used during the lookup.
43
+ * @param opts Optional settings to control the behavior of the CustomResource.
44
+ */
45
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: CustomMetricJobState, opts?: pulumi.CustomResourceOptions): CustomMetricJob;
46
+ /**
47
+ * Returns true if the given object is an instance of CustomMetricJob. This is designed to work even
48
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
49
+ */
50
+ static isInstance(obj: any): obj is CustomMetricJob;
51
+ /**
52
+ * The description of the Custom Metric Job.
53
+ */
54
+ readonly description: pulumi.Output<string | undefined>;
55
+ /**
56
+ * The directionality of the Custom Metric.
57
+ */
58
+ readonly directionality: pulumi.Output<string>;
59
+ /**
60
+ * The egress network policy for the Job.
61
+ */
62
+ readonly egressNetworkPolicy: pulumi.Output<string>;
63
+ /**
64
+ * The ID of the environment to use with the Job.
65
+ */
66
+ readonly environmentId: pulumi.Output<string>;
67
+ /**
68
+ * The ID of the environment version to use with the Job.
69
+ */
70
+ readonly environmentVersionId: pulumi.Output<string>;
71
+ /**
72
+ * The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Job. If list is of strings, then basenames will be used for tuples.
73
+ */
74
+ readonly files: pulumi.Output<any | undefined>;
75
+ /**
76
+ * The hash of file contents for each file in files.
77
+ */
78
+ readonly filesHashes: pulumi.Output<string[]>;
79
+ /**
80
+ * The path to a folder containing files to be uploaded. Each file in the folder is uploaded under path relative to a folder path.
81
+ */
82
+ readonly folderPath: pulumi.Output<string | undefined>;
83
+ /**
84
+ * The hash of the folder path contents.
85
+ */
86
+ readonly folderPathHash: pulumi.Output<string>;
87
+ /**
88
+ * Determines whether the metric is related to the model or deployment.
89
+ */
90
+ readonly isModelSpecific: pulumi.Output<boolean>;
91
+ /**
92
+ * The name of the Custom Metric Job.
93
+ */
94
+ readonly name: pulumi.Output<string>;
95
+ /**
96
+ * A single identifier that represents a bundle of resources: Memory, CPU, GPU, etc.
97
+ */
98
+ readonly resourceBundleId: pulumi.Output<string | undefined>;
99
+ /**
100
+ * Additional parameters to be injected into a Job at runtime.
101
+ */
102
+ readonly runtimeParameterValues: pulumi.Output<outputs.CustomMetricJobRuntimeParameterValue[]>;
103
+ /**
104
+ * Custom metric time bucket size.
105
+ */
106
+ readonly timeStep: pulumi.Output<string>;
107
+ /**
108
+ * The aggregation type of the custom metric.
109
+ */
110
+ readonly type: pulumi.Output<string>;
111
+ /**
112
+ * The units, or the y-axis label, of the given custom metric.
113
+ */
114
+ readonly units: pulumi.Output<string>;
115
+ /**
116
+ * Create a CustomMetricJob resource with the given unique name, arguments, and options.
117
+ *
118
+ * @param name The _unique_ name of the resource.
119
+ * @param args The arguments to use to populate this resource's properties.
120
+ * @param opts A bag of options that control this resource's behavior.
121
+ */
122
+ constructor(name: string, args?: CustomMetricJobArgs, opts?: pulumi.CustomResourceOptions);
123
+ }
124
+ /**
125
+ * Input properties used for looking up and filtering CustomMetricJob resources.
126
+ */
127
+ export interface CustomMetricJobState {
128
+ /**
129
+ * The description of the Custom Metric Job.
130
+ */
131
+ description?: pulumi.Input<string>;
132
+ /**
133
+ * The directionality of the Custom Metric.
134
+ */
135
+ directionality?: pulumi.Input<string>;
136
+ /**
137
+ * The egress network policy for the Job.
138
+ */
139
+ egressNetworkPolicy?: pulumi.Input<string>;
140
+ /**
141
+ * The ID of the environment to use with the Job.
142
+ */
143
+ environmentId?: pulumi.Input<string>;
144
+ /**
145
+ * The ID of the environment version to use with the Job.
146
+ */
147
+ environmentVersionId?: pulumi.Input<string>;
148
+ /**
149
+ * The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Job. If list is of strings, then basenames will be used for tuples.
150
+ */
151
+ files?: any;
152
+ /**
153
+ * The hash of file contents for each file in files.
154
+ */
155
+ filesHashes?: pulumi.Input<pulumi.Input<string>[]>;
156
+ /**
157
+ * The path to a folder containing files to be uploaded. Each file in the folder is uploaded under path relative to a folder path.
158
+ */
159
+ folderPath?: pulumi.Input<string>;
160
+ /**
161
+ * The hash of the folder path contents.
162
+ */
163
+ folderPathHash?: pulumi.Input<string>;
164
+ /**
165
+ * Determines whether the metric is related to the model or deployment.
166
+ */
167
+ isModelSpecific?: pulumi.Input<boolean>;
168
+ /**
169
+ * The name of the Custom Metric Job.
170
+ */
171
+ name?: pulumi.Input<string>;
172
+ /**
173
+ * A single identifier that represents a bundle of resources: Memory, CPU, GPU, etc.
174
+ */
175
+ resourceBundleId?: pulumi.Input<string>;
176
+ /**
177
+ * Additional parameters to be injected into a Job at runtime.
178
+ */
179
+ runtimeParameterValues?: pulumi.Input<pulumi.Input<inputs.CustomMetricJobRuntimeParameterValue>[]>;
180
+ /**
181
+ * Custom metric time bucket size.
182
+ */
183
+ timeStep?: pulumi.Input<string>;
184
+ /**
185
+ * The aggregation type of the custom metric.
186
+ */
187
+ type?: pulumi.Input<string>;
188
+ /**
189
+ * The units, or the y-axis label, of the given custom metric.
190
+ */
191
+ units?: pulumi.Input<string>;
192
+ }
193
+ /**
194
+ * The set of arguments for constructing a CustomMetricJob resource.
195
+ */
196
+ export interface CustomMetricJobArgs {
197
+ /**
198
+ * The description of the Custom Metric Job.
199
+ */
200
+ description?: pulumi.Input<string>;
201
+ /**
202
+ * The directionality of the Custom Metric.
203
+ */
204
+ directionality?: pulumi.Input<string>;
205
+ /**
206
+ * The egress network policy for the Job.
207
+ */
208
+ egressNetworkPolicy?: pulumi.Input<string>;
209
+ /**
210
+ * The ID of the environment to use with the Job.
211
+ */
212
+ environmentId?: pulumi.Input<string>;
213
+ /**
214
+ * The ID of the environment version to use with the Job.
215
+ */
216
+ environmentVersionId?: pulumi.Input<string>;
217
+ /**
218
+ * The list of tuples, where values in each tuple are the local filesystem path and the path the file should be placed in the Job. If list is of strings, then basenames will be used for tuples.
219
+ */
220
+ files?: any;
221
+ /**
222
+ * The path to a folder containing files to be uploaded. Each file in the folder is uploaded under path relative to a folder path.
223
+ */
224
+ folderPath?: pulumi.Input<string>;
225
+ /**
226
+ * Determines whether the metric is related to the model or deployment.
227
+ */
228
+ isModelSpecific?: pulumi.Input<boolean>;
229
+ /**
230
+ * The name of the Custom Metric Job.
231
+ */
232
+ name?: pulumi.Input<string>;
233
+ /**
234
+ * A single identifier that represents a bundle of resources: Memory, CPU, GPU, etc.
235
+ */
236
+ resourceBundleId?: pulumi.Input<string>;
237
+ /**
238
+ * Additional parameters to be injected into a Job at runtime.
239
+ */
240
+ runtimeParameterValues?: pulumi.Input<pulumi.Input<inputs.CustomMetricJobRuntimeParameterValue>[]>;
241
+ /**
242
+ * Custom metric time bucket size.
243
+ */
244
+ timeStep?: pulumi.Input<string>;
245
+ /**
246
+ * The aggregation type of the custom metric.
247
+ */
248
+ type?: pulumi.Input<string>;
249
+ /**
250
+ * The units, or the y-axis label, of the given custom metric.
251
+ */
252
+ units?: pulumi.Input<string>;
253
+ }
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.CustomMetricJob = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Custom Job
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as datarobot from "@datarobot/pulumi-datarobot";
16
+ *
17
+ * const example = new datarobot.CustomMetricJob("example", {
18
+ * files: [
19
+ * "file1.py",
20
+ * "file2.py",
21
+ * ],
22
+ * environmentId: "65f9b27eab986d30d4c64268",
23
+ * description: "Example Custom Metric Job Description",
24
+ * runtimeParameterValues: [{
25
+ * key: "EXAMPLE_PARAM",
26
+ * type: "string",
27
+ * value: "val",
28
+ * }],
29
+ * egressNetworkPolicy: "none",
30
+ * resourceBundleId: "cpu.micro",
31
+ * units: "count",
32
+ * directionality: "lowerIsBetter",
33
+ * type: "sum",
34
+ * isModelSpecific: false,
35
+ * });
36
+ * export const exampleId = example.id;
37
+ * ```
38
+ */
39
+ class CustomMetricJob extends pulumi.CustomResource {
40
+ /**
41
+ * Get an existing CustomMetricJob resource's state with the given name, ID, and optional extra
42
+ * properties used to qualify the lookup.
43
+ *
44
+ * @param name The _unique_ name of the resulting resource.
45
+ * @param id The _unique_ provider ID of the resource to lookup.
46
+ * @param state Any extra arguments used during the lookup.
47
+ * @param opts Optional settings to control the behavior of the CustomResource.
48
+ */
49
+ static get(name, id, state, opts) {
50
+ return new CustomMetricJob(name, state, Object.assign(Object.assign({}, opts), { id: id }));
51
+ }
52
+ /**
53
+ * Returns true if the given object is an instance of CustomMetricJob. This is designed to work even
54
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
55
+ */
56
+ static isInstance(obj) {
57
+ if (obj === undefined || obj === null) {
58
+ return false;
59
+ }
60
+ return obj['__pulumiType'] === CustomMetricJob.__pulumiType;
61
+ }
62
+ constructor(name, argsOrState, opts) {
63
+ let resourceInputs = {};
64
+ opts = opts || {};
65
+ if (opts.id) {
66
+ const state = argsOrState;
67
+ resourceInputs["description"] = state ? state.description : undefined;
68
+ resourceInputs["directionality"] = state ? state.directionality : undefined;
69
+ resourceInputs["egressNetworkPolicy"] = state ? state.egressNetworkPolicy : undefined;
70
+ resourceInputs["environmentId"] = state ? state.environmentId : undefined;
71
+ resourceInputs["environmentVersionId"] = state ? state.environmentVersionId : undefined;
72
+ resourceInputs["files"] = state ? state.files : undefined;
73
+ resourceInputs["filesHashes"] = state ? state.filesHashes : undefined;
74
+ resourceInputs["folderPath"] = state ? state.folderPath : undefined;
75
+ resourceInputs["folderPathHash"] = state ? state.folderPathHash : undefined;
76
+ resourceInputs["isModelSpecific"] = state ? state.isModelSpecific : undefined;
77
+ resourceInputs["name"] = state ? state.name : undefined;
78
+ resourceInputs["resourceBundleId"] = state ? state.resourceBundleId : undefined;
79
+ resourceInputs["runtimeParameterValues"] = state ? state.runtimeParameterValues : undefined;
80
+ resourceInputs["timeStep"] = state ? state.timeStep : undefined;
81
+ resourceInputs["type"] = state ? state.type : undefined;
82
+ resourceInputs["units"] = state ? state.units : undefined;
83
+ }
84
+ else {
85
+ const args = argsOrState;
86
+ resourceInputs["description"] = args ? args.description : undefined;
87
+ resourceInputs["directionality"] = args ? args.directionality : undefined;
88
+ resourceInputs["egressNetworkPolicy"] = args ? args.egressNetworkPolicy : undefined;
89
+ resourceInputs["environmentId"] = args ? args.environmentId : undefined;
90
+ resourceInputs["environmentVersionId"] = args ? args.environmentVersionId : undefined;
91
+ resourceInputs["files"] = args ? args.files : undefined;
92
+ resourceInputs["folderPath"] = args ? args.folderPath : undefined;
93
+ resourceInputs["isModelSpecific"] = args ? args.isModelSpecific : undefined;
94
+ resourceInputs["name"] = args ? args.name : undefined;
95
+ resourceInputs["resourceBundleId"] = args ? args.resourceBundleId : undefined;
96
+ resourceInputs["runtimeParameterValues"] = args ? args.runtimeParameterValues : undefined;
97
+ resourceInputs["timeStep"] = args ? args.timeStep : undefined;
98
+ resourceInputs["type"] = args ? args.type : undefined;
99
+ resourceInputs["units"] = args ? args.units : undefined;
100
+ resourceInputs["filesHashes"] = undefined /*out*/;
101
+ resourceInputs["folderPathHash"] = undefined /*out*/;
102
+ }
103
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
104
+ super(CustomMetricJob.__pulumiType, name, resourceInputs, opts);
105
+ }
106
+ }
107
+ exports.CustomMetricJob = CustomMetricJob;
108
+ /** @internal */
109
+ CustomMetricJob.__pulumiType = 'datarobot:index/customMetricJob:CustomMetricJob';
110
+ //# sourceMappingURL=customMetricJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customMetricJob.js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