13 lines
		
	
	
		
			363 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			363 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package model
 | |
| 
 | |
| import "encoding/json"
 | |
| 
 | |
| type SensorConfig struct {
 | |
| 	ID       json.Number `json:"id,Number,omitempty"`
 | |
| 	ConfigID string      `json:"configID,omitempty"`
 | |
| 	Target   *Target     `json:"target,omitempty"`
 | |
| 	Schedule *Schedule   `json:"schedule,omitempty"`
 | |
| 	Crawler  *Crawler    `json:"crawler,omitempty"`
 | |
| 	Items    []Item      `json:"items,omitempty"`
 | |
| }
 |