repositorypackage
0.0.4
Repository: https://github.com/segmentio/opslevel-go.git
Documentation: pkg.go.dev
# README
opslevel-go

opslevel-go
is a client library for the OpsLevel 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
.