This repository has been archived by the owner on Jan 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Need to: - Implement Go action handlers in config-api (on separate optional hasura-only listen port) - Create `hasura-action-secret` Secret in controller (copy `hasura-admin-secret` handling) Signed-off-by: Nick Parker <nick@opstrace.com>
- Loading branch information
Nick Parker
committed
Feb 25, 2021
1 parent
03814c7
commit b34ae19
Showing
6 changed files
with
167 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,57 @@ | ||
type Mutation { | ||
GetAlertmanagerConfig ( | ||
tenant: String! | ||
): GetAlertmanagerConfigOutput | ||
} | ||
|
||
|
||
type Mutation { | ||
SetAlertmanagerConfig ( | ||
tenant: String! | ||
config: String! | ||
): SetAlertmanagerConfigOutput | ||
} | ||
|
||
|
||
type Mutation { | ||
ValidateCredential ( | ||
tenant: String! | ||
name: String! | ||
type: String! | ||
value: json! | ||
): ValidateCredentialOutput | ||
} | ||
|
||
|
||
type Mutation { | ||
ValidateExporter ( | ||
tenant: String! | ||
name: String! | ||
type: String! | ||
credential: String | ||
config: json! | ||
): ValidateExporterOutput | ||
} | ||
|
||
|
||
|
||
|
||
type GetAlertmanagerConfigOutput { | ||
tenant : String! | ||
config : String! | ||
} | ||
|
||
type SetAlertmanagerConfigOutput { | ||
tenant : String! | ||
} | ||
|
||
type ValidateCredentialOutput { | ||
tenant : String! | ||
name : String! | ||
} | ||
|
||
type ValidateExporterOutput { | ||
tenant : String! | ||
name : String! | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,46 @@ | ||
actions: [] | ||
actions: | ||
- name: GetAlertmanagerConfig | ||
definition: | ||
kind: synchronous | ||
handler: '{{ACTION_CONFIG_API_ENDPOINT}}' | ||
headers: | ||
- name: Hasura-Secret | ||
value_from_env: ACTION_CONFIG_API_SECRET | ||
permissions: | ||
- role: user_admin | ||
- name: SetAlertmanagerConfig | ||
definition: | ||
kind: synchronous | ||
handler: '{{ACTION_CONFIG_API_ENDPOINT}}' | ||
headers: | ||
- name: Hasura-Secret | ||
value_from_env: ACTION_CONFIG_API_SECRET | ||
permissions: | ||
- role: user_admin | ||
- name: ValidateCredential | ||
definition: | ||
kind: synchronous | ||
handler: '{{ACTION_CONFIG_API_ENDPOINT}}' | ||
headers: | ||
- name: Hasura-Secret | ||
value_from_env: ACTION_CONFIG_API_SECRET | ||
permissions: | ||
- role: user_admin | ||
- name: ValidateExporter | ||
definition: | ||
kind: synchronous | ||
handler: '{{ACTION_CONFIG_API_ENDPOINT}}' | ||
headers: | ||
- name: Hasura-Secret | ||
value_from_env: ACTION_CONFIG_API_SECRET | ||
permissions: | ||
- role: user_admin | ||
custom_types: | ||
enums: [] | ||
input_objects: [] | ||
objects: [] | ||
objects: | ||
- name: GetAlertmanagerConfigOutput | ||
- name: SetAlertmanagerConfigOutput | ||
- name: ValidateCredentialOutput | ||
- name: ValidateExporterOutput | ||
scalars: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters