iguazio.dashboard-controls 1.3.0 → 1.3.1
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/dist/js/iguazio.dashboard-controls.js +4870 -4871
- package/dist/less/iguazio.dashboard-controls.less +1803 -1803
- package/package.json +1 -1
- package/src/nuclio/common/screens/create-function/function-from-scratch/function-from-scratch.component.js +0 -6
- package/src/nuclio/common/screens/create-function/function-from-template/function-from-template.component.js +0 -6
- package/src/nuclio/functions/functions.component.js +20 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iguazio.dashboard-controls",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"main": "dist/js/iguazio.dashboard-controls.js",
|
|
5
5
|
"description": "Collection of resources (such as CSS styles, fonts and images) and AngularJs 1.x components and services to share among different Iguazio repos.",
|
|
6
6
|
"repository": {
|
|
@@ -218,12 +218,6 @@ such restriction.
|
|
|
218
218
|
'0sIGVycm9yKSB7DQogICAgcmV0dXJuIG5pbCwgbmlsDQp9', // source code in base64
|
|
219
219
|
visible: true
|
|
220
220
|
},
|
|
221
|
-
{
|
|
222
|
-
id: 'python:3.9',
|
|
223
|
-
name: 'Python 3.9',
|
|
224
|
-
sourceCode: 'ZGVmIGhhbmRsZXIoY29udGV4dCwgZXZlbnQpOg0KICAgIHJldHVybiAiIg==', // source code in base64
|
|
225
|
-
visible: true
|
|
226
|
-
},
|
|
227
221
|
{
|
|
228
222
|
id: 'python:3.10',
|
|
229
223
|
name: 'Python 3.10',
|
|
@@ -385,12 +385,6 @@ such restriction.
|
|
|
385
385
|
name: 'Go',
|
|
386
386
|
visible: true
|
|
387
387
|
},
|
|
388
|
-
{
|
|
389
|
-
id: 'python:3.9',
|
|
390
|
-
name: 'Python 3.9',
|
|
391
|
-
sourceCode: 'ZGVmIGhhbmRsZXIoY29udGV4dCwgZXZlbnQpOg0KICAgIHJldHVybiAiIg==', // source code in base64
|
|
392
|
-
visible: true
|
|
393
|
-
},
|
|
394
388
|
{
|
|
395
389
|
id: 'python:3.10',
|
|
396
390
|
name: 'Python 3.10',
|
|
@@ -718,9 +718,8 @@ such restriction.
|
|
|
718
718
|
var projectName = '{project_name="' + ctrl.project.metadata.name + '"}';
|
|
719
719
|
var gpuUtilizationMetric = ' * on (pod) group_left(function_name)(nuclio_function_pod_labels{project_name="' +
|
|
720
720
|
ctrl.project.metadata.name + '"})';
|
|
721
|
-
var invocationMetricQuery = 'increase(' + ctrl.functionEventsMetric + functionEventsProjectName + '[24h])';
|
|
722
721
|
var args = {
|
|
723
|
-
metric:
|
|
722
|
+
metric: ctrl.functionEventsMetric + functionEventsProjectName,
|
|
724
723
|
from: from,
|
|
725
724
|
until: until,
|
|
726
725
|
interval: '5m'
|
|
@@ -782,9 +781,25 @@ such restriction.
|
|
|
782
781
|
});
|
|
783
782
|
|
|
784
783
|
if (lodash.isObject(funcStats)) {
|
|
785
|
-
var latestValue
|
|
786
|
-
|
|
787
|
-
|
|
784
|
+
var latestValue
|
|
785
|
+
|
|
786
|
+
if ([ctrl.functionCPUMetric, ctrl.functionMemoryMetric, ctrl.functionGPUMetric].includes(type)) {
|
|
787
|
+
latestValue = lodash.sum(lodash.map(funcStats, function (stat) {
|
|
788
|
+
return Number(lodash.last(stat.values)[1]);
|
|
789
|
+
}));
|
|
790
|
+
} else {
|
|
791
|
+
latestValue = lodash.sum(lodash.map(funcStats, function (stat) {
|
|
792
|
+
if (!stat.values || stat.values.length === 0) {
|
|
793
|
+
return 0;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
var first = lodash.head(stat.values);
|
|
797
|
+
var last = lodash.last(stat.values);
|
|
798
|
+
|
|
799
|
+
return Number(last[1]) - Number(first[1]);
|
|
800
|
+
}));
|
|
801
|
+
}
|
|
802
|
+
|
|
788
803
|
|
|
789
804
|
// calculating of invocation per second regarding last timestamps
|
|
790
805
|
var invocationPerSec = lodash.chain(funcStats)
|