oncall-engine/grafana-plugin/pkg/plugin/errors.go
Dominik Broj 06d19bf6e9
New OnCall plugin initialization process (#4657)
# What this PR does

New OnCall plugin initialization process

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] Added the relevant release notes label (see labels prefixed w/
`release:`). These labels dictate how your PR will
    show up in the autogenerated release notes.

---------

Co-authored-by: Michael Derynck <michael.derynck@grafana.com>
Co-authored-by: Matias Bordese <mbordese@gmail.com>
2024-08-16 16:43:52 +00:00

11 lines
226 B
Go

package plugin
const (
INSTALL_ERROR_CODE = 1000
)
type OnCallError struct {
Code int `json:"code"`
Message string `json:"message"`
Fields map[string][]string `json:"fields,omitempty"`
}