forked from nacos-group/nacos-sdk-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(openapi): add query system metrics
- Loading branch information
1 parent
4b11429
commit 30d9b1c
Showing
4 changed files
with
86 additions
and
0 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
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,50 @@ | ||
namespace Nacos.OpenApi | ||
{ | ||
public class NacosMetrics | ||
{ | ||
[Newtonsoft.Json.JsonProperty("status")] | ||
public string Status { get; set; } | ||
|
||
[Newtonsoft.Json.JsonProperty("serviceCount")] | ||
public int ServiceCount { get; set; } | ||
|
||
[Newtonsoft.Json.JsonProperty("instanceCount")] | ||
public int InstanceCount { get; set; } | ||
|
||
[Newtonsoft.Json.JsonProperty("subscribeCount")] | ||
public int SubscribeCount { get; set; } | ||
|
||
[Newtonsoft.Json.JsonProperty("raftNotifyTaskCount")] | ||
public int RaftNotifyTaskCount { get; set; } | ||
|
||
[Newtonsoft.Json.JsonProperty("responsibleServiceCount")] | ||
public int ResponsibleServiceCount { get; set; } | ||
|
||
[Newtonsoft.Json.JsonProperty("responsibleInstanceCount")] | ||
public int ResponsibleInstanceCount { get; set; } | ||
|
||
[Newtonsoft.Json.JsonProperty("clientCount")] | ||
public int ClientCount { get; set; } | ||
|
||
[Newtonsoft.Json.JsonProperty("connectionBasedClientCount")] | ||
public int ConnectionBasedClientCount { get; set; } | ||
|
||
[Newtonsoft.Json.JsonProperty("ephemeralIpPortClientCount")] | ||
public int EphemeralIpPortClientCount { get; set; } | ||
|
||
[Newtonsoft.Json.JsonProperty("persistentIpPortClientCount")] | ||
public int PersistentIpPortClientCount { get; set; } | ||
|
||
[Newtonsoft.Json.JsonProperty("responsibleClientCount")] | ||
public int ResponsibleClientCount { get; set; } | ||
|
||
[Newtonsoft.Json.JsonProperty("cpu")] | ||
public float Cpu { get; set; } | ||
|
||
[Newtonsoft.Json.JsonProperty("load")] | ||
public float Load { get; set; } | ||
|
||
[Newtonsoft.Json.JsonProperty("mem")] | ||
public float Mem { get; set; } | ||
} | ||
} |