@oneuptime/common 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/Models/DatabaseModels/CloudAccount.d.mts +1 -0
- package/Models/DatabaseModels/CloudAccount.d.ts +1 -0
- package/Models/DatabaseModels/CloudAccount.js +21 -0
- package/Models/DatabaseModels/CloudBudget.d.mts +1 -0
- package/Models/DatabaseModels/CloudBudget.d.ts +1 -0
- package/Models/DatabaseModels/CloudBudget.js +38 -3
- package/Models/DatabaseModels/CloudCostRecommendation.d.mts +2 -0
- package/Models/DatabaseModels/CloudCostRecommendation.d.ts +2 -0
- package/Models/DatabaseModels/CloudCostRecommendation.js +30 -2
- package/Models/DatabaseModels/DetectionRule.js +8 -7
- package/Types/AI/ResourceAiAccessApi.d.mts +1 -0
- package/Types/AI/ResourceAiAccessApi.d.ts +1 -0
- package/Types/AI/ResourceAiAccessApi.js +6 -1
- package/Types/AI/ResourceAiAccessApi.mjs +1 -0
- package/Types/AI/ResourceAiAccessPermissions.d.mts +2 -0
- package/Types/AI/ResourceAiAccessPermissions.d.ts +2 -0
- package/Types/AI/ResourceAiAccessPermissions.js +13 -0
- package/Types/AI/ResourceAiAccessPermissions.mjs +2 -0
- package/Types/Cloud/CloudCost.d.mts +8 -0
- package/Types/Cloud/CloudCost.d.ts +8 -0
- package/Types/Cloud/CloudCost.js +37 -0
- package/Types/Cloud/CloudCost.mjs +1 -0
- package/Types/Cloud/CloudCostAnomaly.d.mts +34 -0
- package/Types/Cloud/CloudCostAnomaly.d.ts +34 -0
- package/Types/Cloud/CloudCostAnomaly.js +236 -0
- package/Types/Cloud/CloudCostAnomaly.mjs +18 -0
- package/Types/Cloud/CloudLogGroups.d.mts +6 -1
- package/Types/Cloud/CloudLogGroups.d.ts +6 -1
- package/Types/Cloud/CloudLogGroups.js +59 -3
- package/Types/Cloud/CloudLogGroups.mjs +1 -0
- package/Types/Cloud/CloudPlatform.js +9 -8
- package/Types/Cloud/CloudRightSizing.d.mts +140 -0
- package/Types/Cloud/CloudRightSizing.d.ts +140 -0
- package/Types/Cloud/CloudRightSizing.js +867 -0
- package/Types/Cloud/CloudRightSizing.mjs +53 -0
- package/Types/CloudConnection/CloudAiAgentKey.d.mts +65 -0
- package/Types/CloudConnection/CloudAiAgentKey.d.ts +65 -0
- package/Types/CloudConnection/CloudAiAgentKey.js +289 -0
- package/Types/CloudConnection/CloudAiAgentKey.mjs +18 -0
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.mts +5 -2
- package/Types/CloudConnection/CloudAiAgentSetupCommands.d.ts +5 -2
- package/Types/CloudConnection/CloudAiAgentSetupCommands.js +114 -43
- package/Types/CloudConnection/CloudAiAgentSetupCommands.mjs +4 -1
- package/Types/CloudConnection/CloudStream.d.mts +4 -0
- package/Types/CloudConnection/CloudStream.d.ts +4 -0
- package/Types/CloudConnection/CloudStream.js +18 -1
- package/Types/CloudConnection/CloudStream.mjs +4 -0
- package/Types/CloudConnection/CloudStreamTemplate.d.mts +2 -0
- package/Types/CloudConnection/CloudStreamTemplate.d.ts +2 -0
- package/Types/CloudConnection/CloudStreamTemplate.js +89 -6
- package/Types/CloudConnection/CloudStreamTemplate.mjs +2 -0
- package/Types/InstallScripts/InstallScripts.js +1 -1
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.mts +6 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.d.ts +6 -0
- package/Types/ResourceAiAgent/CloudAiAgentNames.js +11 -1
- package/Types/ResourceAiAgent/CloudAiAgentNames.mjs +3 -0
- package/Types/ResourceAiAgent/ResourceAiAccess.d.mts +3 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.d.ts +3 -1
- package/Types/ResourceAiAgent/ResourceAiAccess.js +13 -2
- package/Types/ResourceAiAgent/ResourceAiAccess.mjs +2 -0
- package/Types/SecurityCase/SecurityCaseContext.d.mts +2 -1
- package/Types/SecurityCase/SecurityCaseContext.d.ts +2 -1
- package/Types/SecurityCase/SecurityConnection.d.mts +2 -1
- package/Types/SecurityCase/SecurityConnection.d.ts +2 -1
- package/Types/SecurityEvent/RealTimeDetection.d.mts +14 -5
- package/Types/SecurityEvent/RealTimeDetection.d.ts +14 -5
- package/Types/SecurityEvent/RealTimeDetection.js +75 -25
- package/Types/SecurityEvent/RealTimeDetection.mjs +3 -3
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.mts +4 -2
- package/Types/SecurityPlaybook/SecurityPlaybookAction.d.ts +4 -2
- package/Types/SecurityPlaybook/SecurityPlaybookAction.js +22 -3
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.mts +7 -2
- package/Types/SecurityPlaybook/SecurityPlaybookStep.d.ts +7 -2
- package/Types/SecurityPlaybook/SecurityPlaybookStep.js +96 -39
- package/Types/SecurityPlaybook/SecurityPlaybookStep.mjs +2 -0
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.d.mts +17 -2
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.d.ts +17 -2
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.js +174 -33
- package/Types/SecurityPlaybook/SecurityPlaybookStepCondition.mjs +7 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.d.mts +5 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.d.ts +5 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.js +10 -0
- package/Utils/SecurityCase/SecurityCaseMarkdown.mjs +1 -0
- package/Utils/Telemetry/CloudChangeTitle.d.mts +37 -0
- package/Utils/Telemetry/CloudChangeTitle.d.ts +37 -0
- package/Utils/Telemetry/CloudChangeTitle.js +315 -3
- package/Utils/Telemetry/CloudChangeTitle.mjs +13 -0
- package/package.json +1 -1
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { CloudSavingKind } from "./CloudCost";
|
|
2
|
+
import { CloudProvider } from "./CloudPlatform";
|
|
3
|
+
export declare const CLOUD_RIGHT_SIZING_WINDOW_DAYS: number;
|
|
4
|
+
export declare const CLOUD_RIGHT_SIZING_MIN_OBSERVED_HOURS: number;
|
|
5
|
+
export declare const CLOUD_RIGHT_SIZING_MIN_SAMPLES: number;
|
|
6
|
+
export declare const CLOUD_RIGHT_SIZING_CPU_TARGET_PERCENT: number;
|
|
7
|
+
export declare const CLOUD_RIGHT_SIZING_CPU_PEAK_PERCENT: number;
|
|
8
|
+
export declare const CLOUD_RIGHT_SIZING_MEMORY_TARGET_PERCENT: number;
|
|
9
|
+
export declare const CLOUD_RIGHT_SIZING_CPU_HOT_PERCENT: number;
|
|
10
|
+
export declare const CLOUD_RIGHT_SIZING_MEMORY_HOT_PERCENT: number;
|
|
11
|
+
export declare const CLOUD_RIGHT_SIZING_MAX_STEPS_DOWN: number;
|
|
12
|
+
export declare const CLOUD_DAYS_IN_AVERAGE_MONTH: number;
|
|
13
|
+
export declare const CLOUD_SAVINGS_SOURCE_ONEUPTIME: string;
|
|
14
|
+
export declare const CLOUD_RIGHT_SIZING_RECOMMENDATION_PREFIX: string;
|
|
15
|
+
export declare function getCloudRightSizingRecommendationId(cloudResourceId: string): string;
|
|
16
|
+
export declare function isCloudRightSizingRecommendationId(recommendationId: string | null | undefined): boolean;
|
|
17
|
+
export declare const CLOUD_SIZE_RECOMMENDATION_KINDS: ReadonlyArray<CloudSavingKind>;
|
|
18
|
+
export declare function isRecommenderSizeRecommendation(data: {
|
|
19
|
+
kind: string | null | undefined;
|
|
20
|
+
recommendationId: string | null | undefined;
|
|
21
|
+
}): boolean;
|
|
22
|
+
export declare enum CloudSizeLadder {
|
|
23
|
+
Aws = "aws",
|
|
24
|
+
AzureVm = "azure-vm",
|
|
25
|
+
AzureAppServicePlan = "azure-app-service-plan",
|
|
26
|
+
GcpMachine = "gcp-machine",
|
|
27
|
+
GcpCloudSql = "gcp-cloud-sql"
|
|
28
|
+
}
|
|
29
|
+
export interface CloudRightSizingMetric {
|
|
30
|
+
names: Array<string>;
|
|
31
|
+
toPercent: number;
|
|
32
|
+
}
|
|
33
|
+
export interface CloudRightSizingProfile {
|
|
34
|
+
provider: CloudProvider;
|
|
35
|
+
type: string;
|
|
36
|
+
sizeProperty: string;
|
|
37
|
+
ladder: CloudSizeLadder;
|
|
38
|
+
cpu: CloudRightSizingMetric;
|
|
39
|
+
memory: CloudRightSizingMetric | null;
|
|
40
|
+
memoryNotRead?: string | undefined;
|
|
41
|
+
billHoldsMoreThanSize: boolean;
|
|
42
|
+
savingResourceType: string;
|
|
43
|
+
}
|
|
44
|
+
export declare const MEMORY_NEEDS_CLOUDWATCH_AGENT: string;
|
|
45
|
+
export declare const MEMORY_REPORTED_AS_FREE: string;
|
|
46
|
+
export declare const MEMORY_NEEDS_OPS_AGENT: string;
|
|
47
|
+
export declare const MEMORY_NOT_REPORTED: string;
|
|
48
|
+
export declare const CLOUD_RIGHT_SIZING_PROFILES: ReadonlyArray<CloudRightSizingProfile>;
|
|
49
|
+
export declare function getCloudRightSizingProfile(provider: string | null | undefined, type: string | null | undefined): CloudRightSizingProfile | null;
|
|
50
|
+
export declare function readCloudResourceSize(profile: CloudRightSizingProfile, properties: unknown): string | null;
|
|
51
|
+
export interface CloudSizeSteps {
|
|
52
|
+
isKnown: boolean;
|
|
53
|
+
isBurstable: boolean;
|
|
54
|
+
smaller: string | null;
|
|
55
|
+
larger: string | null;
|
|
56
|
+
}
|
|
57
|
+
export declare function getCloudSizeSteps(ladder: CloudSizeLadder, size: string | null | undefined): CloudSizeSteps;
|
|
58
|
+
export declare enum CloudRightSizingVerdict {
|
|
59
|
+
Overprovisioned = "overprovisioned",
|
|
60
|
+
Underprovisioned = "underprovisioned",
|
|
61
|
+
RightSized = "right-sized",
|
|
62
|
+
NotEnoughHistory = "not-enough-history",
|
|
63
|
+
NotSized = "not-sized"
|
|
64
|
+
}
|
|
65
|
+
export declare enum CloudRightSizingSkipReason {
|
|
66
|
+
SizeNotKnown = "size-not-known",
|
|
67
|
+
Burstable = "burstable",
|
|
68
|
+
SizeNotOnLadder = "size-not-on-ladder"
|
|
69
|
+
}
|
|
70
|
+
export interface CloudUsageObservation {
|
|
71
|
+
cpuP95Percent: number | null;
|
|
72
|
+
cpuMaxPercent: number | null;
|
|
73
|
+
memoryPeakPercent: number | null;
|
|
74
|
+
samples: number;
|
|
75
|
+
observedHours: number;
|
|
76
|
+
}
|
|
77
|
+
export interface CloudResourceDailyCost {
|
|
78
|
+
amount: number;
|
|
79
|
+
currency: string;
|
|
80
|
+
days: number;
|
|
81
|
+
}
|
|
82
|
+
export interface CloudRightSizing {
|
|
83
|
+
verdict: CloudRightSizingVerdict;
|
|
84
|
+
skipReason?: CloudRightSizingSkipReason | undefined;
|
|
85
|
+
currentSize: string | null;
|
|
86
|
+
recommendedSize: string | null;
|
|
87
|
+
factor: number;
|
|
88
|
+
cpuP95Percent: number | null;
|
|
89
|
+
cpuMaxPercent: number | null;
|
|
90
|
+
memoryPeakPercent: number | null;
|
|
91
|
+
isMemoryRead: boolean;
|
|
92
|
+
memoryNotRead?: string | undefined;
|
|
93
|
+
observedDays: number;
|
|
94
|
+
samples: number;
|
|
95
|
+
projectedCpuP95Percent: number | null;
|
|
96
|
+
projectedMemoryPeakPercent: number | null;
|
|
97
|
+
monthlyCost: number | null;
|
|
98
|
+
currency: string | null;
|
|
99
|
+
monthlySavings: number;
|
|
100
|
+
monthlyIncrease: number;
|
|
101
|
+
isSavingUpperBound: boolean;
|
|
102
|
+
}
|
|
103
|
+
export declare function buildCloudRightSizing(data: {
|
|
104
|
+
profile: CloudRightSizingProfile;
|
|
105
|
+
size: string | null;
|
|
106
|
+
observation: CloudUsageObservation;
|
|
107
|
+
dailyCost?: CloudResourceDailyCost | null | undefined;
|
|
108
|
+
}): CloudRightSizing;
|
|
109
|
+
export declare function hasCloudRightSizingChange(sizing: CloudRightSizing): boolean;
|
|
110
|
+
export declare function getCloudReadingsP95(readings: Array<number>): number | null;
|
|
111
|
+
export interface CloudRightSizingEvidence {
|
|
112
|
+
cpuP95Percent: number | null;
|
|
113
|
+
cpuMaxPercent: number | null;
|
|
114
|
+
memoryPeakPercent: number | null;
|
|
115
|
+
observedDays: number;
|
|
116
|
+
factor: number;
|
|
117
|
+
isSavingUpperBound: boolean;
|
|
118
|
+
}
|
|
119
|
+
export declare function toCloudRightSizingEvidence(sizing: CloudRightSizing): CloudRightSizingEvidence;
|
|
120
|
+
export declare function readCloudRightSizingEvidence(value: unknown): CloudRightSizingEvidence | null;
|
|
121
|
+
export declare const RIGHT_SIZING_TITLE: string;
|
|
122
|
+
export declare const CLOUD_RIGHT_SIZING_VERDICT_LABELS: Readonly<Record<CloudRightSizingVerdict, string>>;
|
|
123
|
+
export declare const RIGHT_SIZING_HALF_SIZE: string;
|
|
124
|
+
export declare const RIGHT_SIZING_QUARTER_SIZE: string;
|
|
125
|
+
export declare const RIGHT_SIZING_TWICE_SIZE: string;
|
|
126
|
+
export declare const RIGHT_SIZING_NO_SMALLER_SIZE: string;
|
|
127
|
+
export declare const RIGHT_SIZING_NO_LARGER_SIZE: string;
|
|
128
|
+
export declare const RIGHT_SIZING_FITS: string;
|
|
129
|
+
export declare const RIGHT_SIZING_AT_NEW_SIZE: string;
|
|
130
|
+
export declare const RIGHT_SIZING_AT_NEW_SIZE_WITH_MEMORY: string;
|
|
131
|
+
export declare const RIGHT_SIZING_SAVES: string;
|
|
132
|
+
export declare const RIGHT_SIZING_SAVES_UP_TO: string;
|
|
133
|
+
export declare const RIGHT_SIZING_COSTS_MORE: string;
|
|
134
|
+
export declare const RIGHT_SIZING_SAVING_NOT_KNOWN: string;
|
|
135
|
+
export declare const RIGHT_SIZING_LEARNING: string;
|
|
136
|
+
export declare const RIGHT_SIZING_CPU_P95_LABEL: string;
|
|
137
|
+
export declare const RIGHT_SIZING_CPU_MAX_LABEL: string;
|
|
138
|
+
export declare const RIGHT_SIZING_MEMORY_PEAK_LABEL: string;
|
|
139
|
+
export declare const RIGHT_SIZING_DAYS_READ_LABEL: string;
|
|
140
|
+
export declare const RIGHT_SIZING_NOT_READ: string;
|