Class: ATSD::Metric
Instance Method Summary
collapse
Methods inherited from BaseModel
#[]=, #to_request_hash
included
#camelize_keys, #camelize_keys!
#camelize_keys, #camelize_keys!
Instance Method Details
#get_counter ⇒ Object
58
59
60
|
# File 'lib/atsd/models/metric.rb', line 58
def get_counter()
self.send("counter")
end
|
#get_data_type ⇒ Object
34
35
36
|
# File 'lib/atsd/models/metric.rb', line 34
def get_data_type()
self.send("data_type")
end
|
#get_description ⇒ Object
98
99
100
|
# File 'lib/atsd/models/metric.rb', line 98
def get_description()
self.send("description")
end
|
#get_enabled ⇒ Object
26
27
28
|
# File 'lib/atsd/models/metric.rb', line 26
def get_enabled()
self.send("enabled")
end
|
#get_filter ⇒ Object
66
67
68
|
# File 'lib/atsd/models/metric.rb', line 66
def get_filter()
self.send("filter")
end
|
#get_invalid_action ⇒ Object
90
91
92
|
# File 'lib/atsd/models/metric.rb', line 90
def get_invalid_action()
self.send("invalid_action")
end
|
#get_label ⇒ Object
18
19
20
|
# File 'lib/atsd/models/metric.rb', line 18
def get_label()
self.send("label")
end
|
#get_last_insert_date ⇒ Object
118
119
120
|
# File 'lib/atsd/models/metric.rb', line 118
def get_last_insert_date()
Time.at(self.send("last_insert_time")/1000)
end
|
#get_last_insert_time ⇒ Object
114
115
116
|
# File 'lib/atsd/models/metric.rb', line 114
def get_last_insert_time()
self.send("last_insert_time")
end
|
#get_max_value ⇒ Object
82
83
84
|
# File 'lib/atsd/models/metric.rb', line 82
def get_max_value()
self.send("max_value")
end
|
#get_min_value ⇒ Object
74
75
76
|
# File 'lib/atsd/models/metric.rb', line 74
def get_min_value()
self.send("min_value")
end
|
#get_name ⇒ Object
10
11
12
|
# File 'lib/atsd/models/metric.rb', line 10
def get_name()
self.send("name")
end
|
#get_persistent ⇒ Object
50
51
52
|
# File 'lib/atsd/models/metric.rb', line 50
def get_persistent()
self.send("persistent")
end
|
#get_retention_interval ⇒ Object
106
107
108
|
# File 'lib/atsd/models/metric.rb', line 106
def get_retention_interval()
self.send("retention_interval")
end
|
134
135
136
|
# File 'lib/atsd/models/metric.rb', line 134
def get_tags()
self.send("tags")
end
|
#get_time_precision ⇒ Object
42
43
44
|
# File 'lib/atsd/models/metric.rb', line 42
def get_time_precision()
self.send("time_precision")
end
|
#get_versioned ⇒ Object
126
127
128
|
# File 'lib/atsd/models/metric.rb', line 126
def get_versioned()
self.send("versioned")
end
|
#set_counter(counter) ⇒ Object
54
55
56
|
# File 'lib/atsd/models/metric.rb', line 54
def set_counter(counter)
self["counter"] = counter
end
|
#set_data_type(data_type) ⇒ Object
30
31
32
|
# File 'lib/atsd/models/metric.rb', line 30
def set_data_type(data_type)
self["data_type"] = data_type
end
|
#set_description(description) ⇒ Object
94
95
96
|
# File 'lib/atsd/models/metric.rb', line 94
def set_description(description)
self["description"] = description
end
|
#set_enabled(enabled) ⇒ Object
22
23
24
|
# File 'lib/atsd/models/metric.rb', line 22
def set_enabled(enabled)
self["enabled"] = enabled
end
|
#set_filter(filter) ⇒ Object
62
63
64
|
# File 'lib/atsd/models/metric.rb', line 62
def set_filter(filter)
self["filter"] = filter
end
|
#set_invalid_action(invalid_action) ⇒ Object
86
87
88
|
# File 'lib/atsd/models/metric.rb', line 86
def set_invalid_action(invalid_action)
self["invalid_action"] = invalid_action
end
|
#set_label(label) ⇒ Object
14
15
16
|
# File 'lib/atsd/models/metric.rb', line 14
def set_label(label)
self["label"] = label
end
|
#set_last_insert_time(last_insert_time) ⇒ Object
110
111
112
|
# File 'lib/atsd/models/metric.rb', line 110
def set_last_insert_time(last_insert_time)
self["last_insert_time"] = last_insert_time
end
|
#set_max_value(max_value) ⇒ Object
78
79
80
|
# File 'lib/atsd/models/metric.rb', line 78
def set_max_value(max_value)
self["max_value"] = max_value
end
|
#set_min_value(min_value) ⇒ Object
70
71
72
|
# File 'lib/atsd/models/metric.rb', line 70
def set_min_value(min_value)
self["min_value"] = min_value
end
|
#set_name(name) ⇒ Object
6
7
8
|
# File 'lib/atsd/models/metric.rb', line 6
def set_name(name)
self["name"] = name
end
|
#set_persistent(persistent) ⇒ Object
46
47
48
|
# File 'lib/atsd/models/metric.rb', line 46
def set_persistent(persistent)
self["persistent"] = persistent
end
|
#set_retention_interval(retention_interval) ⇒ Object
102
103
104
|
# File 'lib/atsd/models/metric.rb', line 102
def set_retention_interval(retention_interval)
self["retention_interval"] = retention_interval
end
|
130
131
132
|
# File 'lib/atsd/models/metric.rb', line 130
def set_tags(tags)
self["tags"] = tags
end
|
#set_time_precision(time_precision) ⇒ Object
38
39
40
|
# File 'lib/atsd/models/metric.rb', line 38
def set_time_precision(time_precision)
self["time_precision"] = time_precision
end
|
#set_versioned(versioned) ⇒ Object
122
123
124
|
# File 'lib/atsd/models/metric.rb', line 122
def set_versioned(versioned)
self["versioned"] = versioned
end
|