@spottoai/types-package 1.0.2-beta.3 → 1.0.2-beta.300
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/LICENSE +18 -40
- package/README.md +4 -13
- package/dist/accounts/accounts.d.ts +452 -3
- package/dist/accounts/accounts.d.ts.map +1 -1
- package/dist/accounts/accounts.js +123 -0
- package/dist/accounts/accounts.js.map +1 -1
- package/dist/accounts/azureSpSetup.d.ts +297 -0
- package/dist/accounts/azureSpSetup.d.ts.map +1 -0
- package/dist/accounts/azureSpSetup.js +3 -0
- package/dist/accounts/azureSpSetup.js.map +1 -0
- package/dist/accounts/index.d.ts +3 -0
- package/dist/accounts/index.d.ts.map +1 -1
- package/dist/accounts/index.js +3 -0
- package/dist/accounts/index.js.map +1 -1
- package/dist/accounts/readPermissions.d.ts +76 -0
- package/dist/accounts/readPermissions.d.ts.map +1 -0
- package/dist/accounts/readPermissions.js +202 -0
- package/dist/accounts/readPermissions.js.map +1 -0
- package/dist/accounts/validation.d.ts +91 -0
- package/dist/accounts/validation.d.ts.map +1 -0
- package/dist/accounts/validation.js +3 -0
- package/dist/accounts/validation.js.map +1 -0
- package/dist/accounts/writePermissions.d.ts +34 -0
- package/dist/accounts/writePermissions.d.ts.map +1 -0
- package/dist/accounts/writePermissions.js +37 -0
- package/dist/accounts/writePermissions.js.map +1 -0
- package/dist/ai/index.d.ts +1002 -9
- package/dist/ai/index.d.ts.map +1 -1
- package/dist/ai/index.js +1 -1
- package/dist/ai/index.js.map +1 -1
- package/dist/assessments/artifact.d.ts +84 -0
- package/dist/assessments/artifact.d.ts.map +1 -0
- package/dist/assessments/artifact.js +3 -0
- package/dist/assessments/artifact.js.map +1 -0
- package/dist/assessments/catalogue.d.ts +53 -0
- package/dist/assessments/catalogue.d.ts.map +1 -0
- package/dist/assessments/catalogue.js +16 -0
- package/dist/assessments/catalogue.js.map +1 -0
- package/dist/assessments/common.d.ts +27 -0
- package/dist/assessments/common.d.ts.map +1 -0
- package/dist/assessments/common.js +3 -0
- package/dist/assessments/common.js.map +1 -0
- package/dist/assessments/evidence.d.ts +78 -0
- package/dist/assessments/evidence.d.ts.map +1 -0
- package/dist/assessments/evidence.js +3 -0
- package/dist/assessments/evidence.js.map +1 -0
- package/dist/assessments/export.d.ts +27 -0
- package/dist/assessments/export.d.ts.map +1 -0
- package/dist/assessments/export.js +3 -0
- package/dist/assessments/export.js.map +1 -0
- package/dist/assessments/index.d.ts +11 -0
- package/dist/assessments/index.d.ts.map +1 -0
- package/dist/assessments/index.js +27 -0
- package/dist/assessments/index.js.map +1 -0
- package/dist/assessments/queue.d.ts +20 -0
- package/dist/assessments/queue.d.ts.map +1 -0
- package/dist/assessments/queue.js +6 -0
- package/dist/assessments/queue.js.map +1 -0
- package/dist/assessments/review.d.ts +36 -0
- package/dist/assessments/review.d.ts.map +1 -0
- package/dist/assessments/review.js +3 -0
- package/dist/assessments/review.js.map +1 -0
- package/dist/assessments/run.d.ts +62 -0
- package/dist/assessments/run.d.ts.map +1 -0
- package/dist/assessments/run.js +3 -0
- package/dist/assessments/run.js.map +1 -0
- package/dist/assessments/sow.d.ts +30 -0
- package/dist/assessments/sow.d.ts.map +1 -0
- package/dist/assessments/sow.js +3 -0
- package/dist/assessments/sow.js.map +1 -0
- package/dist/assessments/status.d.ts +27 -0
- package/dist/assessments/status.d.ts.map +1 -0
- package/dist/assessments/status.js +27 -0
- package/dist/assessments/status.js.map +1 -0
- package/dist/azure/activityLogs.d.ts +65 -0
- package/dist/azure/activityLogs.d.ts.map +1 -0
- package/dist/azure/activityLogs.js +6 -0
- package/dist/azure/activityLogs.js.map +1 -0
- package/dist/azure/advisorScore.d.ts +39 -0
- package/dist/azure/advisorScore.d.ts.map +1 -0
- package/dist/azure/advisorScore.js +3 -0
- package/dist/azure/advisorScore.js.map +1 -0
- package/dist/azure/benefits.d.ts +161 -0
- package/dist/azure/benefits.d.ts.map +1 -0
- package/dist/azure/benefits.js +3 -0
- package/dist/azure/benefits.js.map +1 -0
- package/dist/azure/billingPlots.d.ts +249 -0
- package/dist/azure/billingPlots.d.ts.map +1 -0
- package/dist/azure/billingPlots.js +6 -0
- package/dist/azure/billingPlots.js.map +1 -0
- package/dist/azure/budgets.d.ts +4 -0
- package/dist/azure/budgets.d.ts.map +1 -1
- package/dist/azure/commitmentsPlanning.d.ts +590 -0
- package/dist/azure/commitmentsPlanning.d.ts.map +1 -0
- package/dist/azure/commitmentsPlanning.js +3 -0
- package/dist/azure/commitmentsPlanning.js.map +1 -0
- package/dist/azure/common.d.ts +44 -0
- package/dist/azure/common.d.ts.map +1 -1
- package/dist/azure/configs.d.ts +75 -2
- package/dist/azure/configs.d.ts.map +1 -1
- package/dist/azure/costEstimation.d.ts +78 -0
- package/dist/azure/costEstimation.d.ts.map +1 -0
- package/dist/azure/costEstimation.js +3 -0
- package/dist/azure/costEstimation.js.map +1 -0
- package/dist/azure/dataProtection.d.ts +229 -0
- package/dist/azure/dataProtection.d.ts.map +1 -0
- package/dist/azure/dataProtection.js +9 -0
- package/dist/azure/dataProtection.js.map +1 -0
- package/dist/azure/governance.d.ts +942 -0
- package/dist/azure/governance.d.ts.map +1 -0
- package/dist/azure/governance.js +18 -0
- package/dist/azure/governance.js.map +1 -0
- package/dist/azure/licensing.d.ts +370 -0
- package/dist/azure/licensing.d.ts.map +1 -0
- package/dist/azure/licensing.js +3 -0
- package/dist/azure/licensing.js.map +1 -0
- package/dist/azure/metrics.d.ts +82 -4
- package/dist/azure/metrics.d.ts.map +1 -1
- package/dist/azure/payloads.d.ts +293 -1
- package/dist/azure/payloads.d.ts.map +1 -1
- package/dist/azure/portalArtifacts.d.ts +16 -0
- package/dist/azure/portalArtifacts.d.ts.map +1 -0
- package/dist/azure/portalArtifacts.js +5 -0
- package/dist/azure/portalArtifacts.js.map +1 -0
- package/dist/azure/prices.d.ts +246 -0
- package/dist/azure/prices.d.ts.map +1 -1
- package/dist/azure/publicIpAddresses.d.ts +171 -0
- package/dist/azure/publicIpAddresses.d.ts.map +1 -0
- package/dist/azure/publicIpAddresses.js +6 -0
- package/dist/azure/publicIpAddresses.js.map +1 -0
- package/dist/azure/recommendationAudit.d.ts +113 -0
- package/dist/azure/recommendationAudit.d.ts.map +1 -0
- package/dist/azure/recommendationAudit.js +10 -0
- package/dist/azure/recommendationAudit.js.map +1 -0
- package/dist/azure/recommendationState.d.ts +93 -4
- package/dist/azure/recommendationState.d.ts.map +1 -1
- package/dist/azure/recommendationWorkflow.d.ts +124 -0
- package/dist/azure/recommendationWorkflow.d.ts.map +1 -0
- package/dist/azure/recommendationWorkflow.js +15 -0
- package/dist/azure/recommendationWorkflow.js.map +1 -0
- package/dist/azure/recommendations.d.ts +559 -10
- package/dist/azure/recommendations.d.ts.map +1 -1
- package/dist/azure/recommendations.js.map +1 -1
- package/dist/azure/relationships.d.ts +193 -0
- package/dist/azure/relationships.d.ts.map +1 -0
- package/dist/azure/relationships.js +6 -0
- package/dist/azure/relationships.js.map +1 -0
- package/dist/azure/reportingTemplates.d.ts +70 -0
- package/dist/azure/reportingTemplates.d.ts.map +1 -0
- package/dist/azure/reportingTemplates.js +5 -0
- package/dist/azure/reportingTemplates.js.map +1 -0
- package/dist/azure/reports.d.ts +280 -2
- package/dist/azure/reports.d.ts.map +1 -1
- package/dist/azure/reports.js +13 -0
- package/dist/azure/reports.js.map +1 -1
- package/dist/azure/resourceHealth.d.ts +264 -0
- package/dist/azure/resourceHealth.d.ts.map +1 -0
- package/dist/azure/resourceHealth.js +16 -0
- package/dist/azure/resourceHealth.js.map +1 -0
- package/dist/azure/resources.d.ts +80 -0
- package/dist/azure/resources.d.ts.map +1 -1
- package/dist/azure/reviewChecklist.d.ts +139 -0
- package/dist/azure/reviewChecklist.d.ts.map +1 -0
- package/dist/azure/reviewChecklist.js +3 -0
- package/dist/azure/reviewChecklist.js.map +1 -0
- package/dist/azure/security.d.ts +28 -0
- package/dist/azure/security.d.ts.map +1 -0
- package/dist/azure/security.js +3 -0
- package/dist/azure/security.js.map +1 -0
- package/dist/azure/serviceRetirement.d.ts +28 -0
- package/dist/azure/serviceRetirement.d.ts.map +1 -0
- package/dist/azure/serviceRetirement.js +3 -0
- package/dist/azure/serviceRetirement.js.map +1 -0
- package/dist/azure/serviceRetirementState.d.ts +22 -0
- package/dist/azure/serviceRetirementState.d.ts.map +1 -0
- package/dist/azure/serviceRetirementState.js +3 -0
- package/dist/azure/serviceRetirementState.js.map +1 -0
- package/dist/azure/storage-inventory.d.ts +241 -0
- package/dist/azure/storage-inventory.d.ts.map +1 -0
- package/dist/azure/storage-inventory.js +3 -0
- package/dist/azure/storage-inventory.js.map +1 -0
- package/dist/azure/subscriptions.d.ts +74 -15
- package/dist/azure/subscriptions.d.ts.map +1 -1
- package/dist/azure/views.d.ts +639 -6
- package/dist/azure/views.d.ts.map +1 -1
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +1 -0
- package/dist/common/index.js.map +1 -1
- package/dist/common/pagination.d.ts +3 -0
- package/dist/common/pagination.d.ts.map +1 -1
- package/dist/common/provider.d.ts +9 -0
- package/dist/common/provider.d.ts.map +1 -0
- package/dist/common/provider.js +9 -0
- package/dist/common/provider.js.map +1 -0
- package/dist/company/billingAccount.d.ts +30 -0
- package/dist/company/billingAccount.d.ts.map +1 -0
- package/dist/company/billingAccount.js +3 -0
- package/dist/company/billingAccount.js.map +1 -0
- package/dist/company/company.d.ts +71 -1
- package/dist/company/company.d.ts.map +1 -1
- package/dist/company/companyHierarchy.d.ts +53 -0
- package/dist/company/companyHierarchy.d.ts.map +1 -0
- package/dist/company/companyHierarchy.js +3 -0
- package/dist/company/companyHierarchy.js.map +1 -0
- package/dist/company/companyNotes.d.ts +288 -0
- package/dist/company/companyNotes.d.ts.map +1 -0
- package/dist/company/companyNotes.js +42 -0
- package/dist/company/companyNotes.js.map +1 -0
- package/dist/company/index.d.ts +3 -0
- package/dist/company/index.d.ts.map +1 -1
- package/dist/company/index.js +3 -0
- package/dist/company/index.js.map +1 -1
- package/dist/company/notification.d.ts +34 -1
- package/dist/company/notification.d.ts.map +1 -1
- package/dist/company/notification.js +27 -12
- package/dist/company/notification.js.map +1 -1
- package/dist/company/survey.d.ts +3 -0
- package/dist/company/survey.d.ts.map +1 -1
- package/dist/events/alertDefinitionRun.d.ts +23 -0
- package/dist/events/alertDefinitionRun.d.ts.map +1 -0
- package/dist/events/alertDefinitionRun.js +3 -0
- package/dist/events/alertDefinitionRun.js.map +1 -0
- package/dist/events/baseAlert.d.ts +130 -0
- package/dist/events/baseAlert.d.ts.map +1 -0
- package/dist/events/baseAlert.js +3 -0
- package/dist/events/baseAlert.js.map +1 -0
- package/dist/events/cost.d.ts +371 -0
- package/dist/events/cost.d.ts.map +1 -0
- package/dist/events/cost.js +3 -0
- package/dist/events/cost.js.map +1 -0
- package/dist/events/costAnomalies.d.ts +47 -0
- package/dist/events/costAnomalies.d.ts.map +1 -0
- package/dist/events/costAnomalies.js +3 -0
- package/dist/events/costAnomalies.js.map +1 -0
- package/dist/events/costViews.d.ts +23 -0
- package/dist/events/costViews.d.ts.map +1 -0
- package/dist/events/costViews.js +3 -0
- package/dist/events/costViews.js.map +1 -0
- package/dist/events/eventStatus.d.ts +67 -0
- package/dist/events/eventStatus.d.ts.map +1 -0
- package/dist/events/eventStatus.js +3 -0
- package/dist/events/eventStatus.js.map +1 -0
- package/dist/events/index.d.ts +7 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +23 -0
- package/dist/events/index.js.map +1 -0
- package/dist/features-and-permissions/access.d.ts +137 -0
- package/dist/features-and-permissions/access.d.ts.map +1 -0
- package/dist/features-and-permissions/access.js +3 -0
- package/dist/features-and-permissions/access.js.map +1 -0
- package/dist/features-and-permissions/index.d.ts +2 -0
- package/dist/features-and-permissions/index.d.ts.map +1 -0
- package/dist/features-and-permissions/index.js +18 -0
- package/dist/features-and-permissions/index.js.map +1 -0
- package/dist/feedbacks/feedback.d.ts +9 -0
- package/dist/feedbacks/feedback.d.ts.map +1 -1
- package/dist/identity/apikey.d.ts +84 -0
- package/dist/identity/apikey.d.ts.map +1 -0
- package/dist/identity/apikey.js +3 -0
- package/dist/identity/apikey.js.map +1 -0
- package/dist/identity/index.d.ts +2 -0
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/identity/index.js +18 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -1
- package/dist/index.js.map +1 -1
- package/dist/index.vite.d.ts +48 -0
- package/dist/index.vite.d.ts.map +1 -0
- package/dist/index.vite.js +64 -0
- package/dist/index.vite.js.map +1 -0
- package/dist/integrations/autotask.d.ts +90 -0
- package/dist/integrations/autotask.d.ts.map +1 -0
- package/dist/integrations/autotask.js +3 -0
- package/dist/integrations/autotask.js.map +1 -0
- package/dist/integrations/azureDevOps.d.ts +130 -0
- package/dist/integrations/azureDevOps.d.ts.map +1 -0
- package/dist/integrations/azureDevOps.js +3 -0
- package/dist/integrations/azureDevOps.js.map +1 -0
- package/dist/integrations/github.d.ts +96 -0
- package/dist/integrations/github.d.ts.map +1 -0
- package/dist/integrations/github.js +3 -0
- package/dist/integrations/github.js.map +1 -0
- package/dist/integrations/halo.d.ts +76 -0
- package/dist/integrations/halo.d.ts.map +1 -0
- package/dist/integrations/halo.js +3 -0
- package/dist/integrations/halo.js.map +1 -0
- package/dist/integrations/index.d.ts +6 -0
- package/dist/integrations/index.d.ts.map +1 -0
- package/dist/integrations/index.js +22 -0
- package/dist/integrations/index.js.map +1 -0
- package/dist/integrations/integrationTickets.d.ts +67 -0
- package/dist/integrations/integrationTickets.d.ts.map +1 -0
- package/dist/integrations/integrationTickets.js +3 -0
- package/dist/integrations/integrationTickets.js.map +1 -0
- package/dist/scheduler/index.d.ts +2 -0
- package/dist/scheduler/index.d.ts.map +1 -0
- package/dist/scheduler/index.js +18 -0
- package/dist/scheduler/index.js.map +1 -0
- package/dist/scheduler/scheduler.d.ts +263 -0
- package/dist/scheduler/scheduler.d.ts.map +1 -0
- package/dist/scheduler/scheduler.js +3 -0
- package/dist/scheduler/scheduler.js.map +1 -0
- package/dist/tags/index.d.ts +2 -0
- package/dist/tags/index.d.ts.map +1 -0
- package/dist/tags/index.js +18 -0
- package/dist/tags/index.js.map +1 -0
- package/dist/tags/tags.d.ts +37 -0
- package/dist/tags/tags.d.ts.map +1 -0
- package/dist/tags/tags.js +10 -0
- package/dist/tags/tags.js.map +1 -0
- package/dist/unknown/services.d.ts +12 -0
- package/dist/unknown/services.d.ts.map +1 -0
- package/dist/unknown/services.js +3 -0
- package/dist/unknown/services.js.map +1 -0
- package/dist/users/companyUser.d.ts +12 -0
- package/dist/users/companyUser.d.ts.map +1 -1
- package/dist/users/companyUser.js.map +1 -1
- package/dist/users/user.d.ts +18 -1
- package/dist/users/user.d.ts.map +1 -1
- package/package.json +5 -4
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Billing cost analysis types for Azure cost visualization.
|
|
3
|
+
*/
|
|
4
|
+
/** Named cost chart windows emitted by the Azure billing analyzer. */
|
|
5
|
+
export type BillingChartViewKey = '7_days' | '30_days' | '90_days' | '12_months' | 'forecast_90_days' | (string & {});
|
|
6
|
+
/** Supported billing chart aggregation categories. */
|
|
7
|
+
export type BillingChartAggregation = 'daily' | 'monthly' | (string & {});
|
|
8
|
+
/** Linear trend metadata used to render trend overlays. */
|
|
9
|
+
export interface BillingChartTrend {
|
|
10
|
+
method: 'linear' | (string & {});
|
|
11
|
+
slope: number;
|
|
12
|
+
intercept: number;
|
|
13
|
+
}
|
|
14
|
+
/** Full date range covered by the chart data payload. */
|
|
15
|
+
export interface BillingChartDataWindow {
|
|
16
|
+
/** Start date of the available chart data (Unix timestamp). */
|
|
17
|
+
startDate: number;
|
|
18
|
+
/** End date of the available chart data (Unix timestamp). */
|
|
19
|
+
endDate: number;
|
|
20
|
+
/** Number of source daily points included in the data window. */
|
|
21
|
+
pointCount: number;
|
|
22
|
+
}
|
|
23
|
+
/** Detector method metadata used to explain anomaly markers. */
|
|
24
|
+
export interface BillingChartDetectorMethod {
|
|
25
|
+
name: string;
|
|
26
|
+
status?: string;
|
|
27
|
+
error?: string | null;
|
|
28
|
+
/** Dates triggered by this detector (Unix timestamps). */
|
|
29
|
+
triggeredDates: number[];
|
|
30
|
+
}
|
|
31
|
+
/** Metadata for the anomaly detector ensemble behind the chart payload. */
|
|
32
|
+
export interface BillingChartDetectorMetadata {
|
|
33
|
+
threshold: number;
|
|
34
|
+
methods: BillingChartDetectorMethod[];
|
|
35
|
+
}
|
|
36
|
+
/** Daily cost point used by historical cost chart views. */
|
|
37
|
+
export interface BillingDailyChartPoint {
|
|
38
|
+
/** ISO date string for the point. */
|
|
39
|
+
date: string;
|
|
40
|
+
/** UTC date for the point (Unix timestamp). */
|
|
41
|
+
timestamp: number;
|
|
42
|
+
/** Cost for the point. */
|
|
43
|
+
cost: number;
|
|
44
|
+
/** Whether this point is considered an anomaly by quorum detection. */
|
|
45
|
+
isAnomaly: boolean;
|
|
46
|
+
/** Number of detector votes for this point. */
|
|
47
|
+
anomalyVotes: number;
|
|
48
|
+
/** Optional rendered trend value for this point. */
|
|
49
|
+
trendCost?: number;
|
|
50
|
+
/** Detector methods that triggered for anomalous points. */
|
|
51
|
+
anomalyMethods?: string[];
|
|
52
|
+
}
|
|
53
|
+
/** Monthly cost point used by the 12-month cost chart view. */
|
|
54
|
+
export interface BillingMonthlyChartPoint {
|
|
55
|
+
/** Month key in YYYY-MM format. */
|
|
56
|
+
month: string;
|
|
57
|
+
/** Start date of the monthly point window (Unix timestamp). */
|
|
58
|
+
startDate: number;
|
|
59
|
+
/** End date of the monthly point window (Unix timestamp). */
|
|
60
|
+
endDate: number;
|
|
61
|
+
/** Total cost for the month. */
|
|
62
|
+
cost: number;
|
|
63
|
+
/** Average daily cost inside the month window. */
|
|
64
|
+
averageDailyCost: number;
|
|
65
|
+
/** Count of anomaly dates inside the month window. */
|
|
66
|
+
anomalyCount: number;
|
|
67
|
+
/** Optional rendered trend value for this point. */
|
|
68
|
+
trendCost?: number;
|
|
69
|
+
/** Anomaly dates inside the month window (Unix timestamps). */
|
|
70
|
+
anomalyDates?: number[];
|
|
71
|
+
}
|
|
72
|
+
/** Forecast or fitted cost point used by forecast chart overlays. */
|
|
73
|
+
export interface BillingForecastChartPoint {
|
|
74
|
+
/** ISO date string for the point. */
|
|
75
|
+
date: string;
|
|
76
|
+
/** UTC date for the point (Unix timestamp). */
|
|
77
|
+
timestamp: number;
|
|
78
|
+
/** Cost for the point. */
|
|
79
|
+
cost: number;
|
|
80
|
+
/** Optional rendered trend value for this point. */
|
|
81
|
+
trendCost?: number;
|
|
82
|
+
}
|
|
83
|
+
/** Historical daily chart view. */
|
|
84
|
+
export interface BillingDailyChartView {
|
|
85
|
+
aggregation: 'daily';
|
|
86
|
+
/** Start date of the view window (Unix timestamp). */
|
|
87
|
+
startDate: number;
|
|
88
|
+
/** End date of the view window (Unix timestamp). */
|
|
89
|
+
endDate: number;
|
|
90
|
+
averageDailyCost: number;
|
|
91
|
+
totalCost: number;
|
|
92
|
+
points: BillingDailyChartPoint[];
|
|
93
|
+
trend?: BillingChartTrend;
|
|
94
|
+
}
|
|
95
|
+
/** Monthly chart view. */
|
|
96
|
+
export interface BillingMonthlyChartView {
|
|
97
|
+
aggregation: 'monthly';
|
|
98
|
+
/** Start date of the view window (Unix timestamp). */
|
|
99
|
+
startDate: number;
|
|
100
|
+
/** End date of the view window (Unix timestamp). */
|
|
101
|
+
endDate: number;
|
|
102
|
+
averageDailyCost: number;
|
|
103
|
+
totalCost: number;
|
|
104
|
+
points: BillingMonthlyChartPoint[];
|
|
105
|
+
trend?: BillingChartTrend;
|
|
106
|
+
}
|
|
107
|
+
/** Forecast chart view containing actual, fitted, and future forecast series. */
|
|
108
|
+
export interface BillingForecastChartView {
|
|
109
|
+
aggregation: 'daily';
|
|
110
|
+
forecastMethod: string;
|
|
111
|
+
/** Start date of the forecast view window (Unix timestamp). */
|
|
112
|
+
startDate: number;
|
|
113
|
+
/** End date of the forecast view window (Unix timestamp). */
|
|
114
|
+
endDate: number;
|
|
115
|
+
actualTotalCost: number;
|
|
116
|
+
forecastRemaining: number;
|
|
117
|
+
forecastMonthTotal: number;
|
|
118
|
+
actualPoints: BillingDailyChartPoint[];
|
|
119
|
+
forecastPoints: BillingForecastChartPoint[];
|
|
120
|
+
fittedPoints: BillingForecastChartPoint[];
|
|
121
|
+
trend?: BillingChartTrend;
|
|
122
|
+
}
|
|
123
|
+
export type BillingChartView = BillingDailyChartView | BillingMonthlyChartView | BillingForecastChartView;
|
|
124
|
+
/** Named chart views emitted by the billing analyzer. */
|
|
125
|
+
export interface BillingChartViews {
|
|
126
|
+
'7_days'?: BillingDailyChartView;
|
|
127
|
+
'30_days'?: BillingDailyChartView;
|
|
128
|
+
'90_days'?: BillingDailyChartView;
|
|
129
|
+
'12_months'?: BillingMonthlyChartView;
|
|
130
|
+
forecast_90_days?: BillingForecastChartView;
|
|
131
|
+
[key: string]: BillingChartView | undefined;
|
|
132
|
+
}
|
|
133
|
+
/** Interactive chart data for cost analysis. */
|
|
134
|
+
export interface BillingChartData {
|
|
135
|
+
schemaVersion: number;
|
|
136
|
+
source: 'aggregated' | (string & {});
|
|
137
|
+
dataWindow: BillingChartDataWindow;
|
|
138
|
+
views: BillingChartViews;
|
|
139
|
+
detectors: BillingChartDetectorMetadata;
|
|
140
|
+
}
|
|
141
|
+
/** Impact metrics associated with a billing anomaly */
|
|
142
|
+
export interface BillingAnomalyImpact {
|
|
143
|
+
/** Total cost for the anomaly window */
|
|
144
|
+
cost: number;
|
|
145
|
+
/** Difference from baseline for the anomaly window */
|
|
146
|
+
delta: number;
|
|
147
|
+
/** 7-day baseline cost when available */
|
|
148
|
+
baseline7Day: number | null;
|
|
149
|
+
/** 30-day baseline cost when available */
|
|
150
|
+
baseline30Day: number | null;
|
|
151
|
+
/** Percent change against the baseline cost */
|
|
152
|
+
percentChange: number | null;
|
|
153
|
+
/** Cost recorded for the previous day */
|
|
154
|
+
previousDayCost: number | null;
|
|
155
|
+
/** Delta recorded for the previous day */
|
|
156
|
+
previousDayDelta: number | null;
|
|
157
|
+
/** Month-to-date cost at the anomaly occurrence */
|
|
158
|
+
monthToDateCost: number;
|
|
159
|
+
/** Month-to-date baseline cost */
|
|
160
|
+
monthToDateBaseline: number | null;
|
|
161
|
+
/** Month-to-date delta compared to baseline */
|
|
162
|
+
monthToDateDelta: number | null;
|
|
163
|
+
/** Month-to-date percent change compared to baseline */
|
|
164
|
+
monthToDatePercentChange: number | null;
|
|
165
|
+
}
|
|
166
|
+
/** Resource contributing to a billing anomaly driver */
|
|
167
|
+
export interface BillingAnomalyDriverResource {
|
|
168
|
+
/** Resource identifier */
|
|
169
|
+
name: string;
|
|
170
|
+
/** Scope/category used by the analyzer for the resource row */
|
|
171
|
+
resourceScope?: string;
|
|
172
|
+
/** Full cloud resource ID when the anomaly can be tied to a resource */
|
|
173
|
+
resourceId?: string;
|
|
174
|
+
/** Whether the driver row represents subscription-level spend */
|
|
175
|
+
isSubscriptionLevel?: boolean;
|
|
176
|
+
/** Total cost attributed to the resource */
|
|
177
|
+
cost: number;
|
|
178
|
+
/** Baseline cost for the resource */
|
|
179
|
+
baseline: number | null;
|
|
180
|
+
/** Delta between current cost and baseline */
|
|
181
|
+
delta: number;
|
|
182
|
+
/** Percent change from baseline */
|
|
183
|
+
percentChange: number | null;
|
|
184
|
+
/** Whether the resource is new or previously idle */
|
|
185
|
+
isNew: boolean;
|
|
186
|
+
/** Human-readable summary for the resource impact */
|
|
187
|
+
summary: string;
|
|
188
|
+
}
|
|
189
|
+
/** Driver contributing to a billing anomaly */
|
|
190
|
+
export interface BillingAnomalyDriver {
|
|
191
|
+
/** Classification for the driver (e.g., service) */
|
|
192
|
+
type: 'service' | (string & {});
|
|
193
|
+
/** Name of the driver */
|
|
194
|
+
name: string;
|
|
195
|
+
/** Summary of the driver's impact */
|
|
196
|
+
summary: string;
|
|
197
|
+
/** Total cost attributed to the driver */
|
|
198
|
+
cost: number;
|
|
199
|
+
/** Delta between current cost and baseline */
|
|
200
|
+
delta: number;
|
|
201
|
+
/** Baseline cost for the driver */
|
|
202
|
+
baseline: number | null;
|
|
203
|
+
/** Percent change from baseline */
|
|
204
|
+
percentChange: number | null;
|
|
205
|
+
/** Percentage contribution of the driver to the anomaly */
|
|
206
|
+
shareOfImpactPercent: number;
|
|
207
|
+
/** Whether the driver represents new or returning spend */
|
|
208
|
+
isNew: boolean;
|
|
209
|
+
/** Resources that contributed to the driver's anomaly */
|
|
210
|
+
resources: BillingAnomalyDriverResource[];
|
|
211
|
+
}
|
|
212
|
+
/** Confidence level classifications for anomalies */
|
|
213
|
+
export type BillingAnomalyConfidence = 'Low' | 'Medium' | 'High' | (string & {});
|
|
214
|
+
/** Representation of a detected billing anomaly */
|
|
215
|
+
export interface BillingAnomaly {
|
|
216
|
+
/** Unix timestamp for the anomaly date */
|
|
217
|
+
date: number;
|
|
218
|
+
/** Summary describing the anomaly */
|
|
219
|
+
summary: string;
|
|
220
|
+
/** Impact metrics captured for the anomaly */
|
|
221
|
+
impact: BillingAnomalyImpact;
|
|
222
|
+
/** Drivers that explain the anomaly */
|
|
223
|
+
drivers: BillingAnomalyDriver[];
|
|
224
|
+
/** Heuristic confidence of the anomaly classification */
|
|
225
|
+
confidence: BillingAnomalyConfidence;
|
|
226
|
+
/** Additional contextual notes for the anomaly */
|
|
227
|
+
notes: string[];
|
|
228
|
+
}
|
|
229
|
+
export interface BillingCostAnalysisMetadata {
|
|
230
|
+
/** Azure subscription ID */
|
|
231
|
+
subscriptionId: string;
|
|
232
|
+
/** Interactive chart data for cost analysis. */
|
|
233
|
+
chartData: BillingChartData;
|
|
234
|
+
/** Detected anomalies for the subscription */
|
|
235
|
+
anomalies: BillingAnomaly[];
|
|
236
|
+
currencyCode: string;
|
|
237
|
+
currencySymbol: string;
|
|
238
|
+
/** Forecast method used for top-level forecast summaries. */
|
|
239
|
+
forecastMethod?: string;
|
|
240
|
+
/** Forecast month total used for top-level forecast summaries. */
|
|
241
|
+
forecastMonthTotal?: number;
|
|
242
|
+
/** Forecast amount remaining in the current period. */
|
|
243
|
+
forecastRemaining?: number;
|
|
244
|
+
/** Forecast amount at the end of the current period. */
|
|
245
|
+
forecastPeriodEnd?: number;
|
|
246
|
+
}
|
|
247
|
+
/** @deprecated Use BillingCostAnalysisMetadata. */
|
|
248
|
+
export type BillingPlotsMetadata = BillingCostAnalysisMetadata;
|
|
249
|
+
//# sourceMappingURL=billingPlots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billingPlots.d.ts","sourceRoot":"","sources":["../../src/azure/billingPlots.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,sEAAsE;AACtE,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,kBAAkB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEtH,sDAAsD;AACtD,MAAM,MAAM,uBAAuB,GAAG,OAAO,GAAG,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAE1E,2DAA2D;AAC3D,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,yDAAyD;AACzD,MAAM,WAAW,sBAAsB;IACrC,+DAA+D;IAC/D,SAAS,EAAE,MAAM,CAAC;IAClB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;IAChB,iEAAiE;IACjE,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,gEAAgE;AAChE,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CA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C,MAAM,EAAE,oBAAoB,CAAC;IAC7B,uCAAuC;IACvC,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,yDAAyD;IACzD,UAAU,EAAE,wBAAwB,CAAC;IACrC,kDAAkD;IAClD,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,2BAA2B;IAC1C,4BAA4B;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,gDAAgD;IAChD,SAAS,EAAE,gBAAgB,CAAC;IAC5B,8CAA8C;IAC9C,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,6DAA6D;IAC7D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,uDAAuD;IACvD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wDAAwD;IACxD,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,mDAAmD;AACnD,MAAM,MAAM,oBAAoB,GAAG,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billingPlots.js","sourceRoot":"","sources":["../../src/azure/billingPlots.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|
package/dist/azure/budgets.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"budgets.d.ts","sourceRoot":"","sources":["../../src/azure/budgets.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"budgets.d.ts","sourceRoot":"","sources":["../../src/azure/budgets.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC"}
|