Skip to content

Commit

Permalink
add thrift endpoint for sending user notifications
Browse files Browse the repository at this point in the history
Summary:
update thrift interface to include a function that can send system level notifications.

Currently this endpoint is aimed to support windows notifications for -
1. eden-health report runs.
2. eden ready status

Reviewed By: genevievehelsel

Differential Revision: D69225325

fbshipit-source-id: ad3f7848cd3c31a218b934c4a420af4743d09c06
  • Loading branch information
ViniGupta08 authored and facebook-github-bot committed Feb 7, 2025
1 parent 0f2b4c8 commit c7b51b7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions third-party/watchman/src/eden/fs/service/eden.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -2009,6 +2009,13 @@ struct StartFileAccessMonitorParams {
3: bool shouldUpload;
}

struct SendNotificationResponse {}

struct SendNotificationRequest {
1: string title;
2: string description;
}

service EdenService extends fb303_core.BaseService {
list<MountInfo> listMounts() throws (1: EdenError ex);
void mount(1: MountArgument info) throws (1: EdenError ex);
Expand Down Expand Up @@ -2862,4 +2869,18 @@ service EdenService extends fb303_core.BaseService {
) throws (1: EdenError ex);

StopFileAccessMonitorResult stopFileAccessMonitor() throws (1: EdenError ex);

/**
* Ask the server to send a notification to the user via the Notifier.
*
* Note that only Windows has a Notifier implementation. This is a no-op on other platforms.
*/
/**
* Ask the server to send a notification to the user via the Notifier.
*
* Note that only Windows has a Notifier implementation. This is a no-op on other platforms.
*/
SendNotificationResponse sendNotification(
1: SendNotificationRequest request,
) throws (1: EdenError ex);
}

0 comments on commit c7b51b7

Please sign in to comment.