You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/05/24 04:56:19 UTC

[GitHub] [apisix] tzssangglass opened a new issue #4293: discuss: add new plugin to support moesif

tzssangglass opened a new issue #4293:
URL: https://github.com/apache/apisix/issues/4293


   ### Issue description
   I noticed that there is a user behavior API analytics and monitoring service platform called moesif, which is strongly related to APISIX in terms of functionality, and we can add a new plugin to APISIX to support the moesif platform so that users can use it in conjunction with APISIX and moesif.
   
   ### References
   Mail list: https://lists.apache.org/list.html?dev@apisix.apache.org:lte=1M:inptroduce%20moesif%20plugin
   GitHub project: https://github.com/Moesif/lua-resty-moesif
   Installation docs: https://www.moesif.com/docs/server-integration/nginx-openresty/#how-to-use-generic-openresty
   Log Push API: https://www.moesif.com/docs/api#api-calls


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tzssangglass commented on issue #4293: discuss: add new plugin to support moesif

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #4293:
URL: https://github.com/apache/apisix/issues/4293#issuecomment-847057950


   I initially designed the schema
   ```
       api_endpoint = {required = true, type = "url", default = "https://api.moesif.net"}, --URL for the Moesif API.
       timeout = {type = "integer", minimum = 1, default = 3}, 
       keepalive = {type = "integer", minimum = 1, default = 5},
       api_version = {default = "1.0", type = "string"},
       application_id = {required = true, default ="", type="string"}, --The Moesif application token provided to you by Moesif.
   
       request_body_masks = {default = {}, type = "array"}, --An array of request body fields to mask.
       request_header_masks = {default = {}, type = "array"},  
       request_query_masks = {default = {}, type = "array"},
       response_masks = {default = {}, type = "array"},
       response_body_masks = {default = {}, type = "array"},
       response_header_masks = {default = {}, type = "array"},
   
       batch_max_size = {type = "integer", minimum = 0, default = 1000}, 
       max_retry_count = {type = "integer", minimum = 0, default = 0},
       retry_delay = {type = "integer", minimum = 0, default = 1},
       buffer_duration = {type = "integer", minimum = 1, default = 60},
       inactive_timeout = {type = "integer", minimum = 1, default = 3},
       include_req_body = {type = "boolean", default = false},
       include_resp_body = {type = "boolean", default = false},
      
       -- Identifying users and companies
       user_id_header = {default = "", type = "string"},  --Request or response header to use for identifying the User.
       authorization_header_name = {default = "authorization", type = "string"},
       authorization_user_id_field = {default = "sub", type = "string"},
       company_id_header = {default = "", type = "string"},
   ```
   about Identifying users and companies I haven't figured out if I should put in consumer_schema.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org