griffin-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Work logged] (GRIFFIN-247) Support pluggable sinks
Date Fri, 12 Apr 2019 16:09:00 GMT

     [ https://issues.apache.org/jira/browse/GRIFFIN-247?focusedWorklogId=226748&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-226748
]

ASF GitHub Bot logged work on GRIFFIN-247:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 12/Apr/19 16:08
            Start Date: 12/Apr/19 16:08
    Worklog Time Spent: 10m 
      Work Description: iyuriysoft commented on pull request #500: [GRIFFIN-247] Support pluggable
sinks
URL: https://github.com/apache/griffin/pull/500
 
 
   
 
----------------------------------------------------------------
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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 226748)
    Time Spent: 0.5h  (was: 20m)

> Support pluggable sinks
> -----------------------
>
>                 Key: GRIFFIN-247
>                 URL: https://issues.apache.org/jira/browse/GRIFFIN-247
>             Project: Griffin
>          Issue Type: Improvement
>            Reporter: iyuriysoft
>            Priority: Minor
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Provide ability to use custom pluggable sinks.
> To use it we need to add new sink type CUSTOM
> {code:java}
> // saving in local files
> "sinks": [
>   {
>     "type": "CUSTOM",
>     "config": {
>       "class": "com.example.griffin.sinks.LocalFileSink",
>       "path": "/Users/Shared"
>     }
>   },
> {code}
> Contract:
> The class should be a subclass of *Sink*
> {code:java}
> case class LocalFileSink(ctx: SinkContext) extends Sink {
>   ...
>   ...
> }{code}
> Signatures of context object:
> {code:java}
> case class SinkContext(config: Map[String, Any], metricName: String, timeStamp: Long,
block: Boolean)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message