@@ -35,41 +35,41 @@ func TestPerDeviceGoodOutput(t *testing.T) {
35
35
"device" : "cs-1" ,
36
36
}
37
37
fields1 := map [string ]interface {}{
38
- "length" : 4883791872 ,
39
- "metadata_blocksize" : 8 ,
40
- "metadata_used" : 1018 ,
41
- "metadata_total" : 1501122 ,
42
- "cache_blocksize" : 512 ,
43
- "cache_used" : 7 ,
44
- "cache_total" : 464962 ,
45
- "read_hits" : 139 ,
46
- "read_misses" : 352643 ,
47
- "write_hits" : 15 ,
48
- "write_misses" : 46 ,
49
- "demotions" : 0 ,
50
- "promotions" : 7 ,
51
- "dirty" : 0 ,
38
+ "length" : int64 ( 4883791872 ) ,
39
+ "metadata_blocksize" : int64 ( 8 ) ,
40
+ "metadata_used" : int64 ( 1018 ) ,
41
+ "metadata_total" : int64 ( 1501122 ) ,
42
+ "cache_blocksize" : int64 ( 512 ) ,
43
+ "cache_used" : int64 ( 7 ) ,
44
+ "cache_total" : int64 ( 464962 ) ,
45
+ "read_hits" : int64 ( 139 ) ,
46
+ "read_misses" : int64 ( 352643 ) ,
47
+ "write_hits" : int64 ( 15 ) ,
48
+ "write_misses" : int64 ( 46 ) ,
49
+ "demotions" : int64 ( 0 ) ,
50
+ "promotions" : int64 ( 7 ) ,
51
+ "dirty" : int64 ( 0 ) ,
52
52
}
53
53
acc .AssertContainsTaggedFields (t , measurement , fields1 , tags1 )
54
54
55
55
tags2 := map [string ]string {
56
56
"device" : "cs-2" ,
57
57
}
58
58
fields2 := map [string ]interface {}{
59
- "length" : 4294967296 ,
60
- "metadata_blocksize" : 8 ,
61
- "metadata_used" : 72352 ,
62
- "metadata_total" : 1310720 ,
63
- "cache_blocksize" : 128 ,
64
- "cache_used" : 26 ,
65
- "cache_total" : 24327168 ,
66
- "read_hits" : 2409 ,
67
- "read_misses" : 286 ,
68
- "write_hits" : 265 ,
69
- "write_misses" : 524682 ,
70
- "demotions" : 0 ,
71
- "promotions" : 0 ,
72
- "dirty" : 0 ,
59
+ "length" : int64 ( 4294967296 ) ,
60
+ "metadata_blocksize" : int64 ( 8 ) ,
61
+ "metadata_used" : int64 ( 72352 ) ,
62
+ "metadata_total" : int64 ( 1310720 ) ,
63
+ "cache_blocksize" : int64 ( 128 ) ,
64
+ "cache_used" : int64 ( 26 ) ,
65
+ "cache_total" : int64 ( 24327168 ) ,
66
+ "read_hits" : int64 ( 2409 ) ,
67
+ "read_misses" : int64 ( 286 ) ,
68
+ "write_hits" : int64 ( 265 ) ,
69
+ "write_misses" : int64 ( 524682 ) ,
70
+ "demotions" : int64 ( 0 ) ,
71
+ "promotions" : int64 ( 0 ) ,
72
+ "dirty" : int64 ( 0 ) ,
73
73
}
74
74
acc .AssertContainsTaggedFields (t , measurement , fields2 , tags2 )
75
75
@@ -78,20 +78,20 @@ func TestPerDeviceGoodOutput(t *testing.T) {
78
78
}
79
79
80
80
fields3 := map [string ]interface {}{
81
- "length" : 9178759168 ,
82
- "metadata_blocksize" : 16 ,
83
- "metadata_used" : 73370 ,
84
- "metadata_total" : 2811842 ,
85
- "cache_blocksize" : 640 ,
86
- "cache_used" : 33 ,
87
- "cache_total" : 24792130 ,
88
- "read_hits" : 2548 ,
89
- "read_misses" : 352929 ,
90
- "write_hits" : 280 ,
91
- "write_misses" : 524728 ,
92
- "demotions" : 0 ,
93
- "promotions" : 7 ,
94
- "dirty" : 0 ,
81
+ "length" : int64 ( 9178759168 ) ,
82
+ "metadata_blocksize" : int64 ( 16 ) ,
83
+ "metadata_used" : int64 ( 73370 ) ,
84
+ "metadata_total" : int64 ( 2811842 ) ,
85
+ "cache_blocksize" : int64 ( 640 ) ,
86
+ "cache_used" : int64 ( 33 ) ,
87
+ "cache_total" : int64 ( 24792130 ) ,
88
+ "read_hits" : int64 ( 2548 ) ,
89
+ "read_misses" : int64 ( 352929 ) ,
90
+ "write_hits" : int64 ( 280 ) ,
91
+ "write_misses" : int64 ( 524728 ) ,
92
+ "demotions" : int64 ( 0 ) ,
93
+ "promotions" : int64 ( 7 ) ,
94
+ "dirty" : int64 ( 0 ) ,
95
95
}
96
96
acc .AssertContainsTaggedFields (t , measurement , fields3 , tags3 )
97
97
}
@@ -113,20 +113,20 @@ func TestNotPerDeviceGoodOutput(t *testing.T) {
113
113
}
114
114
115
115
fields := map [string ]interface {}{
116
- "length" : 9178759168 ,
117
- "metadata_blocksize" : 16 ,
118
- "metadata_used" : 73370 ,
119
- "metadata_total" : 2811842 ,
120
- "cache_blocksize" : 640 ,
121
- "cache_used" : 33 ,
122
- "cache_total" : 24792130 ,
123
- "read_hits" : 2548 ,
124
- "read_misses" : 352929 ,
125
- "write_hits" : 280 ,
126
- "write_misses" : 524728 ,
127
- "demotions" : 0 ,
128
- "promotions" : 7 ,
129
- "dirty" : 0 ,
116
+ "length" : int64 ( 9178759168 ) ,
117
+ "metadata_blocksize" : int64 ( 16 ) ,
118
+ "metadata_used" : int64 ( 73370 ) ,
119
+ "metadata_total" : int64 ( 2811842 ) ,
120
+ "cache_blocksize" : int64 ( 640 ) ,
121
+ "cache_used" : int64 ( 33 ) ,
122
+ "cache_total" : int64 ( 24792130 ) ,
123
+ "read_hits" : int64 ( 2548 ) ,
124
+ "read_misses" : int64 ( 352929 ) ,
125
+ "write_hits" : int64 ( 280 ) ,
126
+ "write_misses" : int64 ( 524728 ) ,
127
+ "demotions" : int64 ( 0 ) ,
128
+ "promotions" : int64 ( 7 ) ,
129
+ "dirty" : int64 ( 0 ) ,
130
130
}
131
131
acc .AssertContainsTaggedFields (t , measurement , fields , tags )
132
132
}
0 commit comments