7056c70647 
								
							 
						 
						
							
							
								
								Merge pull request  #16851  from jingchanglu/main  
							
							... 
							
							
							
							chore: fix some function names in comment 
							
						 
						
							2025-09-30 12:54:48 +01:00  
				
					
						
							
							
								 
						
							
								cef219c31c 
								
							 
						 
						
							
							
								
								chore: enable unused-receiver rule from revive  
							
							... 
							
							
							
							Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> 
							
						 
						
							2025-08-04 09:43:33 +00:00  
				
					
						
							
							
								 
						
							
								9ddb21fccb 
								
							 
						 
						
							
							
								
								chore: fix some function names in comment  
							
							... 
							
							
							
							Signed-off-by: jingchanglu <jingchanglu@outlook.com> 
							
						 
						
							2025-07-10 14:43:25 +08:00  
				
					
						
							
							
								 
						
							
								b86d4ba312 
								
							 
						 
						
							
							
								
								chore: fix some function names in comment  
							
							... 
							
							
							
							Signed-off-by: gopherorg <gopherworld@icloud.com> 
							
						 
						
							2025-06-27 15:34:53 +08:00  
				
					
						
							
							
								 
						
							
								56fd8a1e4a 
								
							 
						 
						
							
							
								
								bugfix: add missing comma in vector/matrix array ( #14047 )  
							
							... 
							
							
							
							* bugfix: Add missing comma when encoding JSON results in web API
---------
Signed-off-by: Amir Vejahat <amir.vejahat.av@gmail.com>
Co-authored-by: Arthur Silva Sens <arthur.sens@coralogix.com> 
							
						 
						
							2024-05-03 14:07:49 -03:00  
				
					
						
							
							
								 
						
							
								5c8ffaa77c 
								
							 
						 
						
							
							
								
								bugfix: API: encode empty Vector/Matrix as []  
							
							... 
							
							
							
							If the underlying data is `nil` the default encoding
will render `"null"` which is not accepted by
(some) Prometheus client libraries.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com> 
							
						 
						
							2024-04-29 19:08:10 +01:00  
				
					
						
							
							
								 
						
							
								e0a00f45db 
								
							 
						 
						
							
							
								
								refactor: API: separate typed and unsafe marshalling  
							
							... 
							
							
							
							The typed versions are used when we call from one marshaller to another.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com> 
							
						 
						
							2024-04-29 19:08:10 +01:00  
				
					
						
							
							
								 
						
							
								66a1c3daad 
								
							 
						 
						
							
							
								
								refactor: API: be explicit that we marshal empty objects  
							
							... 
							
							
							
							Signed-off-by: Bryan Boreham <bjboreham@gmail.com> 
							
						 
						
							2024-04-29 19:08:10 +01:00  
				
					
						
							
							
								 
						
							
								dcadb32eb1 
								
							 
						 
						
							
							
								
								web/api: use stream encoder for embedded labels  
							
							... 
							
							
							
							This is much more efficient.
Signed-off-by: Bryan Boreham <bjboreham@gmail.com> 
							
						 
						
							2023-07-24 20:42:36 +01:00  
				
					
						
							
							
								 
						
							
								bb528d4a55 
								
							 
						 
						
							
							
								
								Add jsoniter encoder for Labels  
							
							... 
							
							
							
							Signed-off-by: Bryan Boreham <bjboreham@gmail.com> 
							
						 
						
							2023-07-24 20:13:34 +01:00  
				
					
						
							
							
								 
						
							
								097faf33c6 
								
							 
						 
						
							
							
								
								Merge branch 'main' into api-response-format-extension-point  
							
							... 
							
							
							
							# Conflicts:
#	web/api/v1/api.go
#	web/api/v1/api_test.go 
							
						 
						
							2023-07-04 13:26:13 +10:00  
				
					
						
							
							
								 
						
							
								46a28899a0 
								
							 
						 
						
							
							
								
								Implement fully-featured content negotiation for API requests, and allow overriding the default API codec.  
							
							... 
							
							
							
							Signed-off-by: Charles Korn <charles.korn@grafana.com> 
							
						 
						
							2023-03-09 12:02:45 +11:00  
				
					
						
							
							
								 
						
							
								a0dd1468be 
								
							 
						 
						
							
							
								
								Move custom jsoniter code into json_codec.go.  
							
							... 
							
							
							
							Signed-off-by: Charles Korn <charles.korn@grafana.com> 
							
						 
						
							2023-02-02 13:10:20 +11:00  
				
					
						
							
							
								 
						
							
								3e94dd8c8f 
								
							 
						 
						
							
							
								
								Add extension point for returning different content types from API endpoints  
							
							... 
							
							
							
							Signed-off-by: Charles Korn <charles.korn@grafana.com> 
							
						 
						
							2023-02-02 13:10:19 +11:00