use super::{PayloadGroup, PayloadSpec, ValueKinds};
use rust_decimal_macros::dec;
pub(super) static PAYLOAD_SPECS: &[PayloadSpec] = &[
PayloadSpec {
name: "ALERT_AIR_QUALITY",
group: PayloadGroup::Event,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Air quality is or is forecast to be. Payload value contains a human-readable string describing the alert.",
},
PayloadSpec {
name: "ALERT_BLACK_START",
group: PayloadGroup::Event,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The grid is in the process of resuming full operation. Devices should minimize electricity use until the event is cleared. Payload value contains a human-readable string describing the alert.",
},
PayloadSpec {
name: "ALERT_FIRE",
group: PayloadGroup::Event,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "There is a substantial risk of fire in the area which could interrupt electricity supply in addition to being a danger to life and property. Payload value contains a human-readable string describing the alert.",
},
PayloadSpec {
name: "ALERT_FLEX_ALERT",
group: PayloadGroup::Event,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Power supply will be scarce during the event. Devices should seek to shift load to times before or after the event. Devices that can shed should do so during the event. Payload value contains a human-readable string describing the alert. Note: See: flexalert.org",
},
PayloadSpec {
name: "ALERT_FREEZING",
group: PayloadGroup::Event,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "There is (or is forecast to be) temperatures low enough to be of concern. Payload value contains a human-readable string describing the alert.",
},
PayloadSpec {
name: "ALERT_GRID_EMERGENCY",
group: PayloadGroup::Event,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: Some(1),
max_length: Some(128),
allowed: &[],
description: "There is an imminent risk of the grid failing to continue supplying power to some customers, maintaining operational parameters (e.g. voltage), or ceasing to operate at all. Payload value contains a human-readable string describing the alert.",
},
PayloadSpec {
name: "ALERT_OTHER",
group: PayloadGroup::Event,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "No specific definition. See associated text data element. Payload value contains a human-readable string describing the alert.",
},
PayloadSpec {
name: "ALERT_POSSIBLE_OUTAGE",
group: PayloadGroup::Event,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Customers may lose grid power in the coming hours or days. Note: An example of this from California is Public Service Power Shutoffs (usually from fire risk). Payload value contains a human-readable string describing the alert.",
},
PayloadSpec {
name: "ALERT_TSUNAMI",
group: PayloadGroup::Event,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Tsunami waves expected to hit the coastline. Payload value contains a human-readable string describing the alert.",
},
PayloadSpec {
name: "ALERT_WIND",
group: PayloadGroup::Event,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "There is (or is forecast to be) wind speeds high enough to be of concern. Includes hurricanes. Payload value contains a human-readable string describing the alert.",
},
PayloadSpec {
name: "CHARGE_STATE_SETPOINT",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The state of charge of an energy storage resource. Payload value is indicated by units in associated eventPayloadDescriptor. Note: Common units are percentage and kWh.",
},
PayloadSpec {
name: "CONTROL_LEVEL_OFFSET",
group: PayloadGroup::Event,
kinds: ValueKinds::INTEGER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(-10)),
maximum: Some(dec!(10)),
min_length: None,
max_length: None,
allowed: &[],
description: "Discrete integer levels that are relative to normal operations where 0 is normal operations. There is no requirement to link the setpoints to specific load consumption values, but the intention is that the higher the setpoint the less load is consumed (where negative values would indicate higher load consumption). Payload value is an integer between -10 and +10 with no units.",
},
PayloadSpec {
name: "CONTROL_LEVEL_OFFSET_PERCENT",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(-1)),
maximum: Some(dec!(1)),
min_length: None,
max_length: None,
allowed: &[],
description: "Percentage change from normal operations, where 0 is normal operations. The percentage does not refer to specific load consumptions values, but to load control operation levels. The lower the percentage the less load is consumed. Negative values indicate higher load consumption. Common payload values are floats from -1.0 to 1.0 with units of PERCENT, set in associated eventPayloadDescriptor.",
},
PayloadSpec {
name: "CONTROL_SETPOINT",
group: PayloadGroup::Event,
kinds: ValueKinds::ANY,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: Some(1),
max_length: Some(128),
allowed: &[],
description: "Resource dependent setting, generally used for device control instructions. Payload value type depends on application. The actual values to be used in this payload will be defined by program providers.",
},
PayloadSpec {
name: "CTA2045_REBOOT",
group: PayloadGroup::Event,
kinds: ValueKinds::INTEGER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: Some(dec!(1)),
min_length: None,
max_length: None,
allowed: &[],
description: "Pass through for resources that support [CTA-2045B]. Payload value 0 = SOFT, 1 = HARD. See [CTA-2045B] for definitions.",
},
PayloadSpec {
name: "CTA2045_SET_OVERRIDE_STATUS",
group: PayloadGroup::Event,
kinds: ValueKinds::INTEGER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: Some(dec!(1)),
min_length: None,
max_length: None,
allowed: &[],
description: "Pass through CTA-2045 Override status: 0 = No Override, 1 = Override. See [CTA-2045B].",
},
PayloadSpec {
name: "CURVE",
group: PayloadGroup::Event,
kinds: ValueKinds::POINT,
min_items: 1,
max_items: None,
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "A series of one or more Point objects representing a 2D curve drawn on an x/y graph. The typical use is to represent a VoltVar or VoltWatt curve for customizing inverter control.",
},
PayloadSpec {
name: "DISPATCH_INSTRUCTION",
group: PayloadGroup::Event,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: None,
minimum: None,
maximum: None,
min_length: Some(1),
max_length: Some(128),
allowed: &[],
description: "Implementation-specific instructions that can be mapped to resource-specific control actions by VEN clients. Applicable values are communicated out of band by VTN administrators.",
},
PayloadSpec {
name: "DISPATCH_SETPOINT",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The absolute amount of consumption by a resource. Payload value is a float and is indicated by units in associated eventPayloadDescriptor. Note: This is used to dispatch resources.",
},
PayloadSpec {
name: "DISPATCH_SETPOINT_RELATIVE",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The relative change of consumption by a resource. Payload value is a float and is indicated by units in associated eventPayloadDescriptor. Note: This is used to dispatch a resource's load.",
},
PayloadSpec {
name: "EXPORT_CAPACITY_AVAILABLE",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The amount of extra export capacity available for reservation to the customer. Payload is a float, and meaning is indicated by units in associated eventPayloadDescriptor.",
},
PayloadSpec {
name: "EXPORT_CAPACITY_AVAILABLE_PRICE",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The cost per unit of power of extra export capacity available for reservation. Payload is a float, and meaning is indicated by units in associated eventPayloadDescriptor.",
},
PayloadSpec {
name: "EXPORT_CAPACITY_LIMIT",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The maximum export level for the site. Payload is a float and meaning is indicated by units in associated eventPayloadDescriptor.",
},
PayloadSpec {
name: "EXPORT_CAPACITY_RESERVATION",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The amount of additional export capacity that a customer has been granted by the VTN. Payload is a float, and meaning is indicated by units in associated eventPayloadDescriptor.",
},
PayloadSpec {
name: "EXPORT_CAPACITY_RESERVATION_FEE",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The cost per unit of power of extra export capacity available for reservation. Payload is a float, and meaning is indicated by units in associated eventPayloadDescriptor.",
},
PayloadSpec {
name: "EXPORT_CAPACITY_SUBSCRIPTION",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The amount of export capacity a customer has subscribed to in advance. Payload is a float, and meaning is indicated by units in associated eventPayloadDescriptor.",
},
PayloadSpec {
name: "EXPORT_PRICE",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The price of energy exported (usually to the grid). Payload value is float and units and currency are defined in associated eventPayloadDescriptor. Note: Can be used for any form of energy.",
},
PayloadSpec {
name: "GHG",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "An estimate of marginal GreenHouse Gas emissions, in g/kWh. Payload value is float.",
},
PayloadSpec {
name: "IMPORT_CAPACITY_AVAILABLE",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The amount of extra import capacity available for reservation to the customer. Payload is a float, and meaning is indicated by units in associated eventPayloadDescriptor.",
},
PayloadSpec {
name: "IMPORT_CAPACITY_AVAILABLE_PRICE",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The cost per unit of power of extra import capacity available for reservation. Payload is a float, and meaning is indicated by units in associated eventPayloadDescriptor.",
},
PayloadSpec {
name: "IMPORT_CAPACITY_LIMIT",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The maximum import level for the site. Payload is a float and meaning is indicated by units in associated eventPayloadDescriptor.",
},
PayloadSpec {
name: "IMPORT_CAPACITY_RESERVATION",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The amount of additional import capacity that a customer has been granted by the VTN. Payload is a float, and meaning is indicated by units in associated eventPayloadDescriptor.",
},
PayloadSpec {
name: "IMPORT_CAPACITY_RESERVATION_FEE",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The cost per unit of power of extra import capacity available for reservation. Payload is a float, and meaning is indicated by units in associated eventPayloadDescriptor.",
},
PayloadSpec {
name: "IMPORT_CAPACITY_SUBSCRIPTION",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The amount of import capacity a customer has subscribed to in advance. Payload is a float, and meaning is indicated by units in associated eventPayloadDescriptor.",
},
PayloadSpec {
name: "OLS",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: None,
minimum: Some(dec!(0)),
maximum: Some(dec!(1)),
min_length: None,
max_length: None,
allowed: &[],
description: "Optimum Load Shape. Payload values array contains a list of values 0.0 to 1.0 representing percentage of usage over the set of intervals in the event. Note: See ANSI-SCTE 267.",
},
PayloadSpec {
name: "PRICE",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The price of energy. Payload value is a float. Units and currency defined in associated eventPayloadDescriptor. Note: Can be used for any form of energy.",
},
PayloadSpec {
name: "PRICE_ALTERNATE",
group: PayloadGroup::Event,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The price of a second form of energy, as defined by the program. Payload value is a float. Units and currency defined in associated eventPayloadDescriptor. Note: Can be used for any form of energy.",
},
PayloadSpec {
name: "SIMPLE",
group: PayloadGroup::Event,
kinds: ValueKinds::INTEGER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: Some(dec!(3)),
min_length: None,
max_length: None,
allowed: &[],
description: "An indication of the level of a basic demand response signal. Payload value is an integer of 0, 1, 2, or 3. Note: An example mapping is normal operations, moderate load shed, high load shed, and emergency load shed.",
},
PayloadSpec {
name: "BINDING_EVENTS",
group: PayloadGroup::ProgramAttribute,
kinds: ValueKinds::BOOLEAN,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "True if events are fixed once transmitted.",
},
PayloadSpec {
name: "COUNTRY",
group: PayloadGroup::ProgramAttribute,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: Some(1),
max_length: Some(128),
allowed: &[],
description: "Alpha-2 code per ISO 3166-1.",
},
PayloadSpec {
name: "LOCAL",
group: PayloadGroup::ProgramAttribute,
kinds: ValueKinds::BOOLEAN,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Indicates that data in the program, e.g. price signals, have been created by a local VTN, possibly adapting from a grid VTN. See the Local Scenarios chapter for more information.",
},
PayloadSpec {
name: "PRINCIPAL_SUBDIVISION",
group: PayloadGroup::ProgramAttribute,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: Some(1),
max_length: Some(128),
allowed: &[],
description: "Coding per ISO 3166-2. E.g. state in US.",
},
PayloadSpec {
name: "PROGRAM_LONG_NAME",
group: PayloadGroup::ProgramAttribute,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: Some(1),
max_length: Some(128),
allowed: &[],
description: "Long name of program for human readability.",
},
PayloadSpec {
name: "PROGRAM_TYPE",
group: PayloadGroup::ProgramAttribute,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: Some(1),
max_length: Some(128),
allowed: &[],
description: "A program defined categorization.",
},
PayloadSpec {
name: "RETAILER_LONG_NAME",
group: PayloadGroup::ProgramAttribute,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: Some(1),
max_length: Some(128),
allowed: &[],
description: "Long name of energy retailer for human readability.",
},
PayloadSpec {
name: "RETAILER_NAME",
group: PayloadGroup::ProgramAttribute,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: Some(1),
max_length: Some(128),
allowed: &[],
description: "Short name of energy retailer providing the program.",
},
PayloadSpec {
name: "BASELINE",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Indicates energy or power consumption in the absence of load control. Payload value is determined by reading type which may indicate usage or demand.",
},
PayloadSpec {
name: "DATA_QUALITY",
group: PayloadGroup::Report,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &["OK", "MISSING", "ESTIMATED", "BAD"],
description: "Payload values array contains a string indicating data quality of companion report payload in the same interval. Strings may be one of enumerated Data Quality enumerations.",
},
PayloadSpec {
name: "DELTA_USAGE",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Change in usage as compared to a baseline. Payload value is a float and units are defined in payloadDescriptor.",
},
PayloadSpec {
name: "DEMAND",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Power usage for an interval, i.e. Real Power. Payload value is a float, units defined in payloadDescriptor. Reading type indicates MEAN, PEAK, FORECAST.",
},
PayloadSpec {
name: "DOWN_REGULATION_AVAILABLE",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Down Regulation capacity available for dispatch, in real power. Payload value is a float, units defined in payloadDescriptor. Reading type indicates MEAN, PEAK, FORECAST.",
},
PayloadSpec {
name: "EXPORT_RESERVATION_CAPACITY",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Amount of additional export capacity requested. Payload values are a float.",
},
PayloadSpec {
name: "EXPORT_RESERVATION_FEE",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Amount per unit of export capacity that the VEN is willing to pay for the requested reservation. Payload value is a float with currency defined in payloadDescriptor.",
},
PayloadSpec {
name: "GENERATION_DELTA_AVAILABLE",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Payload values array contains a single float indicating expected generation by a resource for the associated interval.",
},
PayloadSpec {
name: "IMPORT_RESERVATION_CAPACITY",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Amount of additional import capacity requested. Payload values are a float.",
},
PayloadSpec {
name: "IMPORT_RESERVATION_FEE",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Amount per unit of import capacity that the VEN is willing to pay for the requested reservation. Payload value is a float with currency defined in payloadDescriptor.",
},
PayloadSpec {
name: "LOAD_SHED_DELTA_AVAILABLE",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Payload values array contains a single float indicating expected increase or decrease in load by a resource for the associated interval.",
},
PayloadSpec {
name: "OPERATING_STATE",
group: PayloadGroup::Report,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[
"NORMAL",
"ERROR",
"IDLE_NORMAL",
"RUNNING_NORMAL",
"RUNNING_CURTAILED",
"RUNNING_HEIGHTENED",
"IDLE_CURTAILED",
"SGD_ERROR_CONDITION",
"IDLE_HEIGHTENED",
"IDLE_OPTED_OUT",
"RUNNING_OPTED_OUT",
"AGGREGATED_REPORT",
],
description: "Payload values array includes a list of operating state enumerations, see below.",
},
PayloadSpec {
name: "READING",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "An instantaneous data point, as from a meter. Same as pulse count. Payload value is a float and units are defined in payloadDescriptor.",
},
PayloadSpec {
name: "REGULATION_SETPOINT",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Regulation setpoint as instructed as part of regulation services. Payload value is a float, units defined in payloadDescriptor. Reading type indicates MEAN, PEAK, FORECAST.",
},
PayloadSpec {
name: "SETPOINT",
group: PayloadGroup::Report,
kinds: ValueKinds::ANY,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: Some(1),
max_length: Some(128),
allowed: &[],
description: "Current control setpoint of a resource, see CONTROL_SETPOINT in event interval payloads. Payload values are determined by the application. The actual values to be used in this payload will be defined by program providers.",
},
PayloadSpec {
name: "SIMPLE_LEVEL",
group: PayloadGroup::Report,
kinds: ValueKinds::INTEGER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: Some(dec!(3)),
min_length: None,
max_length: None,
allowed: &[],
description: "Simple level that a VEN resource is operating at for each Interval. Payload value is an integer 0, 1, 2, 3 corresponding to values in SIMPLE events.",
},
PayloadSpec {
name: "STORAGE_CHARGE_LEVEL",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: Some(dec!(1)),
min_length: None,
max_length: None,
allowed: &[],
description: "Current storage charge level expressed as a percentage, where 0% is empty and 100% is full. Payload value is a float, units of PERCENT defined in payloadDescriptor.",
},
PayloadSpec {
name: "STORAGE_DISPATCH_FORECAST",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Payload values array contains a single float indicating expected stored energy that could be dispatched for the associated interval.",
},
PayloadSpec {
name: "STORAGE_MAX_CHARGE_POWER",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The maximum sustainable power that can be charged from an electricity network (load). Payload value is a float, units of power defined in payloadDescriptor.",
},
PayloadSpec {
name: "STORAGE_MAX_DISCHARGE_POWER",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "The maximum sustainable power that can be discharged into an electricity network (injection). Payload value is a float, units of power defined in payloadDescriptor.",
},
PayloadSpec {
name: "STORAGE_USABLE_CAPACITY",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Usable energy that the storage device can hold when fully charged. Payload value is a float, units of energy defined in payloadDescriptor.",
},
PayloadSpec {
name: "UP_REGULATION_AVAILABLE",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Up Regulation capacity available for dispatch, in real power. Payload value is a float, units defined in payloadDescriptor. Reading type indicates MEAN, PEAK, FORECAST.",
},
PayloadSpec {
name: "USAGE",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Energy usage over an interval. Payload value is a float and units are defined in payloadDescriptor.",
},
PayloadSpec {
name: "USAGE_FORECAST",
group: PayloadGroup::Report,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Payload values array contains a single float indicating expected resource usage for the associated interval. Units of energy defined in payloadDescriptor.",
},
PayloadSpec {
name: "AREA",
group: PayloadGroup::VenAttribute,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: None,
minimum: None,
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Describes a geographic area. Values[] contains application specific data. Demand Response programs may define their own use of these fields, such as GeoJSON polygon data.",
},
PayloadSpec {
name: "DESCRIPTION",
group: PayloadGroup::VenAttribute,
kinds: ValueKinds::STRING,
min_items: 1,
max_items: Some(1),
minimum: None,
maximum: None,
min_length: Some(1),
max_length: Some(128),
allowed: &[],
description: "Free-form text tersely describing a ven or resource.",
},
PayloadSpec {
name: "LOCATION",
group: PayloadGroup::VenAttribute,
kinds: ValueKinds::NUMBER,
min_items: 2,
max_items: Some(2),
minimum: Some(dec!(-180)),
maximum: Some(dec!(180)),
min_length: None,
max_length: None,
allowed: &[],
description: "Describes a single geographic point. Values[] contains 2 floats, generally representing longitude and latitude. Demand Response programs may define their own use of these fields.",
},
PayloadSpec {
name: "MAX_POWER_CONSUMPTION",
group: PayloadGroup::VenAttribute,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Values contains a floating point number describing the maximum consumption, in kiloWatts.",
},
PayloadSpec {
name: "MAX_POWER_EXPORT",
group: PayloadGroup::VenAttribute,
kinds: ValueKinds::NUMBER,
min_items: 1,
max_items: Some(1),
minimum: Some(dec!(0)),
maximum: None,
min_length: None,
max_length: None,
allowed: &[],
description: "Values contains a floating point number describing the maximum power the device can export, in kiloWatts.",
},
];
pub(super) static UNITS: &[&str] = &[
"KWH",
"THERMS",
"GHG",
"VOLTS",
"AMPS",
"CELSIUS",
"FAHRENHEIT",
"PERCENT",
"KW",
"KVAH",
"KVARH",
"KVA",
"KVAR",
];
pub(super) static READING_TYPES: &[&str] = &[
"DIRECT_READ",
"ESTIMATED",
"SUMMED",
"MEAN",
"PEAK",
"FORECAST",
"AVERAGE",
"NORMAL",
"ERROR",
];