Skip to content

Commit 424f63d

Browse files
author
awstools
committed
feat(client-lookoutequipment): This feature allows customers to see pointwise model diagnostics results for their models.
1 parent adada71 commit 424f63d

File tree

8 files changed

+258
-14
lines changed

8 files changed

+258
-14
lines changed

clients/client-lookoutequipment/src/commands/CreateModelCommand.ts

+7
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ export interface CreateModelCommandOutput extends CreateModelResponse, __Metadat
7373
* },
7474
* ],
7575
* OffCondition: "STRING_VALUE",
76+
* ModelDiagnosticsOutputConfiguration: { // ModelDiagnosticsOutputConfiguration
77+
* S3OutputConfiguration: { // ModelDiagnosticsS3OutputConfiguration
78+
* Bucket: "STRING_VALUE", // required
79+
* Prefix: "STRING_VALUE",
80+
* },
81+
* KmsKeyId: "STRING_VALUE",
82+
* },
7683
* };
7784
* const command = new CreateModelCommand(input);
7885
* const response = await client.send(command);

clients/client-lookoutequipment/src/commands/DescribeModelCommand.ts

+7
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ export interface DescribeModelCommandOutput extends DescribeModelResponse, __Met
9191
* // AccumulatedInferenceDataStartTime: new Date("TIMESTAMP"),
9292
* // AccumulatedInferenceDataEndTime: new Date("TIMESTAMP"),
9393
* // RetrainingSchedulerStatus: "PENDING" || "RUNNING" || "STOPPING" || "STOPPED",
94+
* // ModelDiagnosticsOutputConfiguration: { // ModelDiagnosticsOutputConfiguration
95+
* // S3OutputConfiguration: { // ModelDiagnosticsS3OutputConfiguration
96+
* // Bucket: "STRING_VALUE", // required
97+
* // Prefix: "STRING_VALUE",
98+
* // },
99+
* // KmsKeyId: "STRING_VALUE",
100+
* // },
94101
* // };
95102
*
96103
* ```

clients/client-lookoutequipment/src/commands/DescribeModelVersionCommand.ts

+11
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,17 @@ export interface DescribeModelVersionCommandOutput extends DescribeModelVersionR
8282
* // RetrainingAvailableDataInDays: Number("int"),
8383
* // AutoPromotionResult: "MODEL_PROMOTED" || "MODEL_NOT_PROMOTED" || "RETRAINING_INTERNAL_ERROR" || "RETRAINING_CUSTOMER_ERROR" || "RETRAINING_CANCELLED",
8484
* // AutoPromotionResultReason: "STRING_VALUE",
85+
* // ModelDiagnosticsOutputConfiguration: { // ModelDiagnosticsOutputConfiguration
86+
* // S3OutputConfiguration: { // ModelDiagnosticsS3OutputConfiguration
87+
* // Bucket: "STRING_VALUE", // required
88+
* // Prefix: "STRING_VALUE",
89+
* // },
90+
* // KmsKeyId: "STRING_VALUE",
91+
* // },
92+
* // ModelDiagnosticsResultsObject: { // S3Object
93+
* // Bucket: "STRING_VALUE", // required
94+
* // Key: "STRING_VALUE", // required
95+
* // },
8596
* // };
8697
*
8798
* ```

clients/client-lookoutequipment/src/commands/ListModelsCommand.ts

+7
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ export interface ListModelsCommandOutput extends ListModelsResponse, __MetadataB
6262
* // LatestScheduledRetrainingStartTime: new Date("TIMESTAMP"),
6363
* // NextScheduledRetrainingStartDate: new Date("TIMESTAMP"),
6464
* // RetrainingSchedulerStatus: "PENDING" || "RUNNING" || "STOPPING" || "STOPPED",
65+
* // ModelDiagnosticsOutputConfiguration: { // ModelDiagnosticsOutputConfiguration
66+
* // S3OutputConfiguration: { // ModelDiagnosticsS3OutputConfiguration
67+
* // Bucket: "STRING_VALUE", // required
68+
* // Prefix: "STRING_VALUE",
69+
* // },
70+
* // KmsKeyId: "STRING_VALUE",
71+
* // },
6572
* // },
6673
* // ],
6774
* // };

clients/client-lookoutequipment/src/commands/UpdateModelCommand.ts

+7
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ export interface UpdateModelCommandOutput extends __MetadataBearer {}
4545
* LabelGroupName: "STRING_VALUE",
4646
* },
4747
* RoleArn: "STRING_VALUE",
48+
* ModelDiagnosticsOutputConfiguration: { // ModelDiagnosticsOutputConfiguration
49+
* S3OutputConfiguration: { // ModelDiagnosticsS3OutputConfiguration
50+
* Bucket: "STRING_VALUE", // required
51+
* Prefix: "STRING_VALUE",
52+
* },
53+
* KmsKeyId: "STRING_VALUE",
54+
* },
4855
* };
4956
* const command = new UpdateModelCommand(input);
5057
* const response = await client.send(command);

clients/client-lookoutequipment/src/models/models_0.ts

+104-5
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,49 @@ export interface LabelsInputConfiguration {
768768
LabelGroupName?: string;
769769
}
770770

771+
/**
772+
* @public
773+
* <p>The Amazon S3 location for the pointwise model diagnostics for an Amazon Lookout for Equipment model. </p>
774+
*/
775+
export interface ModelDiagnosticsS3OutputConfiguration {
776+
/**
777+
* @public
778+
* <p>The name of the Amazon S3 bucket where the pointwise model diagnostics are located. You must be the owner of the Amazon S3 bucket. </p>
779+
*/
780+
Bucket: string | undefined;
781+
782+
/**
783+
* @public
784+
* <p>The Amazon S3 prefix for the location of the pointwise model diagnostics. The
785+
* prefix specifies the folder and evaluation result file name.
786+
* (<code>bucket</code>).</p>
787+
* <p>When you call <code>CreateModel</code> or <code>UpdateModel</code>, specify the path
788+
* within the bucket that you want Lookout for Equipment to save the model to. During training, Lookout for Equipment creates the model evaluation model
789+
* as a compressed JSON file with the name <code>model_diagnostics_results.json.gz</code>.</p>
790+
* <p>When you call <code>DescribeModel</code> or <code>DescribeModelVersion</code>, <code>prefix</code> contains
791+
* the file path and filename of the model evaluation file. </p>
792+
*/
793+
Prefix?: string;
794+
}
795+
796+
/**
797+
* @public
798+
* <p>Output configuration information for the pointwise model diagnostics for an Amazon Lookout for Equipment model.</p>
799+
*/
800+
export interface ModelDiagnosticsOutputConfiguration {
801+
/**
802+
* @public
803+
* <p>The Amazon S3 location for the pointwise model diagnostics. </p>
804+
*/
805+
S3OutputConfiguration: ModelDiagnosticsS3OutputConfiguration | undefined;
806+
807+
/**
808+
* @public
809+
* <p>The Amazon Web Services Key Management Service (KMS) key identifier to encrypt the pointwise model diagnostics files.</p>
810+
*/
811+
KmsKeyId?: string;
812+
}
813+
771814
/**
772815
* @public
773816
*/
@@ -873,6 +916,15 @@ export interface CreateModelRequest {
873916
* evaluation, or inference.</p>
874917
*/
875918
OffCondition?: string;
919+
920+
/**
921+
* @public
922+
* <p>The Amazon S3 location where you want Amazon Lookout for Equipment to save the pointwise model diagnostics.
923+
*
924+
*
925+
* You must also specify the <code>RoleArn</code> request parameter.</p>
926+
*/
927+
ModelDiagnosticsOutputConfiguration?: ModelDiagnosticsOutputConfiguration;
876928
}
877929

878930
/**
@@ -1151,7 +1203,7 @@ export interface MissingCompleteSensorData {
11511203
export interface SensorsWithShortDateRange {
11521204
/**
11531205
* @public
1154-
* <p> Indicates the number of sensors that have less than 90 days of data. </p>
1206+
* <p> Indicates the number of sensors that have less than 14 days of data. </p>
11551207
*/
11561208
AffectedSensorCount: number | undefined;
11571209
}
@@ -1172,7 +1224,7 @@ export interface InsufficientSensorData {
11721224
/**
11731225
* @public
11741226
* <p> Parameter that describes the total number of sensors that have a short date range of
1175-
* less than 90 days of data overall. </p>
1227+
* less than 14 days of data overall. </p>
11761228
*/
11771229
SensorsWithShortDateRange: SensorsWithShortDateRange | undefined;
11781230
}
@@ -1553,7 +1605,7 @@ export interface DescribeDatasetResponse {
15531605

15541606
/**
15551607
* @public
1556-
* <p> IngestedFilesSummary associated with the given dataset for the latest successful
1608+
* <p>IngestedFilesSummary associated with the given dataset for the latest successful
15571609
* associated ingestion job id. </p>
15581610
*/
15591611
IngestedFilesSummary?: IngestedFilesSummary;
@@ -2159,6 +2211,12 @@ export interface DescribeModelResponse {
21592211
* <p>Indicates the status of the retraining scheduler. </p>
21602212
*/
21612213
RetrainingSchedulerStatus?: RetrainingSchedulerStatus;
2214+
2215+
/**
2216+
* @public
2217+
* <p>Configuration information for the model's pointwise model diagnostics.</p>
2218+
*/
2219+
ModelDiagnosticsOutputConfiguration?: ModelDiagnosticsOutputConfiguration;
21622220
}
21632221

21642222
/**
@@ -2423,6 +2481,18 @@ export interface DescribeModelVersionResponse {
24232481
* better than the previous model. </p>
24242482
*/
24252483
AutoPromotionResultReason?: string;
2484+
2485+
/**
2486+
* @public
2487+
* <p>The Amazon S3 location where Amazon Lookout for Equipment saves the pointwise model diagnostics for the model version.</p>
2488+
*/
2489+
ModelDiagnosticsOutputConfiguration?: ModelDiagnosticsOutputConfiguration;
2490+
2491+
/**
2492+
* @public
2493+
* <p>The Amazon S3 output prefix for where Lookout for Equipment saves the pointwise model diagnostics for the model version.</p>
2494+
*/
2495+
ModelDiagnosticsResultsObject?: S3Object;
24262496
}
24272497

24282498
/**
@@ -3177,7 +3247,13 @@ export interface ListInferenceExecutionsResponse {
31773247
* @public
31783248
* <p>Provides an array of information about the individual inference executions returned from
31793249
* the <code>ListInferenceExecutions</code> operation, including model used, inference
3180-
* scheduler, data configuration, and so on. </p>
3250+
* scheduler, data configuration, and so on. </p>
3251+
* <note>
3252+
* <p>If you don't supply the <code>InferenceSchedulerName</code> request parameter, or
3253+
* if you supply the name of an inference scheduler that doesn't exist,
3254+
* <code>ListInferenceExecutions</code> returns an empty array in
3255+
* <code>InferenceExecutionSummaries</code>.</p>
3256+
* </note>
31813257
*/
31823258
InferenceExecutionSummaries?: InferenceExecutionSummary[];
31833259
}
@@ -3383,7 +3459,7 @@ export interface ListLabelGroupsResponse {
33833459
export interface ListLabelsRequest {
33843460
/**
33853461
* @public
3386-
* <p> Retruns the name of the label group. </p>
3462+
* <p> Returns the name of the label group. </p>
33873463
*/
33883464
LabelGroupName: string | undefined;
33893465

@@ -3502,6 +3578,11 @@ export interface ListLabelsResponse {
35023578
/**
35033579
* @public
35043580
* <p> A summary of the items in the label group. </p>
3581+
* <note>
3582+
* <p>If you don't supply the <code>LabelGroupName</code> request parameter, or if you supply
3583+
* the name of a label group that doesn't exist, <code>ListLabels</code> returns an empty array in
3584+
* <code>LabelSummaries</code>.</p>
3585+
* </note>
35053586
*/
35063587
LabelSummaries?: LabelSummary[];
35073588
}
@@ -3630,6 +3711,12 @@ export interface ModelSummary {
36303711
* <p>Indicates the status of the retraining scheduler. </p>
36313712
*/
36323713
RetrainingSchedulerStatus?: RetrainingSchedulerStatus;
3714+
3715+
/**
3716+
* @public
3717+
* <p>Output configuration information for the pointwise model diagnostics for an Amazon Lookout for Equipment model.</p>
3718+
*/
3719+
ModelDiagnosticsOutputConfiguration?: ModelDiagnosticsOutputConfiguration;
36333720
}
36343721

36353722
/**
@@ -3780,6 +3867,11 @@ export interface ListModelVersionsResponse {
37803867
* @public
37813868
* <p>Provides information on the specified model version, including the created time, model
37823869
* and dataset ARNs, and status.</p>
3870+
* <note>
3871+
* <p>If you don't supply the <code>ModelName</code> request parameter, or if you supply the name
3872+
* of a model that doesn't exist, <code>ListModelVersions</code> returns an empty array in
3873+
* <code>ModelVersionSummaries</code>. </p>
3874+
* </note>
37833875
*/
37843876
ModelVersionSummaries?: ModelVersionSummary[];
37853877
}
@@ -4644,6 +4736,13 @@ export interface UpdateModelRequest {
46444736
* <p>The ARN of the model to update.</p>
46454737
*/
46464738
RoleArn?: string;
4739+
4740+
/**
4741+
* @public
4742+
* <p>The Amazon S3 location where you want Amazon Lookout for Equipment to save the pointwise model diagnostics for the model.
4743+
* You must also specify the <code>RoleArn</code> request parameter.</p>
4744+
*/
4745+
ModelDiagnosticsOutputConfiguration?: ModelDiagnosticsOutputConfiguration;
46474746
}
46484747

46494748
/**

clients/client-lookoutequipment/src/protocols/Aws_json1_0.ts

+15
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@ import {
224224
ListSensorStatisticsRequest,
225225
ListSensorStatisticsResponse,
226226
ListTagsForResourceRequest,
227+
ModelDiagnosticsOutputConfiguration,
228+
ModelDiagnosticsS3OutputConfiguration,
227229
ModelSummary,
228230
ModelVersionSummary,
229231
PutResourcePolicyRequest,
@@ -2047,6 +2049,7 @@ const se_CreateModelRequest = (input: CreateModelRequest, context: __SerdeContex
20472049
EvaluationDataEndTime: (_) => Math.round(_.getTime() / 1000),
20482050
EvaluationDataStartTime: (_) => Math.round(_.getTime() / 1000),
20492051
LabelsInputConfiguration: _json,
2052+
ModelDiagnosticsOutputConfiguration: _json,
20502053
ModelName: [],
20512054
OffCondition: [],
20522055
RoleArn: [],
@@ -2239,6 +2242,10 @@ const se_ListModelVersionsRequest = (input: ListModelVersionsRequest, context: _
22392242

22402243
// se_ListTagsForResourceRequest omitted.
22412244

2245+
// se_ModelDiagnosticsOutputConfiguration omitted.
2246+
2247+
// se_ModelDiagnosticsS3OutputConfiguration omitted.
2248+
22422249
/**
22432250
* serializeAws_json1_0PutResourcePolicyRequest
22442251
*/
@@ -2491,6 +2498,7 @@ const de_DescribeModelResponse = (output: any, context: __SerdeContext): Describ
24912498
LatestScheduledRetrainingStartTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
24922499
LatestScheduledRetrainingStatus: __expectString,
24932500
ModelArn: __expectString,
2501+
ModelDiagnosticsOutputConfiguration: _json,
24942502
ModelMetrics: (_: any) => new __LazyJsonString(_),
24952503
ModelName: __expectString,
24962504
ModelVersionActivatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -2533,6 +2541,8 @@ const de_DescribeModelVersionResponse = (output: any, context: __SerdeContext):
25332541
LabelsInputConfiguration: _json,
25342542
LastUpdatedTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
25352543
ModelArn: __expectString,
2544+
ModelDiagnosticsOutputConfiguration: _json,
2545+
ModelDiagnosticsResultsObject: _json,
25362546
ModelMetrics: __expectString,
25372547
ModelName: __expectString,
25382548
ModelVersion: __expectLong,
@@ -2843,6 +2853,10 @@ const de_ListSensorStatisticsResponse = (output: any, context: __SerdeContext):
28432853

28442854
// de_MissingSensorData omitted.
28452855

2856+
// de_ModelDiagnosticsOutputConfiguration omitted.
2857+
2858+
// de_ModelDiagnosticsS3OutputConfiguration omitted.
2859+
28462860
/**
28472861
* deserializeAws_json1_0ModelSummaries
28482862
*/
@@ -2869,6 +2883,7 @@ const de_ModelSummary = (output: any, context: __SerdeContext): ModelSummary =>
28692883
LatestScheduledRetrainingStartTime: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
28702884
LatestScheduledRetrainingStatus: __expectString,
28712885
ModelArn: __expectString,
2886+
ModelDiagnosticsOutputConfiguration: _json,
28722887
ModelName: __expectString,
28732888
NextScheduledRetrainingStartDate: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
28742889
RetrainingSchedulerStatus: __expectString,

0 commit comments

Comments
 (0)