-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle all exceptions while publishing in discovery client
Add stats to discovery client and make them avaiable via API server introspect. Change-Id: I2941b9bf4d8bdf89286eb166091a04058edcf884 Partial-Bug: #1534342
- Loading branch information
Deepinder Setia
committed
Feb 4, 2016
1 parent
731710e
commit 81c0909
Showing
7 changed files
with
263 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// | ||
// Introspect structs for API server | ||
// | ||
// Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. | ||
// | ||
|
||
struct SubscriberStats { | ||
1: string service_type; | ||
2: u32 Request; | ||
3: u32 Response; | ||
4: string HttpError; | ||
5: u32 ConnError; | ||
6: u32 Timeout; | ||
7: u32 unknown_exceptions; | ||
8: string exception_info; | ||
} | ||
|
||
struct PublisherStats { | ||
1: string service_type; | ||
2: u32 Request; | ||
3: u32 Response; | ||
4: string HttpError; | ||
5: u32 ConnError; | ||
6: u32 Timeout; | ||
7: u32 unknown_exceptions; | ||
8: string exception_info; | ||
} | ||
|
||
request sandesh DiscoveryClientStatsReq { | ||
} | ||
|
||
response sandesh DiscoveryClientStatsResp { | ||
1: list<PublisherStats> Publish; | ||
2: list<SubscriberStats> Subscribe; | ||
} | ||
|
||
struct SubscribeInfo { | ||
1: string service_type; | ||
2: u32 instances; | ||
3: u32 ttl; | ||
4: string blob; | ||
} | ||
|
||
request sandesh DiscoveryClientSubscribeInfoReq { | ||
} | ||
|
||
response sandesh DiscoveryClientSubscribeInfoResp { | ||
1: list<SubscribeInfo> Subscribe; | ||
} | ||
|
||
struct PublishInfo { | ||
1: string service_type; | ||
2: string blob; | ||
} | ||
|
||
request sandesh DiscoveryClientPublishInfoReq { | ||
} | ||
|
||
response sandesh DiscoveryClientPublishInfoResp { | ||
1: list<PublishInfo> Publish | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.