Trying to provide a clean API that has lots of optional fields is pretty verbose right now, as was made clear by service checks, not to mention all the options that events support that we should add. My thought is to transition the API to more of a builder pattern, so that you never have to specify the optional arguments that you don't care about:
client.service_check("redis.can_connect", ServiceStatus::OK)
.hostname("my-host.localhost")
.timestamp(1510327616)
.send()
or
client.gauge("my_gauge", "12345")
.tag("special:tag")
.send()
Trying to provide a clean API that has lots of optional fields is pretty verbose right now, as was made clear by service checks, not to mention all the options that events support that we should add. My thought is to transition the API to more of a builder pattern, so that you never have to specify the optional arguments that you don't care about:
or