Yes, we now have audit logs on the API Manager for API create, update and
remove. The ideal solution is to use these logs to derive those data.

On Tue, Jul 5, 2016 at 1:42 PM, Maneesha Wijesekara <manee...@wso2.com>
wrote:

> Hi Sajith,
>
> Agreed with how the log analyzer works when an API is updated. But when
> considering the user point of view, an API shouldn't be listed in 'Deleted
> APIs' list if it's still available. Because a user might get confused when
> the statistics in 'Deleted APIs' shows some API that he/she used right now.
>
> Any suggestion to overcome this ? Probably a change in logs when editing
> an API might be a solution for this.
>
> Regards
> Maneesha
>
> On Tue, Jul 5, 2016 at 1:11 PM, Sajith Perera <saji...@wso2.com> wrote:
>
>>
>> Hi Maneesha,
>>
>> Log analyzer purely based on the log events which are generated by a
>> particular product. For each stat, there are set of keywords and rules in
>> log lines, which we are identifying as unique for that scenario.
>>
>> Regarding the above mentioned scenario, if there is an update on an API
>> in given time frame, there will be two log lines printed with "Destroying"
>> and "Initiating" keywords.
>>
>> 1. Deleted Artifact X
>> 2. Created Artifact X
>>
>> These events are listed as "Deployed Api X" and "Deleted Api X" tables in
>> the given time frame, as they are the "facts" within the given time frame.
>>
>> Thanks,
>> SajithD
>>
>> On Tue, Jul 5, 2016 at 12:44 PM, Maneesha Wijesekara <manee...@wso2.com>
>> wrote:
>>
>>> Hi all,
>>>
>>> Currently 'API Deployment Stats' in Log Analyzer listed both Deployed
>>> APIs and Deleted APIs. But I've noticed that some available APIs (not yet
>>> deleted) are also listed under 'Deleted APIs' [1]. The reason behind this
>>> is when an API is edited, it will destroyed and again re-deployed. That log
>>> will cause to include an available API under 'Deleted APIs'. But when it
>>> comes to the function 'Deleted APIs', it should only list the names of APIs
>>> which are actually deleted.
>>>
>>> Any thoughts on this ?
>>>
>>> [1] https://wso2.org/jira/browse/ANLYAPIM-79
>>>
>>> --
>>> Maneesha Wijesekara
>>> Software Engineer - QA Team
>>> WSO2 Inc.
>>>
>>> Email: manee...@wso2.com
>>> Linkedin: http://linkedin.com/in/maneeshawijesekara
>>> Mobile: +94712443119
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Sajith Dimal
>> Software Engineer
>> Mobile : +94783101496
>> WSO2 Inc. | http://wso2.com
>> lean.enterprise.middleware
>>
>
>
>
> --
> Maneesha Wijesekara
> Software Engineer - QA Team
> WSO2 Inc.
>
> Email: manee...@wso2.com
> Linkedin: http://linkedin.com/in/maneeshawijesekara
> Mobile: +94712443119
>



-- 
Nuwan Dias

Technical Lead - WSO2, Inc. http://wso2.com
email : nuw...@wso2.com
Phone : +94 777 775 729
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to