class Aliyun::Log::Logstore
Public Class Methods
from_json(attrs, protocol)
click to toggle source
# File lib/aliyun/log/logstore.rb, line 14 def self.from_json(attrs, protocol) new({ name: attrs['logstoreName'], project_name: attrs['projectName'], ttl: attrs['ttl'], shared_count: attrs['shardCount'], enable_tracking: attrs['enable_tracking'], auto_split: attrs['autoSplit'], max_split_shard: attrs['maxSplitShard'], create_time: attrs['createTime'], last_modify_time: attrs['lastModifyTime'] }, protocol) end
new(opts, protocol)
click to toggle source
Calls superclass method
Aliyun::Log::Common::AttrStruct::new
# File lib/aliyun/log/logstore.rb, line 9 def initialize(opts, protocol) super(opts) @protocol = protocol end
Public Instance Methods
create_index(fields)
click to toggle source
# File lib/aliyun/log/logstore.rb, line 56 def create_index(fields) @protocol.create_index(project_name, name, fields) end
create_index_line(token = nil)
click to toggle source
# File lib/aliyun/log/logstore.rb, line 52 def create_index_line(token = nil) @protocol.create_index_line(project_name, name, token) end
delete_index()
click to toggle source
# File lib/aliyun/log/logstore.rb, line 64 def delete_index @protocol.delete_index(project_name, name) end
get_histograms(opts = {})
click to toggle source
# File lib/aliyun/log/logstore.rb, line 40 def get_histograms(opts = {}) @protocol.get_histograms(project_name, name, opts) end
get_index()
click to toggle source
# File lib/aliyun/log/logstore.rb, line 48 def get_index @protocol.get_index(project_name, name) end
get_logs(opts = {})
click to toggle source
# File lib/aliyun/log/logstore.rb, line 36 def get_logs(opts = {}) @protocol.get_logs(project_name, name, opts) end
list_topics(opts = {})
click to toggle source
# File lib/aliyun/log/logstore.rb, line 44 def list_topics(opts = {}) @protocol.list_topics(project_name, name, opts) end
put_log(attributes)
click to toggle source
# File lib/aliyun/log/logstore.rb, line 32 def put_log(attributes) @protocol.put_log(project_name, name, attributes) end
put_logs(content)
click to toggle source
# File lib/aliyun/log/logstore.rb, line 28 def put_logs(content) @protocol.put_logs(project_name, name, content) end
update_index(fields)
click to toggle source
# File lib/aliyun/log/logstore.rb, line 60 def update_index(fields) @protocol.update_index(project_name, name, fields) end