OSID Logo
OSID Specifications
metering package
Version 3.0.0
Release Candidate Preview
Interfaceosid.metering.StatisticNotificationSession
Implementsosid.OsidSession
Description

This session defines methods to receive notifications on statistics. This session is intended for consumers needing to synchronize their state with this service without the use of polling. Notifications are cancelled when this session is closed.

MethodgetUtilityId
Description

Gets the Utility Id associated with this session.

Returnosid.id.Idthe Utility Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetUtility
Description

Gets the Utility associated with this session.

Returnosid.metering.Utilitythe Utility associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanRegisterForStatisticNotifications
Description

Tests if this user can register for Statistic notifications. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer notification operations.

Returnboolean false if notification methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseFederatedUtilityView
Description

Federates the view for methods in this session. A federated view will include statistics from parent utilities in the utility hierarchy.

CompliancemandatoryThis method is must be implemented.
MethoduseIsolatedUtilityView
Description

Isolates the view for methods in this session. An isolated view restricts notifications for statistics to this utility only.

CompliancemandatoryThis method is must be implemented.
MethodregisterForStatisticsExceedingSumThreshold
Description

Register for notifications sums exceeding a threshold. StatisticReceiver.exceededSumThreshold() is invoked when the sum exceeds the given value.

Parametersosid.id.IdmeterIdthe meter Id
cardinalintervalthe time interval from the present
osid.calendaring.DateTimeResolutionunitsthe date time units
decimalvaluethe threshold value
ErrorsNULL_ARGUMENT meterId or units is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForStatisticsFailingSumThreshold
Description

Register for notifications sums failing a threshold. StatisticReceiver.failedSumThreshold() is invoked when the sum falls below the given value.

Parametersosid.id.IdmeterIdthe meter Id
cardinalintervalthe time interval from the present
osid.calendaring.DateTimeResolutionunitsthe date time units
decimalvaluethe threshold value
ErrorsNULL_ARGUMENT meterId or units is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForStatisticsExceedingMeanThreshold
Description

Register for notifications of means exceeding a threshold. StatisticReceiver.exceededMeanThreshold() is invoked when the mean exceeds the given value.

Parametersosid.id.IdmeterIdthe meter Id
cardinalintervalthe time interval from the present
osid.calendaring.DateTimeResolutionunitsthe date time units
decimalvaluethe threshold value
ErrorsNULL_ARGUMENT meterId or units is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForStatisticsFailingMeanThreshold
Description

Register for notifications means failing a threshold. StatisticReceiver.failedMeanThreshold() is invoked when the mean falls below the given value.

Parametersosid.id.IdmeterIdthe meter Id
cardinalintervalthe time interval from the present
osid.calendaring.DateTimeResolutionunitsthe date time units
decimalvaluethe threshold value
ErrorsNULL_ARGUMENT meterId or units is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForStatisticsExceedingMedianThreshold
Description

Register for notifications of medians exceeding a threshold. StatisticReceiver.exceededMeanThreshold() is invoked when the median exceeds the given value.

Parametersosid.id.IdmeterIdthe meter Id
cardinalintervalthe time interval from the present
osid.calendaring.DateTimeResolutionunitsthe date time units
decimalvaluethe threshold value
ErrorsNULL_ARGUMENT meterId or units is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForStatisticsFailingMedianThreshold
Description

Register for notifications of medians failing a threshold. StatisticReceiver.failedMeanThreshold() is invoked when the median falls below the given value.

Parametersosid.id.IdmeterIdthe meter Id
cardinalintervalthe time interval from the present
osid.calendaring.DateTimeResolutionunitsthe date time units
decimalvaluethe threshold value
ErrorsNULL_ARGUMENT meterId or units is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForStatisticsExceedingRMSThreshold
Description

Register for notifications of the root mean square exceeding a threshold. StatisticReceiver.exceededRMSThreshold() is invoked when the rms exceeds the given value.

Parametersosid.id.IdmeterIdthe meter Id
cardinalintervalthe time interval from the present
osid.calendaring.DateTimeResolutionunitsthe date time units
decimalvaluethe threshold value
ErrorsNULL_ARGUMENT meterId or units is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForStatisticsFailingRMSThreshold
Description

Register for notifications of the root mean square failing a threshold. StatisticReceiver.failedRMSThreshold() is invoked when the rms falls below the given value.

Parametersosid.id.IdmeterIdthe meter Id
cardinalintervalthe time interval from the present
osid.calendaring.DateTimeResolutionunitsthe date time units
decimalvaluethe threshold value
ErrorsNULL_ARGUMENT meterId or units is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForStatisticsExceedingDeltaThreshold
Description

Register for notifications of the delta exceeding a threshold. StatisticReceiver.exceededDeltaThreshold() is invoked when the delta exceeds the given value.

Parametersosid.id.IdmeterIdthe meter Id
cardinalintervalthe time interval from the present
osid.calendaring.DateTimeResolutionunitsthe date time units
decimalvaluethe threshold value
ErrorsNULL_ARGUMENT meterId or units is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForStatisticsFailingDeltaThreshold
Description

Register for notifications of the delta failing a threshold. StatisticReceiver.failedDeltaThreshold() is invoked when the delta falls below the given value.

Parametersosid.id.IdmeterIdthe meter Id
cardinalintervalthe time interval from the present
osid.calendaring.DateTimeResolutionunitsthe date time units
decimalvaluethe threshold value
ErrorsNULL_ARGUMENT meterId or units is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForStatisticsExceedingPercentChangeThreshold
Description

Register for notifications of the percentage change exceeding a threshold. StatisticReceiver.exceededPercentChangeThreshold() is invoked when the change exceeds the given value.

Parametersosid.id.IdmeterIdthe meter Id
cardinalintervalthe time interval from the present
osid.calendaring.DateTimeResolutionunitsthe date time units
decimalvaluethe threshold value
ErrorsNULL_ARGUMENT meterId or units is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForStatisticsFailingPercentChangeThreshold
Description

Register for notifications of the percentage change failing a threshold. StatisticReceiver.failedPercentChangeThreshold() is invoked when the change falls below the given value.

Parametersosid.id.IdmeterIdthe meter Id
cardinalintervalthe time interval from the present
osid.calendaring.DateTimeResolutionunitsthe date time units
decimalvaluethe threshold value
ErrorsNULL_ARGUMENT meterId or units is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForStatisticsExceedingAverageRateThreshold
Description

Register for notifications of the rate exceeding a threshold. StatisticReceiver.exceededAverageRateThreshold() is invoked when the average rate exceeds the given value.

Parametersosid.id.IdmeterIdthe meter Id
cardinalintervalthe time interval from the present
osid.calendaring.DateTimeResolutionunitsthe date time units
decimalvaluethe threshold value
osid.calendaring.DateTimeResolutionrateIntervalthe time interval of the rate
ErrorsNULL_ARGUMENT meterId, units, or rateInterval is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodregisterForStatisticsFailingAverageRateThreshold
Description

Register for notifications of the rate failing a threshold. StatisticReceiver.failedAverageRateThreshold() is invoked when the average rate falls below the given value.

Parametersosid.id.IdmeterIdthe meter Id
cardinalintervalthe time interval from the present
osid.calendaring.DateTimeResolutionunitsthe date time units
decimalvaluethe threshold value
osid.calendaring.DateTimeResolutionrateIntervalthe time interval of the rate
ErrorsNULL_ARGUMENT meterId, units, or rateInterval is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.