szaydel
4/5/2013 - 2:35 PM

basic-metrics-brickstor

m = json.dumps({ "metrics" :

                     [
                         { "device":       	"abc123xyz",
                           "class":    		"hw-storage",
                           "group":      	"hdd",
                           "component":  	"disk1",
                           "field":   		"errors",
                           "sub field":		"soft errors",
                           "metric":       	"50",
                           "timestamp":    	time.strftime('%s')
                         },

                         { "device":   		"abc123xyz",
                           "class":    		"hw-storage",
                           "group":      	"hdd",
                           "component":  	"disk1",
                           "field":   		"errors",
                           "sub field":		"hard errors",
                           "metric":       	"50",
                           "timestamp":    	time.strftime('%s')
                         },

                         { "device":   		"abc123xyz",
                           "class":    		"hw-storage",
                           "group":      	"hdd",
                           "component":  	"disk1",
                           "field":   		"errors",
                           "sub field":		"trans errors",
                           "metric":       	"100",
                           "timestamp":    	time.strftime('%s')
                         }

                     ]

}
)