Class: Integrations::Mattermost
- Inherits:
-
Integration
- Object
- ActiveRecord::Base
- ApplicationRecord
- Integration
- Integrations::Mattermost
- Defined in:
- app/models/integrations/mattermost.rb
Constant Summary
Constants included from Base::ChatNotification
Base::ChatNotification::EVENT_CHANNEL, Base::ChatNotification::GROUP_ONLY_SUPPORTED_EVENTS, Base::ChatNotification::LABEL_NOTIFICATION_BEHAVIOURS, Base::ChatNotification::SECRET_MASK, Base::ChatNotification::SUPPORTED_EVENTS, Base::ChatNotification::SUPPORTED_EVENTS_FOR_LABEL_FILTER
Constants included from NotificationPipelineStatusSelection
NotificationPipelineStatusSelection::FIELD
Constants included from Base::Integration
Base::Integration::BASE_ATTRIBUTES, Base::Integration::BASE_CLASSES, Base::Integration::DEV_INTEGRATION_NAMES, Base::Integration::ENCRYPTED_PROPERTIES_MAX_SIZE, Base::Integration::INSTANCE_LEVEL_ONLY_INTEGRATION_NAMES, Base::Integration::INTEGRATION_NAMES, Base::Integration::PROJECT_AND_GROUP_LEVEL_ONLY_INTEGRATION_NAMES, Base::Integration::PROJECT_LEVEL_ONLY_INTEGRATION_NAMES, Base::Integration::SECTION_TYPE_CONFIGURATION, Base::Integration::SECTION_TYPE_CONNECTION, Base::Integration::SECTION_TYPE_TRIGGER, Base::Integration::SNOWPLOW_EVENT_ACTION, Base::Integration::SNOWPLOW_EVENT_LABEL, Base::Integration::UnknownType
Constants inherited from ApplicationRecord
Constants included from HasCheckConstraints
HasCheckConstraints::NOT_NULL_CHECK_PATTERN
Constants included from ResetOnColumnErrors
ResetOnColumnErrors::MAX_RESET_PERIOD
Class Method Summary collapse
Instance Method Summary collapse
Methods included from HasAvatar
Methods included from Base::ChatNotification
#api_field_names, #channel_limit_per_event, #confidential_issue_channel, #confidential_note_channel, #configurable_events, #event_channel_names, #event_channel_value, #execute, #fields, #form_fields, #initialize_properties, #mask_configurable_channels?, #sections, #webhook_help
Methods included from Gitlab::Utils::Override
#extended, extensions, #included, #method_added, #override, #prepended, #queue_verification, verify!
Methods included from NotificationPipelineStatusSelection
Methods included from NotificationBranchSelection
Methods included from Base::Integration
#activate!, #activate_disabled_reason, #activated?, #after_build_from_integration, #api_field_names, #async_execute, #attributes, #attribution_notice, #category, #chat?, #ci?, #configurable_events, #deactivate!, #default_test_event, #description, #dup, #editable?, #event_channel_names, #event_names, #execute, #fields, #form_fields, #group_level?, #help, #inheritable?, #initialize_properties, #instance_level?, #json_fields, #manual_activation?, #operating?, #organization_id_from_parent, #parent, #project_level?, #reencrypt_properties, #reset_updated_properties, #secret_fields, #sections, #supported_events, #supports_data_fields?, #test, #testable?, #title, #to_database_hash, #to_param, #toggle!, #updated_properties, #validate_encrypted_properties_size_limit
Methods inherited from ApplicationRecord
===, cached_column_list, #create_or_load_association, current_transaction, declarative_enum, default_select_columns, delete_all_returning, #deleted_from_database?, id_in, id_not_in, iid_in, nullable_column?, primary_key_in, #readable_by?, safe_ensure_unique, safe_find_or_create_by, safe_find_or_create_by!, #to_ability_name, underscore, where_exists, where_not_exists, with_fast_read_statement_timeout, without_order
Methods included from Organizations::Sharding
Methods included from ResetOnColumnErrors
#reset_on_union_error, #reset_on_unknown_attribute_error
Methods included from Gitlab::SensitiveSerializableHash
Class Method Details
.description ⇒ Object
14 15 16 |
# File 'app/models/integrations/mattermost.rb', line 14 def self.description s_('Send notifications about project events to Mattermost channels.') end |
.help ⇒ Object
22 23 24 25 26 |
# File 'app/models/integrations/mattermost.rb', line 22 def self.help build_help_page_url( 'user/project/integrations/mattermost.md', s_("Send notifications about project events to Mattermost channels.") ) end |
.title ⇒ Object
10 11 12 |
# File 'app/models/integrations/mattermost.rb', line 10 def self.title _('Mattermost notifications') end |
.to_param ⇒ Object
18 19 20 |
# File 'app/models/integrations/mattermost.rb', line 18 def self.to_param 'mattermost' end |
.webhook_help ⇒ Object
32 33 34 |
# File 'app/models/integrations/mattermost.rb', line 32 def self.webhook_help 'http://mattermost.example.com/hooks/...' end |
Instance Method Details
#configurable_channels? ⇒ Boolean
37 38 39 |
# File 'app/models/integrations/mattermost.rb', line 37 def configurable_channels? true end |
#default_channel_placeholder ⇒ Object
28 29 30 |
# File 'app/models/integrations/mattermost.rb', line 28 def default_channel_placeholder 'my-channel' end |