fbcode/fboss/

Reviewed By: peygar

Differential Revision: D51848562

fbshipit-source-id: 667614992168ce478564d954857efa5cbbf7bff8
This commit is contained in:
generatedunixname226714639793621 2023-12-05 09:06:57 -08:00 committed by Facebook GitHub Bot
parent 168b3b4827
commit c00407fb18
2 changed files with 15 additions and 2 deletions

View File

@ -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"],

View File

@ -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