Hi Silmy,

Few things to consider when implementing the gadgets.

1) Only users with a specific role(preferably admin) should be able to do
CRUD  on those tables. I think we can change this role using SP
configurations if a customer intends to allow users with another role to do
this task.
2) Since we are letting the user to type in the API name or Application
name, we should make sure to update the entry in case the config already
exists for the given API or Application.

We do not need to check whether the user is a subscriber. That is not a
prerequisite to configure alert thresholds.

On Wed, Aug 8, 2018 at 7:08 PM Silmy Hasan <[email protected]> wrote:

> Hi all,
>
> According to the current implementation of APIM Analytics , we use
> percentile values to find out certain threshold values (eg:- Abnormal
> request count) . Since generating alerts using percentile values creates
> lots of complexity to the users of the alert, it was decided to move
> towards a user configurable system where admins and subscribers can set
> those threshold values directly.
>
> *Note*
>
>    - There will not be any default values for those thresholds.
>    - The alerts will not be generated to the particualr API or
>    application untill the admins or subscribers set a value for those
>    thresholds.
>
> Two possible ways could be identified to let the admins and subscribers to
> configure these values,
>
>    1.  Let the admins or subcribers set those values in APIM side and
>    publish it to SP as a stream. A siddhi app can be written to listen to the
>    stream an store it in database
>    2.  Let the admins or subscriber set a value at SP dashboard itself
>    using a dashboard widget
>
> We are thinking of moving on with the second method since the first one
> creates complexity on the APIM side.
>
> *Proposed solution*
> Creating two custom widgets in SP dashboard to enable the
> admins/subscribers perform CRUD operation on those alert configuration
> tables. There will be two tables namely ApiCreatorAlertConfiguration and
> ApiSubscriberAlertConfiguration.
>
> Please provide your suggestions.
>
> Thanks,
> Silmy
>
>
> --
> Shilmy Hasan
> Associate Software Engineer | WSO2
>
> E-mail :[email protected]
> Phone :0779188653
> web : http://www.wso2.com
>
> [image: https://wso2.com/signature] <https://wso2.com/signature>
> _______________________________________________
> Architecture mailing list
> [email protected]
> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
>


-- 
Thanks & Regards,

*Fazlan Nazeem*
Senior Software Engineer
WSO2 Inc
Mobile : +94772338839
[email protected]
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to