* TP-38709 | Merging the changes to master on the logfix * TP-51020 | Added help commands button in incident channel which displays the list of supported commands
122 lines
3.6 KiB
Go
122 lines
3.6 KiB
Go
package util
|
|
|
|
type BlockActionType string
|
|
|
|
const (
|
|
StartIncident BlockActionType = "start_incident"
|
|
ShowIncidents = "show_incidents"
|
|
HelpCommand = "help_button"
|
|
Incident = "incident"
|
|
AssignIncidentRole = "assign_incident_role"
|
|
ResolveIncident = "resolve_incident"
|
|
SetIncidentStatus = "set_incident_status"
|
|
SetIncidentType = "set_incident_type"
|
|
SetIncidentSeverity = "set_incident_severity"
|
|
SetIncidentTitle = "set_incident_title"
|
|
SetIncidentDescription = "set_incident_description"
|
|
SetRCADetails = "set_rca_details"
|
|
RCASection = "rca_section"
|
|
ShowRCADetails = "show_rca_details"
|
|
SetRCASummary = "set_rca_summary"
|
|
SetJiraLinks = "set_jira_links"
|
|
MarkIncidentDuplicate = "mark_incident_duplicate"
|
|
ButtonsBlock = "buttons_block"
|
|
)
|
|
|
|
type ViewSubmissionType string
|
|
|
|
const (
|
|
StartIncidentSubmit ViewSubmissionType = "start_incident_submit"
|
|
AssignIncidentRoleSubmit = "assign_incident_role_submit"
|
|
SetIncidentStatusSubmit = "set_incident_status_submit"
|
|
SetIncidentTitleSubmit = "set_incident_title_submit"
|
|
SetIncidentDescriptionSubmit = "set_incident_description_submit"
|
|
SetIncidentSeveritySubmit = "set_incident_severity_submit"
|
|
SetIncidentTypeSubmit = "set_incident_type_submit"
|
|
SetIncidentRCADetailsSubmit = "set_rca_details_submit"
|
|
IncidentResolveSubmit = "resolve_incident_submit"
|
|
SetIncidentJiraLinksSubmit = "set_Jira_links_submit"
|
|
ShowIncidentSubmit = "show_incident_submit"
|
|
MarkIncidentDuplicateSubmit = "mark_incident_duplicate_submit"
|
|
)
|
|
|
|
const (
|
|
UserChangeEvent = "user_change"
|
|
DeactivatedUserName = "Deactivated User"
|
|
AlreadyArchivedError = "already_archived"
|
|
NotInChannelError = "not_in_channel"
|
|
NotFoundError = "not found"
|
|
)
|
|
|
|
const (
|
|
UserEmailHeader = "X-User-Email"
|
|
SessionTokenHeader = "X-Session-Token"
|
|
)
|
|
|
|
const ()
|
|
|
|
const (
|
|
ConferenceMessage = "To discuss, use this *<%s|Meet link>*"
|
|
)
|
|
|
|
type ContentType string
|
|
|
|
const (
|
|
ContentTypeJSON = "application/json"
|
|
ContentTypeTextHTML = "text/html"
|
|
GoogleDriveFileMimeType = "application/vnd.google-apps.folder"
|
|
)
|
|
|
|
const (
|
|
DocumentServiceFlowIdForSlack = "HOUSTON_GEN_AI_SLACK"
|
|
DocumentServiceFlowIdForTranscript = "HOUSTON_GEN_AI_TRANSCRIPT"
|
|
)
|
|
|
|
const (
|
|
DocumentServicePNGFileType = "PNG"
|
|
DocumentServiceDOCFileType = "DOC"
|
|
DocumentServiceDOCXFileType = "DOCX"
|
|
DocumentServiceJSONFileType = "JSON"
|
|
SlackConversationDataType = "SLACK"
|
|
)
|
|
|
|
const (
|
|
RcaStatusSuccess = "SUCCESS"
|
|
RcaStatusFailure = "FAILURE"
|
|
RcaStatusPending = "PENDING"
|
|
)
|
|
|
|
type DocumentServiceFileTypeKeys string
|
|
|
|
// DocumentServiceProvider service names for uploading documents to cloud
|
|
const (
|
|
DocumentServiceProvider = "SA_DOCUMENT_SERVICE"
|
|
)
|
|
|
|
const (
|
|
JiraLinksLabel = "Jira link(s)"
|
|
RCASummaryLabel = "RCA summary"
|
|
RCADetailsLabel = "RCA details"
|
|
JiraIdSeparator = "/browse/"
|
|
)
|
|
|
|
// slack element types
|
|
const (
|
|
MarkDownElementType = "mrkdwn"
|
|
PlainTextType = "plain_text"
|
|
)
|
|
|
|
const (
|
|
IdParam = "id"
|
|
)
|
|
|
|
const (
|
|
SingleConcurrentProcessCount = 1
|
|
KrakatoaProcessCount = 2
|
|
)
|
|
|
|
const (
|
|
ExtensionPNG = ".png"
|
|
ExtensionCSV = ".csv"
|
|
)
|