-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
types: applyl inter and fix docs formatting.
- Loading branch information
1 parent
bccab3f
commit af0012a
Showing
1 changed file
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,27 @@ | ||
|
||
// consumption information for a single instance | ||
/** | ||
* Consumption information for a single instance. | ||
*/ | ||
export type IConsumption = { | ||
idle?: number; | ||
tenPercent?: number; | ||
fiftyPercent?: number; | ||
hundredPercent?: number; | ||
minWatts?: number; | ||
maxWatts?: number; | ||
} // information about a single compute instance | ||
}; | ||
|
||
/** | ||
* Information about a single compute instance. | ||
*/ | ||
export type IComputeInstance = { | ||
consumption: IConsumption; | ||
embodiedEmission?: number; | ||
name: string; | ||
vCPUs?: number; | ||
maxVCPUs?: number; | ||
} | ||
}; | ||
|
||
export type ICcfResult = { | ||
energy: number; | ||
embodied_emissions: number; | ||
} | ||
}; |