mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
164 lines
5.9 KiB
Python
164 lines
5.9 KiB
Python
MISSING_COMMAND = {
|
|
"blocks": [
|
|
{
|
|
"type": "section",
|
|
"text": {
|
|
"type": "mrkdwn",
|
|
"text": "Here are the commands you can use. Commands not working? Re-install the app!",
|
|
},
|
|
},
|
|
{"type": "section", "text": {"type": "mrkdwn", "text": "*Direct Message Commands:*"}},
|
|
{
|
|
"type": "section",
|
|
"text": {
|
|
"type": "mrkdwn",
|
|
"text": "`/sentry help`: View this list of commands.\n`/sentry link`: Link your Slack identity to your Sentry account to receive notifications. You'll also be able to perform actions in Sentry through Slack.\n`/sentry unlink`: Unlink your Slack identity from your Sentry account.",
|
|
},
|
|
},
|
|
{"type": "section", "text": {"type": "mrkdwn", "text": "*Channel Commands:*"}},
|
|
{
|
|
"type": "section",
|
|
"text": {
|
|
"type": "mrkdwn",
|
|
"text": "`/sentry link team`: Get your Sentry team's issue alert notifications in the channel this command is typed in.\n`/sentry unlink team`: Unlink a team from the channel this command is typed in.",
|
|
},
|
|
},
|
|
{"type": "section", "text": {"type": "mrkdwn", "text": "*Contact:*"}},
|
|
{
|
|
"type": "section",
|
|
"text": {
|
|
"type": "mrkdwn",
|
|
"text": "Let us know if you have feedback: [email protected]",
|
|
},
|
|
},
|
|
{"type": "divider"},
|
|
{
|
|
"type": "section",
|
|
"text": {
|
|
"type": "mrkdwn",
|
|
"text": "Just want to learn more about Sentry? Check out our <https://docs.sentry.io/product/integrations/notification-incidents/slack/|documentation>.",
|
|
},
|
|
},
|
|
]
|
|
}
|
|
|
|
INVALID_COMMAND = {
|
|
"blocks": [
|
|
{
|
|
"type": "section",
|
|
"text": {
|
|
"type": "mrkdwn",
|
|
"text": "Unknown command: `invalid command`",
|
|
},
|
|
},
|
|
{
|
|
"type": "section",
|
|
"text": {
|
|
"type": "mrkdwn",
|
|
"text": "Here are the commands you can use. Commands not working? Re-install the app!",
|
|
},
|
|
},
|
|
{
|
|
"type": "section",
|
|
"text": {"type": "mrkdwn", "text": "*Direct Message Commands:*"},
|
|
},
|
|
{
|
|
"type": "section",
|
|
"text": {
|
|
"type": "mrkdwn",
|
|
"text": "`/sentry help`: View this list of commands.\n`/sentry link`: Link your Slack identity to your Sentry account to receive notifications. You'll also be able to perform actions in Sentry through Slack.\n`/sentry unlink`: Unlink your Slack identity from your Sentry account.",
|
|
},
|
|
},
|
|
{
|
|
"type": "section",
|
|
"text": {"type": "mrkdwn", "text": "*Channel Commands:*"},
|
|
},
|
|
{
|
|
"type": "section",
|
|
"text": {
|
|
"type": "mrkdwn",
|
|
"text": "`/sentry link team`: Get your Sentry team's issue alert notifications in the channel this command is typed in.\n`/sentry unlink team`: Unlink a team from the channel this command is typed in.",
|
|
},
|
|
},
|
|
{"type": "section", "text": {"type": "mrkdwn", "text": "*Contact:*"}},
|
|
{
|
|
"type": "section",
|
|
"text": {
|
|
"type": "mrkdwn",
|
|
"text": "Let us know if you have feedback: [email protected]",
|
|
},
|
|
},
|
|
{"type": "divider"},
|
|
{
|
|
"type": "section",
|
|
"text": {
|
|
"type": "mrkdwn",
|
|
"text": "Just want to learn more about Sentry? Check out our <https://docs.sentry.io/product/integrations/notification-incidents/slack/|documentation>.",
|
|
},
|
|
},
|
|
]
|
|
}
|
|
|
|
HELP_COMMAND = {
|
|
"blocks": [
|
|
{
|
|
"text": {
|
|
"text": "Here are the commands you can use. Commands not "
|
|
"working? Re-install the app!",
|
|
"type": "mrkdwn",
|
|
},
|
|
"type": "section",
|
|
},
|
|
{
|
|
"text": {"text": "*Direct Message Commands:*", "type": "mrkdwn"},
|
|
"type": "section",
|
|
},
|
|
{
|
|
"text": {
|
|
"text": "`/sentry help`: View this list of commands.\n"
|
|
"`/sentry link`: Link your Slack identity to "
|
|
"your Sentry account to receive notifications. "
|
|
"You'll also be able to perform actions in "
|
|
"Sentry through Slack.\n"
|
|
"`/sentry unlink`: Unlink your Slack identity "
|
|
"from your Sentry account.",
|
|
"type": "mrkdwn",
|
|
},
|
|
"type": "section",
|
|
},
|
|
{
|
|
"text": {"text": "*Channel Commands:*", "type": "mrkdwn"},
|
|
"type": "section",
|
|
},
|
|
{
|
|
"text": {
|
|
"text": "`/sentry link team`: Get your Sentry team's "
|
|
"issue alert notifications in the channel this "
|
|
"command is typed in.\n"
|
|
"`/sentry unlink team`: Unlink a team from the "
|
|
"channel this command is typed in.",
|
|
"type": "mrkdwn",
|
|
},
|
|
"type": "section",
|
|
},
|
|
{"text": {"text": "*Contact:*", "type": "mrkdwn"}, "type": "section"},
|
|
{
|
|
"text": {
|
|
"text": "Let us know if you have feedback: " "[email protected]",
|
|
"type": "mrkdwn",
|
|
},
|
|
"type": "section",
|
|
},
|
|
{"type": "divider"},
|
|
{
|
|
"text": {
|
|
"text": "Just want to learn more about Sentry? Check out "
|
|
"our "
|
|
"<https://docs.sentry.io/product/integrations/notification-incidents/slack/|documentation>.",
|
|
"type": "mrkdwn",
|
|
},
|
|
"type": "section",
|
|
},
|
|
]
|
|
}
|