@polaris-sloc/cost-efficiency
Advanced tools
Comparing version 0.2.0-beta.27 to 0.2.0-beta.28
{ | ||
"name": "@polaris-sloc/cost-efficiency", | ||
"version": "0.2.0-beta.27", | ||
"version": "0.2.0-beta.28", | ||
"license": "Apache-2.0", | ||
@@ -9,3 +9,3 @@ "author": "Polaris SLO Cloud Authors", | ||
"peerDependencies": { | ||
"@polaris-sloc/core": "~0.2.0-beta.27" | ||
"@polaris-sloc/core": "~0.2.0-beta.28" | ||
}, | ||
@@ -15,9 +15,9 @@ "main": "./src/index.js", | ||
"dependencies": { | ||
"change-case": "^4.1.2", | ||
"class-transformer": "~0.5.1", | ||
"lodash": "^4.17.21", | ||
"reflect-metadata": "~0.1.13", | ||
"rxjs": "6.6.7", | ||
"change-case": "^4.1.2", | ||
"class-transformer": "~0.4.0", | ||
"lodash": "^4.17.21", | ||
"@polaris-sloc/common-mappings": "0.2.0-beta.27" | ||
"@polaris-sloc/common-mappings": "0.2.0-beta.28" | ||
} | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./lib/metrics"), exports); | ||
tslib_1.__exportStar(require("./lib/cost-efficiency-init"), exports); | ||
(0, tslib_1.__exportStar)(require("./lib/metrics"), exports); | ||
(0, tslib_1.__exportStar)(require("./lib/cost-efficiency-init"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./kube-cost"), exports); | ||
tslib_1.__exportStar(require("./rest-api-cost-efficiency"), exports); | ||
(0, tslib_1.__exportStar)(require("./kube-cost"), exports); | ||
(0, tslib_1.__exportStar)(require("./rest-api-cost-efficiency"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./kube-cost-metric-source"), exports); | ||
tslib_1.__exportStar(require("./kube-cost-metric-source.factory"), exports); | ||
(0, tslib_1.__exportStar)(require("./kube-cost-metric-source"), exports); | ||
(0, tslib_1.__exportStar)(require("./kube-cost-metric-source.factory"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -16,3 +16,3 @@ "use strict"; | ||
getValueStream() { | ||
return this.getDefaultPollingInterval().pipe(operators_1.switchMap(() => this.getCost()), operators_1.map(totalCost => ({ | ||
return this.getDefaultPollingInterval().pipe((0, operators_1.switchMap)(() => this.getCost()), (0, operators_1.map)(totalCost => ({ | ||
value: totalCost, | ||
@@ -23,3 +23,3 @@ timestamp: new Date().valueOf(), | ||
getCost() { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
const memoryHourlyCostQuery = this.metricsSource.getTimeSeriesSource() | ||
@@ -26,0 +26,0 @@ .select('node', 'ram_hourly_cost'); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./rest-api-cost-efficiency-metric-source"), exports); | ||
tslib_1.__exportStar(require("./rest-api-cost-efficiency-metric-source.factory"), exports); | ||
(0, tslib_1.__exportStar)(require("./rest-api-cost-efficiency-metric-source"), exports); | ||
(0, tslib_1.__exportStar)(require("./rest-api-cost-efficiency-metric-source.factory"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -21,8 +21,8 @@ "use strict"; | ||
getValueStream() { | ||
const _a = this.params, { targetThreshold } = _a, costParams = tslib_1.__rest(_a, ["targetThreshold"]); | ||
const _a = this.params, { targetThreshold } = _a, costParams = (0, tslib_1.__rest)(_a, ["targetThreshold"]); | ||
const costSource = this.metricsSource.getComposedMetricSource(common_mappings_1.TotalCostMetric.instance, costParams); | ||
return this.getDefaultPollingInterval().pipe(operators_1.switchMap(() => this.getPercentileFasterThanThreshold()), operators_1.withLatestFrom(costSource.getValueStream()), | ||
return this.getDefaultPollingInterval().pipe((0, operators_1.switchMap)(() => this.getPercentileFasterThanThreshold()), (0, operators_1.withLatestFrom)(costSource.getValueStream()), | ||
// For some reason the TypeScript compiler reports a TS2345 if we don't declare the types of the tuple's members | ||
// even though the TS language server in VS Code reports that everything is fine. | ||
operators_1.map(([reqFasterThan, totalCost]) => ({ | ||
(0, operators_1.map)(([reqFasterThan, totalCost]) => ({ | ||
value: this.computeCostEfficiency(reqFasterThan, totalCost.value), | ||
@@ -40,3 +40,3 @@ timestamp: new Date().valueOf(), | ||
getPercentileFasterThanThreshold() { | ||
return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () { | ||
const fasterThanBucketQuery = this.metricsSource.getTimeSeriesSource() | ||
@@ -43,0 +43,0 @@ .select('nginx', 'ingress_controller_request_duration_seconds_bucket', core_1.TimeRange.fromDuration(core_1.Duration.fromMinutes(1))) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25361
+ Added@polaris-sloc/common-mappings@0.2.0-beta.28(transitive)
- Removed@polaris-sloc/common-mappings@0.2.0-beta.27(transitive)
- Removedclass-transformer@0.4.1(transitive)
Updatedclass-transformer@~0.5.1