https://github.com/logicmonitor/lm-sdk-go
https://github.com/logicmonitor/lm-sdk-go
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/logicmonitor/lm-sdk-go
- Owner: logicmonitor
- License: apache-2.0
- Created: 2017-06-07T22:07:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-08-27T10:15:17.000Z (almost 2 years ago)
- Last Synced: 2024-08-27T11:34:03.151Z (almost 2 years ago)
- Language: Go
- Size: 4.96 MB
- Stars: 1
- Watchers: 8
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# lm-sdk-go
[](https://godoc.org/github.com/logicmonitor/lm-sdk-go)
Getting Started
---------------
```go
package main
import lmv1 "github.com/logicmonitor/lm-sdk-go"
func NewLMClient(id, key, company string) *lmv1.DefaultApi {
config := lmv1.NewConfiguration()
config.APIKey = map[string]map[string]string{
"Authorization": map[string]string{
"AccessID": id,
"AccessKey": key,
},
}
config.BasePath = "https://" + company + ".logicmonitor.com/santaba/rest"
api := lmv1.NewDefaultApi()
api.Configuration = config
return api
}
func main() {
client := NewLMClient("foo", "bar", "baz")
}
```
### License
[](https://github.com/logicmonitor/lm-sdk-go/blob/master/LICENSE)