You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello team, We have a customer that would like to generate reports monthly where they get information aggregated by countries: passed/blocked traffic. The best alternative here seems to be using API, right? Is there anyone that have came across a similar need? Regards – Paulo
On Wed, 17 Oct 2018 Andrew wrote:
Hi Paulo,
I haven't looked to see if SP already has such a report, it seems to me like this would be something we would have.
However, this is possible using version 5 of the API that is in Sightline 9.0 (which was just released yesterday) and later.
The general workflow would be:
query the API for all of the mitigations that were active last month
Get the `statistics_by_country' sub-endpoint for each mitigation
do something to exclude traffic from the month prior to last month and the traffic that is in the current month for mitigations that are not completely contained within the month boundaries (this isn't that hard, but it is an extra step)
For each country listed in each mitigation, sum the "drop" and "allow" traffic into a country bin
Report each country bin.
If I get time I'll write an example Python program that will do a version of this, but if someone gets to it sooner than I do, I'd love to see it.
Good luck! –andy
On Wed, 17 Oct 2018 Paulo wrote:
Oh God, I just realized that I forgot to mention this request is related to APS… Sorry about that! Regards – Paulo
Even so, this would be a nice example of the SP REST API.
The text was updated successfully, but these errors were encountered:
On Wed, 17 Oct 2018, Paulo wrote:
On Wed, 17 Oct 2018 Andrew wrote:
On Wed, 17 Oct 2018 Paulo wrote:
Even so, this would be a nice example of the SP REST API.
The text was updated successfully, but these errors were encountered: