opslevel-go
is a client library for the OpsLevel integrations API
To get started create a new client:
client := opslevel.NewClient()
The Deploys Integration requires the following fields:
deployRequest := opslevel.DeployRequest{
Service: "my_service",
Description: "my_service was deployed",
Deployer: rest.Deployer{
Email: "[email protected]",
},
Environment: "env",
DeployedAt: time.Now(),
}
err := client.Deploy(deployRequest, "my-integration-uuid")
For a full list fields, see the docs.
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
.