Improvements to the list output

This commit is contained in:
Arturo Filastò
2018-09-11 15:19:08 +02:00
parent 66ffbde270
commit 31ccb1c181
3 changed files with 14 additions and 8 deletions
+8 -7
View File
@@ -26,22 +26,23 @@ func MeasurementItem(msmt database.MeasurementURLNetwork) {
"type": "measurement_item",
"id": msmt.MsmtTblID,
"test_name": msmt.TestName,
"start_time": msmt.StartTime,
"test_group_name": msmt.Result.TestGroupName,
"start_time": msmt.Measurement.StartTime,
"test_keys": msmt.TestKeys,
"probe_cc": msmt.Network.CountryCode,
"network_name": msmt.Network.NetworkName,
"asn": msmt.Network.ASN,
"runtime": msmt.Runtime,
"url": msmt.URL.URL,
"url_category_code": msmt.URL.CategoryCode,
"url_country_code": msmt.URL.CountryCode,
"is_anomaly": msmt.IsAnomaly,
"runtime": msmt.Measurement.Runtime,
"url": msmt.URL.URL.String,
"url_category_code": msmt.URL.CategoryCode.String,
"url_country_code": msmt.URL.CountryCode.String,
"is_anomaly": msmt.IsAnomaly.Bool,
"is_uploaded": msmt.IsUploaded,
"is_upload_failed": msmt.IsUploadFailed,
"upload_failure_msg": msmt.UploadFailureMsg.String,
"is_failed": msmt.IsFailed,
"failure_msg": msmt.FailureMsg.String,
"is_done": msmt.IsDone,
"is_done": msmt.Measurement.IsDone,
"report_file_path": msmt.ReportFilePath,
}).Info("measurement")
}