https://github.com/logicmonitor/lm-logs-sdk-ruby
Ruby SDK for sending logs to Logic Monitor
https://github.com/logicmonitor/lm-logs-sdk-ruby
Last synced: 8 months ago
JSON representation
Ruby SDK for sending logs to Logic Monitor
- Host: GitHub
- URL: https://github.com/logicmonitor/lm-logs-sdk-ruby
- Owner: logicmonitor
- License: apache-2.0
- Created: 2020-08-23T02:06:28.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-15T09:30:10.000Z (over 5 years ago)
- Last Synced: 2025-10-07T22:40:26.447Z (8 months ago)
- Language: Ruby
- Size: 9.77 KB
- Stars: 0
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://badge.fury.io/rb/lm-logs-sdk)
# lm-logs-sdk-ruby(beta)
Ruby SDK for sending logs to LogicMonitor
**NOTE:** This SDK was created for use by LogicMonitor-built log integrations and is not intended to be used or supported otherwise.
`gem install lm-logs-sdk`
``` ruby
require 'ingest'
require 'json'
ingest = Ingest.new("", "", "")
logs = [{
"message" => "Hello! from Logic Monitor",
"_lm.resourceId" => {
"" => ""
}
}]
result = ingest.send_logs(logs)
print result.body # {"success":true,"message":"Accepted"}
print result.code # 202
print result["x-request-id"] # 202f5cc0dc121340e2c4a8908e87accf51c
```