Expand description
§Amber Electric API Models
This module contains all the data structures and types used to interact with the Amber Electric Public API.
§Core Configuration
State- Australian states for renewable energy data (NSW, VIC, QLD, SA)Resolution- Interval resolution options (5-minute, 30-minute)
§Sites and Channels
Site- Information about electricity sites linked to your accountChannel- Power meter channels (General, Controlled Load, Feed In)ChannelType- Types of meter channelsSiteStatus- Status of sites (Pending, Active, Closed)
§Pricing Data
Interval- Electricity pricing intervals (Actual, Forecast, Current)BaseInterval- Common fields for all interval typesActualInterval- Confirmed historical pricing dataForecastInterval- Predicted future pricing dataCurrentInterval- Real-time pricing dataPriceDescriptor- Price categories (extremely low, low, neutral, high, spike)SpikeStatus- Spike warning indicatorsRange- Price ranges when volatileAdvancedPrice- Advanced price prediction with confidence bands
§Usage Data
Usage- Historical electricity consumption and generation dataUsageQuality- Data quality indicators (Estimated, Billable)
§Renewable Energy
Renewable- Renewable energy data (Actual, Forecast, Current)BaseRenewable- Common fields for renewable dataActualRenewable- Confirmed historical renewable valuesForecastRenewable- Predicted future renewable valuesCurrentRenewable- Real-time renewable valuesRenewableDescriptor- Renewable energy levels (best, great, ok, not great, worst)
§Tariff Information
TariffInformation- Time-of-use and demand tariff detailsTariffPeriod- Time periods (off peak, shoulder, solar sponge, peak)TariffSeason- Seasonal variations (Summer, Winter, etc.)
§Date and Time Handling
All datetime fields use the jiff crate for robust datetime handling:
jiff::civil::Datefor date-only fields (ISO 8601 dates)jiff::Timestampfor datetime fields (ISO 8601 timestamps)
Structs§
- Actual
Interval - Actual interval with confirmed pricing
- Actual
Renewable - Actual renewable data
- Advanced
Price - Advanced price prediction
- Base
Interval - Base interval structure containing common fields
- Base
Renewable - Base renewable data structure
- Channel
- Describes a power meter channel.
- Current
Interval - Current interval with real-time pricing
- Current
Renewable - Current renewable data
- Forecast
Interval - Forecast interval with predicted pricing
- Forecast
Renewable - Forecast renewable data
- Range
- When prices are particularly volatile, the API may return a range of NEM spot prices (c/kWh) that are possible.
- Site
- Site information
- Tariff
Information - Information about how your tariff affects an interval
- Usage
- Usage data for a specific interval
Enums§
- Channel
Type - Meter channel type
- Interval
- Interval enum that can be any of the interval types
- Price
Descriptor - Describes the current price.
- Renewable
- Renewable enum that can be any of the renewable types
- Renewable
Descriptor - Describes the state of renewables.
- Resolution
- Valid interval resolution options
- Site
Status - Site status.
- Spike
Status - Spike status
- State
- Valid Australian states for renewable energy data
- Tariff
Period - Time of Use period
- Tariff
Season - Time of Use season
- Usage
Quality - Usage data quality