mirror of
https://github.com/facebook/sapling.git
synced 2024-09-11 18:47:10 +03:00
fbcode/fboss/
Reviewed By: peygar Differential Revision: D51848562 fbshipit-source-id: 667614992168ce478564d954857efa5cbbf7bff8
This commit is contained in:
parent
168b3b4827
commit
c00407fb18
@ -6,6 +6,15 @@ oncall("fboss_agent_push")
|
||||
thrift_library(
|
||||
name = "fb303",
|
||||
languages = ["cpp2"],
|
||||
no_plugin_deps = [
|
||||
"//thrift/annotation:cpp",
|
||||
"//thrift/annotation:go",
|
||||
"//thrift/annotation:hack",
|
||||
"//thrift/annotation:java",
|
||||
"//thrift/annotation:python",
|
||||
"//thrift/annotation:thrift",
|
||||
"//thrift/facebook/erlang:annotations",
|
||||
],
|
||||
plugins = [thrift_plugin_automock],
|
||||
thrift_srcs = {
|
||||
"fb303.thrift": ["FacebookService"],
|
||||
|
@ -21,6 +21,8 @@ namespace cpp facebook.fb303
|
||||
/**
|
||||
* Common status reporting mechanism across all services
|
||||
*/
|
||||
include "thrift/annotation/thrift.thrift"
|
||||
|
||||
enum fb_status {
|
||||
DEAD = 0,
|
||||
STARTING = 1,
|
||||
@ -37,7 +39,8 @@ service FacebookService {
|
||||
/**
|
||||
* Gets the status of this service
|
||||
*/
|
||||
fb_status getStatus() (priority = 'IMPORTANT');
|
||||
@thrift.Priority{level = thrift.RpcPriority.IMPORTANT}
|
||||
fb_status getStatus();
|
||||
|
||||
/**
|
||||
* Gets the counters for this service
|
||||
@ -52,7 +55,8 @@ service FacebookService {
|
||||
/**
|
||||
* Returns the unix time that the server has been running since
|
||||
*/
|
||||
i64 aliveSince() (priority = 'IMPORTANT');
|
||||
@thrift.Priority{level = thrift.RpcPriority.IMPORTANT}
|
||||
i64 aliveSince();
|
||||
|
||||
/**
|
||||
* Returns the pid of the process
|
||||
|
Loading…
Reference in New Issue
Block a user