 bff21ead95
			
		
	
	bff21ead95
	
	
	
		
			
			* some groups stuff * further groups rework * fixes for pause changes * adjsut timeout interval * fixes and namespace change to file scoped * more fixes * further implement groups * fix change group ownership * add some more stuff for groups * more fixes and additions * some fixes based on analyzers, add shard info to ui * add discord command, cleanup * fix regex * add group migration and deletion on user deletion * add api method for client to check health of connection * adjust regex for vanity * fixes for server and bot * fixes some string comparison in linq queries * fixes group leave and sets alias to null * fix syntax in changeownership * add better logging, fixes for group leaving * fixes for group leave Co-authored-by: Stanley Dimant <root.darkarchon@outlook.com>
		
			
				
	
	
		
			25 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| namespace MareSynchronosShared.Metrics;
 | |
| 
 | |
| public class MetricsAPI
 | |
| {
 | |
|     public const string CounterInitializedConnections = "mare_initialized_connections";
 | |
|     public const string GaugeConnections = "mare_unauthorized_connections";
 | |
|     public const string GaugeAuthorizedConnections = "mare_authorized_connections";
 | |
|     public const string GaugeAvailableWorkerThreads = "mare_available_threadpool";
 | |
|     public const string GaugeAvailableIOWorkerThreads = "mare_available_threadpool_io";
 | |
|     public const string GaugeUsersRegistered = "mare_users_registered";
 | |
|     public const string CounterUsersRegisteredDeleted = "mare_users_registered_deleted";
 | |
|     public const string GaugePairs = "mare_pairs";
 | |
|     public const string GaugePairsPaused = "mare_pairs_paused";
 | |
|     public const string GaugeFilesTotal = "mare_files";
 | |
|     public const string GaugeFilesTotalSize = "mare_files_size";
 | |
|     public const string CounterUserPushData = "mare_user_push";
 | |
|     public const string CounterUserPushDataTo = "mare_user_push_to";
 | |
|     public const string CounterAuthenticationRequests = "mare_auth_requests";
 | |
|     public const string CounterAuthenticationCacheHits = "mare_auth_requests_cachehit";
 | |
|     public const string CounterAuthenticationFailures = "mare_auth_requests_fail";
 | |
|     public const string CounterAuthenticationSuccesses = "mare_auth_requests_success";
 | |
|     public const string GaugeGroups = "mare_groups";
 | |
|     public const string GaugeGroupPairs = "mare_groups_pairs";
 | |
|     public const string GaugeGroupPairsPaused = "mare_groups_pairs_paused";
 | |
| } |