Mashery notifications other than email about quota and rate usage

Mashery notifications other than email about quota and rate usage

book

Article ID: KB0080047

calendar_today

Updated On:

Products Versions
TIBCO Cloud API Management -

Description

Can Mashery send notifications other than email about quota and rate usage, for example SMS, Slack integration etc?

Issue/Introduction

This article provides details on the ways Mashery sends quota notifications for key usage.

Resolution

Mashery currently only support 2 mechanisms for quota usage discovery:

1.) Mashery sends an email message to the email address that is associated with the API Key when 75% of the quota is used up and again when the entire quota is used up for the day. Several customers have used Pager Duty or IFTTT to be able to notify additional channels (Slack, SMS etc.) based on receipt of those emails.

2.) The rate limit and quota limit information is included in the response headers from the Mashery API. Many customers use that information to determine their own alerting thresholds for when they are getting close to their quota limit and also to determine when the quota will reset. Here is an example of the rate and quota limit response headers. 

X-Plan-Qps-Allotted: 2
X-Plan-Qps-Current: 1
X-Plan-Quota-Allotted: 20000
X-Plan-Quota-Current: 12
X-Plan-Quota-Reset: Thursday, September 20, 2018 12:00:00 AM GMT

Currently these headers are only available on the responses for Mashery V2 APIs. The process of getting these added on Mashery V3 API calls is underway.