Skip to content

Commit 0f662de

Browse files
Saas 3255 (#513)
* SAAS-3255 add step metrics
1 parent 85c3d46 commit 0f662de

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/logic/entities/StepType.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ class StepType extends Entity {
1414
this.stage = this.info.metadata.stage;
1515
this.created = this.info.metadata.created_at ? new Date(this.info.metadata.created_at) : undefined;
1616
this.updated = this.info.metadata.updated_at ? new Date(this.info.metadata.updated_at) : undefined;
17+
this.metrics = this.info.metrics || {};
1718
this.defaultColumns = ['name', 'version', 'category', 'official', 'visibility', 'stage', 'updated', 'created'];
1819
this.wideColumns = this.defaultColumns;
1920
}
2021

2122
static fromResponse(response) {
22-
return new StepType(_.pick(response, 'version', 'kind', 'metadata', 'spec'));
23+
return new StepType(_.pick(response, 'version', 'kind', 'metadata', 'spec', 'metrics'));
2324
}
2425
}
2526

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.68.16",
3+
"version": "0.68.17",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)