@oneuptime/cli 14.0.104 → 14.0.105
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/README.md +1 -0
- package/build/dist/Index.js +83 -26
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -274,6 +274,7 @@ Some of them, by area:
|
|
|
274
274
|
| On-call | `on-call-policy`, `on-call-policy-schedule`, `escalation-rule` |
|
|
275
275
|
| Teams and access | `team`, `team-member`, `label`, `api-key` |
|
|
276
276
|
| Infrastructure | `host`, `kubernetes-cluster`, `network-device`, `service` |
|
|
277
|
+
| Cloud | `cloud-account`, `cloud-resource`, `cloud-budget` |
|
|
277
278
|
| Automation | `workflow`, `runbook`, `dashboard` |
|
|
278
279
|
| Telemetry | `log`, `metric`, `span`, `exception-instance`, `monitor-log`, `audit-log` |
|
|
279
280
|
|
package/build/dist/Index.js
CHANGED
|
@@ -173365,6 +173365,21 @@ Service = __decorateClass([
|
|
|
173365
173365
|
})
|
|
173366
173366
|
], Service);
|
|
173367
173367
|
|
|
173368
|
+
// ../Common/Types/ReadingDirection.ts
|
|
173369
|
+
var FIRST_LETTER_REGEX = new RegExp("\\p{L}", "u");
|
|
173370
|
+
var LETTER_REGEX = new RegExp("^\\p{L}$", "u");
|
|
173371
|
+
var FIRST_STRONG_ISOLATE = String.fromCharCode(8296);
|
|
173372
|
+
var POP_DIRECTIONAL_ISOLATE = String.fromCharCode(8297);
|
|
173373
|
+
var DIGIT_REGEX = new RegExp("^\\p{Nd}$", "u");
|
|
173374
|
+
|
|
173375
|
+
// ../Common/Types/Translator.ts
|
|
173376
|
+
var translationKey = /* @__PURE__ */ __name((text) => {
|
|
173377
|
+
return text;
|
|
173378
|
+
}, "translationKey");
|
|
173379
|
+
var ACRONYM_PATTERN = new RegExp("\\p{Lu}{2,}", "u");
|
|
173380
|
+
var INNER_CAPITAL_PATTERN = new RegExp("^.+\\p{Lu}", "u");
|
|
173381
|
+
var LETTER = new RegExp("\\p{L}", "u");
|
|
173382
|
+
|
|
173368
173383
|
// ../Common/Types/Cloud/CloudPlatform.ts
|
|
173369
173384
|
var CloudProvider = /* @__PURE__ */ ((CloudProvider2) => {
|
|
173370
173385
|
CloudProvider2["AWS"] = "aws";
|
|
@@ -173393,7 +173408,9 @@ var MANAGED_CLOUD_PLATFORMS = [
|
|
|
173393
173408
|
provider: "aws" /* AWS */,
|
|
173394
173409
|
label: "AWS ECS",
|
|
173395
173410
|
productName: "AWS ECS / Fargate",
|
|
173396
|
-
description:
|
|
173411
|
+
description: translationKey(
|
|
173412
|
+
"Tasks on Amazon Elastic Container Service, on Fargate or EC2 launch types."
|
|
173413
|
+
),
|
|
173397
173414
|
docsUrl: "/docs/telemetry/cloud-aws-ecs",
|
|
173398
173415
|
detection: "detector",
|
|
173399
173416
|
instanceAttribute: "aws.ecs.task.arn",
|
|
@@ -173411,7 +173428,9 @@ var MANAGED_CLOUD_PLATFORMS = [
|
|
|
173411
173428
|
provider: "aws" /* AWS */,
|
|
173412
173429
|
label: "AWS Elastic Beanstalk",
|
|
173413
173430
|
productName: "AWS Elastic Beanstalk",
|
|
173414
|
-
description:
|
|
173431
|
+
description: translationKey(
|
|
173432
|
+
"Environments managed by AWS Elastic Beanstalk."
|
|
173433
|
+
),
|
|
173415
173434
|
docsUrl: "/docs/telemetry/cloud-other-platforms",
|
|
173416
173435
|
detection: "detector",
|
|
173417
173436
|
instanceAttribute: "host.id",
|
|
@@ -173426,7 +173445,7 @@ var MANAGED_CLOUD_PLATFORMS = [
|
|
|
173426
173445
|
provider: "aws" /* AWS */,
|
|
173427
173446
|
label: "AWS App Runner",
|
|
173428
173447
|
productName: "AWS App Runner",
|
|
173429
|
-
description: "Services running on AWS App Runner.",
|
|
173448
|
+
description: translationKey("Services running on AWS App Runner."),
|
|
173430
173449
|
docsUrl: "/docs/telemetry/cloud-other-platforms",
|
|
173431
173450
|
detection: "manual",
|
|
173432
173451
|
instanceAttribute: "host.name",
|
|
@@ -173439,7 +173458,7 @@ var MANAGED_CLOUD_PLATFORMS = [
|
|
|
173439
173458
|
provider: "gcp" /* GCP */,
|
|
173440
173459
|
label: "GCP Cloud Run",
|
|
173441
173460
|
productName: "Google Cloud Run",
|
|
173442
|
-
description: "Cloud Run services and jobs.",
|
|
173461
|
+
description: translationKey("Cloud Run services and jobs."),
|
|
173443
173462
|
docsUrl: "/docs/telemetry/cloud-gcp-cloud-run",
|
|
173444
173463
|
detection: "detector",
|
|
173445
173464
|
instanceAttribute: "faas.instance",
|
|
@@ -173453,7 +173472,9 @@ var MANAGED_CLOUD_PLATFORMS = [
|
|
|
173453
173472
|
provider: "gcp" /* GCP */,
|
|
173454
173473
|
label: "GCP App Engine",
|
|
173455
173474
|
productName: "Google App Engine",
|
|
173456
|
-
description:
|
|
173475
|
+
description: translationKey(
|
|
173476
|
+
"App Engine standard and flexible environments."
|
|
173477
|
+
),
|
|
173457
173478
|
docsUrl: "/docs/telemetry/cloud-other-platforms",
|
|
173458
173479
|
detection: "detector",
|
|
173459
173480
|
instanceAttribute: "faas.instance",
|
|
@@ -173467,7 +173488,9 @@ var MANAGED_CLOUD_PLATFORMS = [
|
|
|
173467
173488
|
provider: "azure" /* Azure */,
|
|
173468
173489
|
label: "Azure Container Apps",
|
|
173469
173490
|
productName: "Azure Container Apps",
|
|
173470
|
-
description:
|
|
173491
|
+
description: translationKey(
|
|
173492
|
+
"Container Apps replicas in a Container Apps environment."
|
|
173493
|
+
),
|
|
173471
173494
|
docsUrl: "/docs/telemetry/cloud-azure-container-apps",
|
|
173472
173495
|
/*
|
|
173473
173496
|
* The Collector's `azurecontainerapps` detector and the Node / .NET
|
|
@@ -173490,7 +173513,9 @@ var MANAGED_CLOUD_PLATFORMS = [
|
|
|
173490
173513
|
provider: "azure" /* Azure */,
|
|
173491
173514
|
label: "Azure Container Instances",
|
|
173492
173515
|
productName: "Azure Container Instances",
|
|
173493
|
-
description:
|
|
173516
|
+
description: translationKey(
|
|
173517
|
+
"Container groups on Azure Container Instances."
|
|
173518
|
+
),
|
|
173494
173519
|
docsUrl: "/docs/telemetry/cloud-other-platforms",
|
|
173495
173520
|
detection: "manual",
|
|
173496
173521
|
instanceAttribute: "host.name",
|
|
@@ -173503,7 +173528,7 @@ var MANAGED_CLOUD_PLATFORMS = [
|
|
|
173503
173528
|
provider: "azure" /* Azure */,
|
|
173504
173529
|
label: "Azure App Service",
|
|
173505
173530
|
productName: "Azure App Service",
|
|
173506
|
-
description: "Web apps on Azure App Service.",
|
|
173531
|
+
description: translationKey("Web apps on Azure App Service."),
|
|
173507
173532
|
docsUrl: "/docs/telemetry/cloud-other-platforms",
|
|
173508
173533
|
detection: "detector",
|
|
173509
173534
|
instanceAttribute: "host.id",
|
|
@@ -215303,13 +215328,6 @@ var PublicPageTheme_default = PublicPageTheme;
|
|
|
215303
215328
|
var StatusPageTheme_default = PublicPageTheme_default;
|
|
215304
215329
|
var NEW_STATUS_PAGE_THEME = PublicPageTheme_default.System;
|
|
215305
215330
|
|
|
215306
|
-
// ../Common/Types/ReadingDirection.ts
|
|
215307
|
-
var FIRST_LETTER_REGEX = new RegExp("\\p{L}", "u");
|
|
215308
|
-
var LETTER_REGEX = new RegExp("^\\p{L}$", "u");
|
|
215309
|
-
var FIRST_STRONG_ISOLATE = String.fromCharCode(8296);
|
|
215310
|
-
var POP_DIRECTIONAL_ISOLATE = String.fromCharCode(8297);
|
|
215311
|
-
var DIGIT_REGEX = new RegExp("^\\p{Nd}$", "u");
|
|
215312
|
-
|
|
215313
215331
|
// ../Common/Types/StatusPage/StatusPageLanguage.ts
|
|
215314
215332
|
var DEFAULT_STATUS_PAGE_LANGUAGE = "en";
|
|
215315
215333
|
var SUPPORTED_STATUS_PAGE_LANGUAGES = [
|
|
@@ -233665,6 +233683,7 @@ var CloudAccount = class extends DatabaseBaseModel {
|
|
|
233665
233683
|
this.aiAccessLastVerifiedAt = void 0;
|
|
233666
233684
|
this.aiAccessLastError = void 0;
|
|
233667
233685
|
this.aiAccessConfiguredAt = void 0;
|
|
233686
|
+
this.aiAgentKeys = void 0;
|
|
233668
233687
|
}
|
|
233669
233688
|
};
|
|
233670
233689
|
__name(CloudAccount, "CloudAccount");
|
|
@@ -234232,6 +234251,16 @@ __decorateClass([
|
|
|
234232
234251
|
nullable: true
|
|
234233
234252
|
})
|
|
234234
234253
|
], CloudAccount.prototype, "aiAccessConfiguredAt", 2);
|
|
234254
|
+
__decorateClass([
|
|
234255
|
+
ColumnAccessControl_default({ create: [], read: [], update: [] }),
|
|
234256
|
+
TableColumn_default({
|
|
234257
|
+
type: TableColumnType_default.JSON,
|
|
234258
|
+
required: false,
|
|
234259
|
+
title: "AI Agent Keys",
|
|
234260
|
+
description: "SHA-256 of the keys the account's Cloud AI agent connects with, and of the ones made for a setup command. Server only; never readable."
|
|
234261
|
+
}),
|
|
234262
|
+
Column({ type: ColumnType_default.JSON, nullable: true })
|
|
234263
|
+
], CloudAccount.prototype, "aiAgentKeys", 2);
|
|
234235
234264
|
CloudAccount = __decorateClass([
|
|
234236
234265
|
AccessControlColumn_default("labels"),
|
|
234237
234266
|
EnableDocumentation_default(),
|
|
@@ -234834,6 +234863,7 @@ var CloudBudget = class extends DatabaseBaseModel {
|
|
|
234834
234863
|
this.currency = void 0;
|
|
234835
234864
|
this.alertThresholds = void 0;
|
|
234836
234865
|
this.alertOnProjection = void 0;
|
|
234866
|
+
this.alertOnAnomaly = void 0;
|
|
234837
234867
|
this.alertSeverity = void 0;
|
|
234838
234868
|
this.alertSeverityId = void 0;
|
|
234839
234869
|
this.onCallDutyPolicies = void 0;
|
|
@@ -235083,6 +235113,26 @@ __decorateClass([
|
|
|
235083
235113
|
default: true
|
|
235084
235114
|
})
|
|
235085
235115
|
], CloudBudget.prototype, "alertOnProjection", 2);
|
|
235116
|
+
__decorateClass([
|
|
235117
|
+
ColumnAccessControl_default({
|
|
235118
|
+
create: createPermissions5,
|
|
235119
|
+
read: readPermissions8,
|
|
235120
|
+
update: updatePermissions5
|
|
235121
|
+
}),
|
|
235122
|
+
TableColumn_default({
|
|
235123
|
+
required: true,
|
|
235124
|
+
type: TableColumnType_default.Boolean,
|
|
235125
|
+
title: "Alert On Unusual Days",
|
|
235126
|
+
description: "Also alert when a day costs far more than usual: a service at twice its usual day, or the whole account at one and a half times.",
|
|
235127
|
+
defaultValue: true,
|
|
235128
|
+
isDefaultValueColumn: true
|
|
235129
|
+
}),
|
|
235130
|
+
Column({
|
|
235131
|
+
type: ColumnType_default.Boolean,
|
|
235132
|
+
nullable: false,
|
|
235133
|
+
default: true
|
|
235134
|
+
})
|
|
235135
|
+
], CloudBudget.prototype, "alertOnAnomaly", 2);
|
|
235086
235136
|
__decorateClass([
|
|
235087
235137
|
ColumnAccessControl_default({
|
|
235088
235138
|
create: createPermissions5,
|
|
@@ -235314,6 +235364,7 @@ __decorateClass([
|
|
|
235314
235364
|
], CloudBudget.prototype, "deletedByUserId", 2);
|
|
235315
235365
|
CloudBudget = __decorateClass([
|
|
235316
235366
|
EnableDocumentation_default(),
|
|
235367
|
+
EnableMCP_default(),
|
|
235317
235368
|
TableBillingAccessControl_default({
|
|
235318
235369
|
create: "Free" /* Free */,
|
|
235319
235370
|
read: "Free" /* Free */,
|
|
@@ -235340,14 +235391,6 @@ CloudBudget = __decorateClass([
|
|
|
235340
235391
|
})
|
|
235341
235392
|
], CloudBudget);
|
|
235342
235393
|
|
|
235343
|
-
// ../Common/Types/Translator.ts
|
|
235344
|
-
var translationKey = /* @__PURE__ */ __name((text) => {
|
|
235345
|
-
return text;
|
|
235346
|
-
}, "translationKey");
|
|
235347
|
-
var ACRONYM_PATTERN = new RegExp("\\p{Lu}{2,}", "u");
|
|
235348
|
-
var INNER_CAPITAL_PATTERN = new RegExp("^.+\\p{Lu}", "u");
|
|
235349
|
-
var LETTER = new RegExp("\\p{L}", "u");
|
|
235350
|
-
|
|
235351
235394
|
// ../Common/Types/Cloud/CloudCost.ts
|
|
235352
235395
|
var CLOUD_COSTS_INTERVAL_MS = 12 * 60 * 60 * 1e3;
|
|
235353
235396
|
var CLOUD_SAVINGS_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -235440,6 +235483,7 @@ var CloudCostRecommendation = class extends DatabaseBaseModel {
|
|
|
235440
235483
|
this.currency = void 0;
|
|
235441
235484
|
this.effort = void 0;
|
|
235442
235485
|
this.source = void 0;
|
|
235486
|
+
this.evidence = void 0;
|
|
235443
235487
|
this.lastSeenAt = void 0;
|
|
235444
235488
|
this.createdByUserId = void 0;
|
|
235445
235489
|
this.deletedByUser = void 0;
|
|
@@ -235777,7 +235821,7 @@ __decorateClass([
|
|
|
235777
235821
|
required: true,
|
|
235778
235822
|
type: TableColumnType_default.ShortText,
|
|
235779
235823
|
title: "Source",
|
|
235780
|
-
description: "Which recommender made it: AWS Cost Optimization Hub, Azure Advisor
|
|
235824
|
+
description: "Which recommender made it: AWS Cost Optimization Hub, Azure Advisor, Google Cloud Recommender or OneUptime."
|
|
235781
235825
|
}),
|
|
235782
235826
|
Column({
|
|
235783
235827
|
nullable: false,
|
|
@@ -235785,6 +235829,19 @@ __decorateClass([
|
|
|
235785
235829
|
length: ColumnLength_default.ShortText
|
|
235786
235830
|
})
|
|
235787
235831
|
], CloudCostRecommendation.prototype, "source", 2);
|
|
235832
|
+
__decorateClass([
|
|
235833
|
+
ColumnAccessControl_default({ create: [], read: READ_PERMISSIONS14, update: [] }),
|
|
235834
|
+
TableColumn_default({
|
|
235835
|
+
required: false,
|
|
235836
|
+
type: TableColumnType_default.JSON,
|
|
235837
|
+
title: "Evidence",
|
|
235838
|
+
description: "For a right-sizing OneUptime worked out from its own readings: the CPU and memory readings and the days it was judged from."
|
|
235839
|
+
}),
|
|
235840
|
+
Column({
|
|
235841
|
+
nullable: true,
|
|
235842
|
+
type: ColumnType_default.JSON
|
|
235843
|
+
})
|
|
235844
|
+
], CloudCostRecommendation.prototype, "evidence", 2);
|
|
235788
235845
|
__decorateClass([
|
|
235789
235846
|
ColumnAccessControl_default({ create: [], read: READ_PERMISSIONS14, update: [] }),
|
|
235790
235847
|
TableColumn_default({
|
|
@@ -235865,7 +235922,7 @@ CloudCostRecommendation = __decorateClass([
|
|
|
235865
235922
|
singularName: "Cloud Cost Recommendation",
|
|
235866
235923
|
pluralName: "Cloud Cost Recommendations",
|
|
235867
235924
|
icon: IconProp_default.Billing,
|
|
235868
|
-
tableDescription: "Ways to spend less in your connected cloud accounts - rightsizing, idle resources, newer generations and commitments - with what each saves a month, from AWS Cost Optimization Hub, Azure Advisor
|
|
235925
|
+
tableDescription: "Ways to spend less in your connected cloud accounts - rightsizing, idle resources, newer generations and commitments - with what each saves a month, from AWS Cost Optimization Hub, Azure Advisor, Google Cloud's Recommender and OneUptime's own CPU and memory readings. Written by the cloud connections; not user-editable."
|
|
235869
235926
|
}),
|
|
235870
235927
|
Index(["projectId", "provider", "recommendationId"], {
|
|
235871
235928
|
unique: true
|
|
@@ -295781,7 +295838,7 @@ __decorateClass([
|
|
|
295781
295838
|
type: TableColumnType_default.Boolean,
|
|
295782
295839
|
canReadOnRelationQuery: true,
|
|
295783
295840
|
title: "Run in Real Time",
|
|
295784
|
-
description: "Whether
|
|
295841
|
+
description: "Whether events are checked against this rule as they arrive, within seconds, instead of every evaluation interval. A rule that counts, and a correlation, count in windows as long as the evaluation interval and fire at most once in each. Not for a rule with a regular expression.",
|
|
295785
295842
|
defaultValue: false,
|
|
295786
295843
|
isDefaultValueColumn: true
|
|
295787
295844
|
}),
|