mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 00:36:46 +00:00
40 lines
928 B
Go
40 lines
928 B
Go
package requests
|
|
|
|
type AlexaSessionApplication struct {
|
|
ApplicationId string `json:"applicationId"`
|
|
}
|
|
|
|
type AlexaSession struct {
|
|
SessionId string `json:"sessionId"`
|
|
Application AlexaSessionApplication `json:"application"`
|
|
}
|
|
|
|
type AlexaIntent struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type AlexaRequest struct {
|
|
Intent AlexaIntent `json:"intent"`
|
|
}
|
|
|
|
type AlexaRequestBody struct {
|
|
Session AlexaSession `json:"session"`
|
|
Request AlexaRequest `json:"request"`
|
|
}
|
|
|
|
type PrometheusInnerAlertLabel struct {
|
|
AlertName string `json:"alertname"`
|
|
FunctionName string `json:"function_name"`
|
|
}
|
|
|
|
type PrometheusInnerAlert struct {
|
|
Status string `json:"status"`
|
|
Labels PrometheusInnerAlertLabel `json:"labels"`
|
|
}
|
|
|
|
type PrometheusAlert struct {
|
|
Status string `json:"status"`
|
|
Receiver string `json:"receiver"`
|
|
Alerts []PrometheusInnerAlert `json:"alerts"`
|
|
}
|