Skip to content

Instantly share code, notes, and snippets.

@msonnabaum
Last active October 5, 2015 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msonnabaum/4cb5238060114bb7aa65 to your computer and use it in GitHub Desktop.
Save msonnabaum/4cb5238060114bb7aa65 to your computer and use it in GitHub Desktop.
namespace go thriftgen
namespace rb LatencyMetricsThrift
struct LatencyMetric {
1: string timestamp,
2: required string product,
3: required string host,
4: required string metric,
5: string environment,
6: required double value,
}
struct LatencyMetricResponse {
1: bool success,
}
service LatencyMetricService {
LatencyMetricResponse sendMetric(1: LatencyMetric lm),
list<LatencyMetricResponse> sendMetrics(1: list<LatencyMetric> lms),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment