getSubscriptionUsageAlertGroup()
SubscriptionUsageAlertGroup getSubscriptionUsageAlertGroup(string usn, string usageAlertGroupId)
This method returns information about the current state of a specified usage alert group. Use this method to retrieve and display information for a specific usage alert group for a subscription.
Parameters
- usn
- Format: string
- usageAlertGroupId
- Format: string
Results
This method returns a SubscriptionUsageAlertGroup XML document that lists information about the current state of the usage alert group, for example, the usage alert group limit, amount consumed in the period to date, alert thresholds and reset date.
There are no messages defined by this method.
Example: A returned SubscriptionUsageAlertGroup XML document
This example shows a SubscriptionUsageAlertGroup document for the Mobile Data Usage usage alert group. The subscription has exceeded the usage alert group limit for the current rating period.
<SubscriptionUsageAlertGroup xmlns="http://xml.inomial.com/smile/2.xsd">
<UsageAlertGroup>
<usageAlertGroupID>3</usageAlertGroupID>
<company>1</company>
<name>Mobile Data Usage</name>
<alertThresholds>
<alertThreshold>50</alertThreshold>
<alertThreshold>80</alertThreshold>
<alertThreshold>100</alertThreshold>
</alertThresholds>
</UsageAlertGroup>
<periodEnd>2012-08-31+09:30</periodEnd>
<limit>1000000</limit>
<currentUse>211929000</currentUse>
<currentThreshold>100</currentThreshold>
</SubscriptionUsageAlertGroup>
Faults
NoSuchItemExceptionThis fault is returned when the subscription or usage alert group does not exist.
Java client syntax
java -cp build/smilewsv2-client.jar [options] com.inomial.smile.client.v2.examples.GetSubscriptionUsageAlertGroup usn usageAlertGroupId
- usn
- Purpose: Specifies the subscription associated with the usage alert group.
- usageAlertGroupId
- Purpose: Specifies the ID of the usage alert group for which you want to retrieve information.