Sha256: e5d5fcbfd7e0163a3c8132dadef7950fe3a192f736867651e4aaeaa95d32bed3
Contents?: true
Size: 566 Bytes
Versions: 40
Compression:
Stored size: 566 Bytes
Contents
module Flydata module Api class DataEntry < Base def initialize(api_client) @model_name = 'data_entry' @url_path = "/data_ports/:data_port_id/#{@model_name.pluralize}" super end def buffer_stat(data_entry_id, mode = nil) @client.get("/#{@model_name.pluralize}/#{data_entry_id}/buffer_stat/#{mode}") end def cleanup_sync(data_entry_id, tables) @client.post("/#{@model_name.pluralize}/#{data_entry_id}/cleanup_sync", nil, {tables: tables.join(',')}) end end end end
Version data entries
40 entries across 40 versions & 1 rubygems