Skip to content

Commit 4dc814e

Browse files
authored
Merge pull request #29 from tcncloud/agent-mute-unmute
Adds mute and unmute agent APIs
2 parents a8ab142 + 99bafb7 commit 4dc814e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tcnapi/exile/gate/v2/public.proto

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,19 @@ service GateService {
318318
body: "*"
319319
};
320320
}
321+
rpc MuteAgent(MuteAgentRequest) returns (MuteAgentResponse) {
322+
option (google.api.http) = {
323+
post: "/tcnapi/exile/gate/v2/agents/{partner_agent_id}/mute"
324+
body: "*"
325+
};
326+
}
327+
328+
rpc UnmuteAgent(UnmuteAgentRequest) returns (UnmuteAgentResponse) {
329+
option (google.api.http) = {
330+
post: "/tcnapi/exile/gate/v2/agents/{partner_agent_id}/unmute"
331+
body: "*"
332+
};
333+
}
321334
}
322335

323336
// TimeRange represents an inclusive time interval for filtering logs.
@@ -1468,3 +1481,13 @@ message AddRecordToJourneyBufferResponse {
14681481
REJECTED = 3;
14691482
}
14701483
}
1484+
1485+
message MuteAgentRequest {
1486+
string partner_agent_id = 1;
1487+
}
1488+
message MuteAgentResponse {}
1489+
1490+
message UnmuteAgentRequest {
1491+
string partner_agent_id = 1;
1492+
}
1493+
message UnmuteAgentResponse {}

0 commit comments

Comments
 (0)