https://github.com/segmentio/opslevel-go
A Go client for the OpsLevel Integrations API
https://github.com/segmentio/opslevel-go
Last synced: 5 months ago
JSON representation
A Go client for the OpsLevel Integrations API
- Host: GitHub
- URL: https://github.com/segmentio/opslevel-go
- Owner: segmentio
- License: mit
- Archived: true
- Created: 2020-06-02T20:40:57.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-22T20:08:03.000Z (over 5 years ago)
- Last Synced: 2025-03-25T05:35:25.673Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opslevel-go [](https://circleci.com/gh/segmentio/opslevel-go) [](https://goreportcard.com/report/github.com/segmentio/opslevel-go) [](https://godoc.org/github.com/segmentio/opslevel-go)
`opslevel-go` is a client library for the [OpsLevel](https://www.opslevel.com/) integrations API
To get started create a new client:
```
client := opslevel.NewClient()
```
## Deploys Integration
The Deploys Integration requires the following fields:
```
deployRequest := opslevel.DeployRequest{
Service: "my_service",
Description: "my_service was deployed",
Deployer: rest.Deployer{
Email: "deployer@myapp.com",
},
Environment: "env",
DeployedAt: time.Now(),
}
err := client.Deploy(deployRequest, "my-integration-uuid")
```
For a full list fields, see the docs.
## Checks Integration
The Deploys Integration requires the following fields:
```
checkRequest := CheckRequest{
Service: "my_service",
Check: "my_check",
Message: "Checks passed",
Status: "passed",
}
err := client.Check(checkRequest, "my-integration-uuid")
```
The `Message` field is optional and `Status` should be one of `passed` or `failed`.