mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	
		
			
	
	
		
			12 lines
		
	
	
		
			204 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			12 lines
		
	
	
		
			204 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package metrics
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import "encoding/json"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func (this *MetricItem) DecodeKeys() []string {
							 | 
						||
| 
								 | 
							
									var result []string
							 | 
						||
| 
								 | 
							
									if len(this.Keys) > 0 {
							 | 
						||
| 
								 | 
							
										_ = json.Unmarshal([]byte(this.Keys), &result)
							 | 
						||
| 
								 | 
							
									}
							 | 
						||
| 
								 | 
							
									return result
							 | 
						||
| 
								 | 
							
								}
							 |