Skip to main content

Module models

Module models 

Source
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 account
  • Channel - Power meter channels (General, Controlled Load, Feed In)
  • ChannelType - Types of meter channels
  • SiteStatus - Status of sites (Pending, Active, Closed)

§Pricing Data

§Usage Data

  • Usage - Historical electricity consumption and generation data
  • UsageQuality - Data quality indicators (Estimated, Billable)

§Renewable Energy

§Tariff Information

§Date and Time Handling

All datetime fields use the jiff crate for robust datetime handling:

Structs§

ActualInterval
Actual interval with confirmed pricing.
ActualRenewable
Actual renewable data.
AdvancedPrice
Advanced price prediction.
BaseInterval
Base interval structure containing common fields.
BaseRenewable
Base renewable data structure.
Channel
Describes a power meter channel.
CurrentInterval
Current interval with real-time pricing.
CurrentRenewable
Current renewable data.
ForecastInterval
Forecast interval with predicted pricing.
ForecastRenewable
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.
TariffInformation
Information about how your tariff affects an interval.
Usage
Usage data for a specific interval.

Enums§

ChannelType
Meter channel type.
Interval
Interval enum that can be any of the interval types.
PriceDescriptor
Describes the current price.
Renewable
Renewable enum that can be any of the renewable types.
RenewableDescriptor
Describes the state of renewables.
Resolution
Valid interval resolution options.
SiteStatus
Site status.
SpikeStatus
Spike status.
State
Valid Australian states for renewable energy data.
TariffPeriod
Time of Use period.
TariffSeason
Time of Use season.
UsageQuality
Usage data quality.