id: 1 unit: export function CreateChannel() file: dashboards-notifications/public/pages/CreateChannel/CreateChannel.tsx start line: 72 end line: 544 size: 437 LOC McCabe index: 53 number of parameters: 1 id: 2 unit: export function configRoutes() file: dashboards-notifications/server/routes/configRoutes.ts start line: 14 end line: 227 size: 203 LOC McCabe index: 17 number of parameters: 1 id: 3 unit: export function eventRoutes() file: dashboards-notifications/server/routes/eventRoutes.ts start line: 14 end line: 154 size: 135 LOC McCabe index: 14 number of parameters: 1 id: 4 unit: export function CreateSESSender() file: dashboards-notifications/public/pages/Emails/CreateSESSender.tsx start line: 36 end line: 188 size: 129 LOC McCabe index: 12 number of parameters: 1 id: 5 unit: export function CreateRecipientGroup() file: dashboards-notifications/public/pages/Emails/CreateRecipientGroup.tsx start line: 35 end line: 191 size: 112 LOC McCabe index: 8 number of parameters: 1 id: 6 unit: export function NotificationsTable() file: dashboards-notifications/public/pages/Notifications/components/NotificationsTable/NotificationsTable.tsx start line: 42 end line: 154 size: 112 LOC McCabe index: 5 number of parameters: 1 id: 7 unit: export function NotificationsPlugin() file: dashboards-notifications/server/clusters/notificationsPlugin.ts start line: 8 end line: 109 size: 91 LOC McCabe index: 1 number of parameters: 3 id: 8 unit: export function CustomWebhookSettings() file: dashboards-notifications/public/pages/CreateChannel/components/CustomWebhookSettings.tsx start line: 53 end line: 203 size: 90 LOC McCabe index: 2 number of parameters: 1 id: 9 unit: render() file: dashboards-notifications/public/pages/Channels/Channels.tsx start line: 193 end line: 285 size: 88 LOC McCabe index: 1 number of parameters: 0 id: 10 unit: export function WebhookHeaders() file: dashboards-notifications/public/pages/CreateChannel/components/WebhookHeaders.tsx start line: 25 end line: 115 size: 87 LOC McCabe index: 9 number of parameters: 1 id: 11 unit: export function TableFlyout() file: dashboards-notifications/public/pages/Notifications/components/NotificationsTable/Flyout/TableFlyout.tsx start line: 33 end line: 116 size: 84 LOC McCabe index: 1 number of parameters: 1 id: 12 unit: export function ChannelActions() file: dashboards-notifications/public/pages/Channels/components/ChannelActions.tsx start line: 34 end line: 121 size: 69 LOC McCabe index: 7 number of parameters: 1 id: 13 unit: constructor() file: dashboards-notifications/public/pages/Emails/components/tables/RecipientGroupsTable.tsx start line: 52 end line: 122 size: 69 LOC McCabe index: 3 number of parameters: 1 id: 14 unit: constructor() file: dashboards-notifications/public/pages/Channels/Channels.tsx start line: 53 end line: 118 size: 63 LOC McCabe index: 5 number of parameters: 1 id: 15 unit: override fun doExecute() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/PluginBaseAction.kt start line: 50 end line: 108 size: 59 LOC McCabe index: 10 number of parameters: 3 id: 16 unit: constructor() file: dashboards-notifications/public/pages/Emails/components/tables/SendersTable.tsx start line: 51 end line: 108 size: 56 LOC McCabe index: 1 number of parameters: 1 id: 17 unit: topicArn: validateArn() file: dashboards-notifications/public/pages/CreateChannel/components/SNSSettings.tsx start line: 47 end line: 102 size: 55 LOC McCabe index: 3 number of parameters: 1 id: 18 unit: export function NotificationsHistogram() file: dashboards-notifications/public/pages/Notifications/components/NotificationsHistogram/NotificationsHistogram.tsx start line: 32 end line: 85 size: 53 LOC McCabe index: 1 number of parameters: 1 id: 19 unit: senderName: validateSenderName() file: dashboards-notifications/public/pages/Emails/CreateSender.tsx start line: 87 end line: 139 size: 50 LOC McCabe index: 3 number of parameters: 1 id: 20 unit: name: validateRecipientGroupName() file: dashboards-notifications/public/pages/Emails/components/forms/CreateRecipientGroupForm.tsx start line: 57 end line: 124 size: 50 LOC McCabe index: 1 number of parameters: 1 id: 21 unit: email: validateEmail() file: dashboards-notifications/public/pages/Emails/CreateSender.tsx start line: 88 end line: 139 size: 49 LOC McCabe index: 3 number of parameters: 1 id: 22 unit: host: validateHost() file: dashboards-notifications/public/pages/Emails/CreateSender.tsx start line: 89 end line: 139 size: 48 LOC McCabe index: 3 number of parameters: 1 id: 23 unit: port: validatePort() file: dashboards-notifications/public/pages/Emails/CreateSender.tsx start line: 90 end line: 139 size: 47 LOC McCabe index: 3 number of parameters: 1 id: 24 unit: export function CreateSender() file: dashboards-notifications/public/pages/Emails/CreateSender.tsx start line: 35 end line: 188 size: 46 LOC McCabe index: 5 number of parameters: 1 id: 25 unit: sesSender: validateEmailSender() file: dashboards-notifications/public/pages/CreateChannel/components/EmailSettings.tsx start line: 203 end line: 263 size: 46 LOC McCabe index: 1 number of parameters: 1 id: 26 unit: fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/send/SendMessageActionHelper.kt start line: 83 end line: 130 size: 46 LOC McCabe index: 4 number of parameters: 1 id: 27 unit: label: getOperatorString() file: dashboards-notifications/public/pages/Notifications/components/SearchBar/Filter/FilterEditPopover.tsx start line: 46 end line: 92 size: 45 LOC McCabe index: 2 number of parameters: 2 id: 28 unit: export function NotificationsSearchBar() file: dashboards-notifications/public/pages/Notifications/components/SearchBar/NotificationsSearchBar.tsx start line: 30 end line: 74 size: 44 LOC McCabe index: 1 number of parameters: 1 id: 29 unit: fun addSettingsUpdateConsumer() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/setting/PluginSettings.kt start line: 454 end line: 500 size: 44 LOC McCabe index: 1 number of parameters: 1 id: 30 unit: constructor() file: dashboards-notifications/public/pages/Emails/components/tables/SESSendersTable.tsx start line: 49 end line: 92 size: 42 LOC McCabe index: 1 number of parameters: 1 id: 31 unit: fun execute() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/client/DestinationSmtpClient.kt start line: 38 end line: 92 size: 42 LOC McCabe index: 4 number of parameters: 3 id: 32 unit: override fun getActions() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/NotificationPlugin.kt start line: 118 end line: 159 size: 42 LOC McCabe index: 1 number of parameters: 0 id: 33 unit: fun execute() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/client/DestinationSnsClient.kt start line: 44 end line: 84 size: 41 LOC McCabe index: 18 number of parameters: 3 id: 34 unit: fun prepareMimeMessage() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/client/EmailMimeProvider.kt start line: 30 end line: 97 size: 41 LOC McCabe index: 7 number of parameters: 4 id: 35 unit: senderName: validateSenderName() file: dashboards-notifications/public/pages/CreateChannel/components/modals/CreateSenderModal.tsx start line: 55 end line: 96 size: 39 LOC McCabe index: 2 number of parameters: 1 id: 36 unit: export function ChannelDetailItems() file: dashboards-notifications/public/pages/Channels/components/details/ChannelDetailItems.tsx start line: 19 end line: 57 size: 38 LOC McCabe index: 3 number of parameters: 1 id: 37 unit: function updateItem() file: dashboards-notifications/public/pages/Channels/components/ChannelControls.tsx start line: 62 end line: 101 size: 38 LOC McCabe index: 8 number of parameters: 4 id: 38 unit: email: validateEmail() file: dashboards-notifications/public/pages/CreateChannel/components/modals/CreateSenderModal.tsx start line: 56 end line: 96 size: 38 LOC McCabe index: 2 number of parameters: 1 id: 39 unit: host: validateHost() file: dashboards-notifications/public/pages/CreateChannel/components/modals/CreateSenderModal.tsx start line: 57 end line: 96 size: 37 LOC McCabe index: 2 number of parameters: 1 id: 40 unit: export function ChannelAvailabilityPanel() file: dashboards-notifications/public/pages/CreateChannel/components/ChannelAvailabilityPanel.tsx start line: 22 end line: 58 size: 36 LOC McCabe index: 1 number of parameters: 1 id: 41 unit: port: validatePort() file: dashboards-notifications/public/pages/CreateChannel/components/modals/CreateSenderModal.tsx start line: 58 end line: 96 size: 36 LOC McCabe index: 2 number of parameters: 1 id: 42 unit: constructor() file: dashboards-notifications/public/pages/Notifications/containers/Notifications.tsx start line: 63 end line: 101 size: 36 LOC McCabe index: 3 number of parameters: 1 id: 43 unit: name: validateRecipientGroupName() file: dashboards-notifications/public/pages/CreateChannel/components/modals/CreateRecipientGroupModal.tsx start line: 55 end line: 92 size: 35 LOC McCabe index: 2 number of parameters: 1 id: 44 unit: override fun sendMessage() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/transport/SesDestinationTransport.kt start line: 37 end line: 71 size: 35 LOC McCabe index: 5 number of parameters: 3 id: 45 unit: override fun sendMessage() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/transport/SmtpDestinationTransport.kt start line: 37 end line: 71 size: 35 LOC McCabe index: 5 number of parameters: 3 id: 46 unit: emailOptions: validateRecipientGroupEmails() file: dashboards-notifications/public/pages/CreateChannel/components/modals/CreateRecipientGroupModal.tsx start line: 56 end line: 92 size: 34 LOC McCabe index: 2 number of parameters: 1 id: 47 unit: export function CreateRecipientGroupForm() file: dashboards-notifications/public/pages/Emails/components/forms/CreateRecipientGroupForm.tsx start line: 37 end line: 138 size: 33 LOC McCabe index: 1 number of parameters: 1 id: 48 unit: webhookURL: validateWebhookURL() file: dashboards-notifications/public/pages/CreateChannel/components/CustomWebhookSettings.tsx start line: 78 end line: 111 size: 33 LOC McCabe index: 1 number of parameters: 1 id: 49 unit: from: isNaN() file: dashboards-notifications/public/pages/Notifications/utils/helpers.ts start line: 48 end line: 82 size: 33 LOC McCabe index: 11 number of parameters: 2 id: 50 unit: fun update() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/ConfigIndexingActions.kt start line: 229 end line: 262 size: 32 LOC McCabe index: 4 number of parameters: 2 id: 51 unit: export function SNSSettings() file: dashboards-notifications/public/pages/CreateChannel/components/SNSSettings.tsx start line: 27 end line: 113 size: 31 LOC McCabe index: 1 number of parameters: 1 id: 52 unit: email: validateEmail() file: dashboards-notifications/public/pages/Emails/components/forms/CreateSESSenderForm.tsx start line: 79 end line: 109 size: 30 LOC McCabe index: 3 number of parameters: 1 id: 53 unit: size: isNaN() file: dashboards-notifications/public/pages/Notifications/utils/helpers.ts start line: 52 end line: 82 size: 30 LOC McCabe index: 10 number of parameters: 2 id: 54 unit: override fun getAllNotificationConfigs() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationConfigIndex.kt start line: 191 end line: 219 size: 29 LOC McCabe index: 2 number of parameters: 2 id: 55 unit: override fun getAllNotificationEvents() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationEventIndex.kt start line: 191 end line: 219 size: 29 LOC McCabe index: 2 number of parameters: 2 id: 56 unit: fun parse() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/model/NotificationConfigDoc.kt start line: 36 end line: 63 size: 27 LOC McCabe index: 2 number of parameters: 1 id: 57 unit: fun parse() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/model/NotificationEventDoc.kt start line: 36 end line: 63 size: 27 LOC McCabe index: 2 number of parameters: 1 id: 58 unit: export function ChimeSettings() file: dashboards-notifications/public/pages/CreateChannel/components/ChimeSettings.tsx start line: 16 end line: 42 size: 26 LOC McCabe index: 1 number of parameters: 1 id: 59 unit: export function SlackSettings() file: dashboards-notifications/public/pages/CreateChannel/components/SlackSettings.tsx start line: 16 end line: 42 size: 26 LOC McCabe index: 1 number of parameters: 1 id: 60 unit: fun parse() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/model/DocMetadata.kt start line: 36 end line: 61 size: 26 LOC McCabe index: 2 number of parameters: 1 id: 61 unit: async componentDidMount() file: dashboards-notifications/public/pages/Main/Main.tsx start line: 60 end line: 86 size: 25 LOC McCabe index: 2 number of parameters: 0 id: 62 unit: override fun sendMessage() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/transport/WebhookDestinationTransport.kt start line: 35 end line: 58 size: 24 LOC McCabe index: 3 number of parameters: 3 id: 63 unit: fun parse() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/model/SendTestNotificationRequest.kt start line: 45 end line: 69 size: 24 LOC McCabe index: 2 number of parameters: 1 id: 64 unit: async componentDidMount() file: dashboards-notifications/public/pages/Notifications/containers/Notifications.tsx start line: 103 end line: 125 size: 23 LOC McCabe index: 3 number of parameters: 0 id: 65 unit: override fun createComponents() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/NotificationPlugin.kt start line: 91 end line: 113 size: 23 LOC McCabe index: 1 number of parameters: 11 id: 66 unit: customURLHost: validateCustomURLHost() file: dashboards-notifications/public/pages/CreateChannel/components/CustomWebhookSettings.tsx start line: 113 end line: 134 size: 22 LOC McCabe index: 1 number of parameters: 1 id: 67 unit: senderName: validateSenderName() file: dashboards-notifications/public/pages/Emails/components/forms/CreateSenderForm.tsx start line: 71 end line: 92 size: 21 LOC McCabe index: 1 number of parameters: 1 id: 68 unit: senderName: validateSenderName() file: dashboards-notifications/public/pages/Emails/components/forms/CreateSESSenderForm.tsx start line: 56 end line: 77 size: 21 LOC McCabe index: 1 number of parameters: 1 id: 69 unit: fun create() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/ConfigIndexingActions.kt start line: 201 end line: 221 size: 21 LOC McCabe index: 1 number of parameters: 2 id: 70 unit: fun getFeatureChannelList() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/ConfigIndexingActions.kt start line: 368 end line: 388 size: 21 LOC McCabe index: 1 number of parameters: 2 id: 71 unit: items: configListToChannels() file: dashboards-notifications/public/services/NotificationService.ts start line: 82 end line: 104 size: 20 LOC McCabe index: 3 number of parameters: 1 id: 72 unit: email: validateEmail() file: dashboards-notifications/public/pages/Emails/components/forms/CreateSenderForm.tsx start line: 94 end line: 113 size: 20 LOC McCabe index: 1 number of parameters: 1 id: 73 unit: host: validateHost() file: dashboards-notifications/public/pages/Emails/components/forms/CreateSenderForm.tsx start line: 115 end line: 134 size: 20 LOC McCabe index: 1 number of parameters: 1 id: 74 unit: async refresh() file: dashboards-notifications/public/pages/Emails/components/tables/RecipientGroupsTable.tsx start line: 150 end line: 169 size: 20 LOC McCabe index: 2 number of parameters: 0 id: 75 unit: export function HistogramControls() file: dashboards-notifications/public/pages/Notifications/components/NotificationsHistogram/HistogramControls.tsx start line: 15 end line: 35 size: 20 LOC McCabe index: 1 number of parameters: 1 id: 76 unit: fun execute() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/client/DestinationSesClient.kt start line: 52 end line: 75 size: 20 LOC McCabe index: 2 number of parameters: 3 id: 77 unit: override fun deleteNotificationConfigs() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationConfigIndex.kt start line: 257 end line: 276 size: 20 LOC McCabe index: 2 number of parameters: 1 id: 78 unit: override fun deleteNotificationEvents() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationEventIndex.kt start line: 258 end line: 277 size: 20 LOC McCabe index: 2 number of parameters: 1 id: 79 unit: name: validateRecipientGroupName() file: dashboards-notifications/public/pages/Emails/CreateRecipientGroup.tsx start line: 57 end line: 77 size: 19 LOC McCabe index: 4 number of parameters: 1 id: 80 unit: override fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationFeatureChannelListRestHandler.kt start line: 65 end line: 83 size: 19 LOC McCabe index: 1 number of parameters: 2 id: 81 unit: override fun getRestHandlers() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/NotificationPlugin.kt start line: 164 end line: 182 size: 19 LOC McCabe index: 1 number of parameters: 7 id: 82 unit: static getQueryObjectFromState() file: dashboards-notifications/public/pages/Channels/Channels.tsx start line: 137 end line: 154 size: 18 LOC McCabe index: 4 number of parameters: 1 id: 83 unit: emailOptions: validateRecipientGroupEmails() file: dashboards-notifications/public/pages/Emails/CreateRecipientGroup.tsx start line: 58 end line: 77 size: 18 LOC McCabe index: 4 number of parameters: 1 id: 84 unit: public setup() file: dashboards-notifications/server/plugin.ts start line: 29 end line: 51 size: 18 LOC McCabe index: 1 number of parameters: 1 id: 85 unit: override fun createComponents() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/NotificationCorePlugin.kt start line: 55 end line: 72 size: 18 LOC McCabe index: 1 number of parameters: 11 id: 86 unit: fun addQueryFilters() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/EventQueryHelper.kt start line: 97 end line: 114 size: 18 LOC McCabe index: 2 number of parameters: 2 id: 87 unit: items: eventListToNotifications() file: dashboards-notifications/public/services/EventService.ts start line: 36 end line: 54 size: 17 LOC McCabe index: 2 number of parameters: 1 id: 88 unit: action: async() file: dashboards-notifications/public/pages/Channels/components/ChannelActions.tsx start line: 60 end line: 76 size: 17 LOC McCabe index: 2 number of parameters: 0 id: 89 unit: fun addSettingsUpdateConsumer() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/settings/PluginSettings.kt start line: 221 end line: 240 size: 17 LOC McCabe index: 1 number of parameters: 1 id: 90 unit: override fun createNotificationConfig() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationConfigIndex.kt start line: 125 end line: 141 size: 17 LOC McCabe index: 3 number of parameters: 2 id: 91 unit: override fun createNotificationEvent() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationEventIndex.kt start line: 125 end line: 141 size: 17 LOC McCabe index: 3 number of parameters: 2 id: 92 unit: override fun doExecute() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/SendTestNotificationAction.kt start line: 48 end line: 73 size: 17 LOC McCabe index: 1 number of parameters: 3 id: 93 unit: static getQueryObjectFromState() file: dashboards-notifications/public/pages/Notifications/containers/Notifications.tsx start line: 152 end line: 167 size: 16 LOC McCabe index: 1 number of parameters: 1 id: 94 unit: fun getAllSettings() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/setting/PluginSettings.kt start line: 358 end line: 373 size: 16 LOC McCabe index: 1 number of parameters: 0 id: 95 unit: override fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationFeaturesRestHandler.kt start line: 64 end line: 79 size: 16 LOC McCabe index: 1 number of parameters: 2 id: 96 unit: async refresh() file: dashboards-notifications/public/pages/Channels/Channels.tsx start line: 156 end line: 170 size: 15 LOC McCabe index: 2 number of parameters: 0 id: 97 unit: async refresh() file: dashboards-notifications/public/pages/Emails/components/tables/SESSendersTable.tsx start line: 120 end line: 134 size: 15 LOC McCabe index: 2 number of parameters: 0 id: 98 unit: function updateItem() file: dashboards-notifications/public/pages/Emails/components/tables/SendersTableControls.tsx start line: 39 end line: 55 size: 15 LOC McCabe index: 3 number of parameters: 2 id: 99 unit: async refresh() file: dashboards-notifications/public/pages/Emails/components/tables/SendersTable.tsx start line: 140 end line: 154 size: 15 LOC McCabe index: 2 number of parameters: 0 id: 100 unit: sesSender: validateEmailSender() file: dashboards-notifications/public/pages/CreateChannel/components/EmailSettings.tsx start line: 178 end line: 192 size: 15 LOC McCabe index: 1 number of parameters: 1 id: 101 unit: smtpSender: validateEmailSender() file: dashboards-notifications/public/pages/CreateChannel/components/EmailSettings.tsx start line: 240 end line: 254 size: 15 LOC McCabe index: 1 number of parameters: 1 id: 102 unit: recipients: validateRecipients() file: dashboards-notifications/public/pages/CreateChannel/components/EmailSettings.tsx start line: 316 end line: 330 size: 15 LOC McCabe index: 1 number of parameters: 1 id: 103 unit: fun execute() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/client/DestinationHttpClient.kt start line: 92 end line: 107 size: 15 LOC McCabe index: 2 number of parameters: 3 id: 104 unit: fun buildRequestBody() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/client/DestinationHttpClient.kt start line: 154 end line: 172 size: 15 LOC McCabe index: 1 number of parameters: 2 id: 105 unit: override fun sendMessage() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/transport/SnsDestinationTransport.kt start line: 35 end line: 49 size: 15 LOC McCabe index: 2 number of parameters: 3 id: 106 unit: override fun parse() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationConfigIndex.kt start line: 60 end line: 74 size: 15 LOC McCabe index: 1 number of parameters: 1 id: 107 unit: override fun parse() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationEventIndex.kt start line: 60 end line: 74 size: 15 LOC McCabe index: 1 number of parameters: 1 id: 108 unit: static getQueryObjectFromState() file: dashboards-notifications/public/pages/Emails/components/tables/SendersTable.tsx start line: 125 end line: 138 size: 14 LOC McCabe index: 2 number of parameters: 1 id: 109 unit: fun isValidEmail() file: notifications/core-spi/src/main/kotlin/org/opensearch/notifications/spi/utils/ValidationHelpers.kt start line: 49 end line: 62 size: 14 LOC McCabe index: 1 number of parameters: 1 id: 110 unit: fun isValidEmail() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt start line: 55 end line: 68 size: 14 LOC McCabe index: 1 number of parameters: 1 id: 111 unit: fun addQueryFilters() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/ConfigQueryHelper.kt start line: 126 end line: 139 size: 14 LOC McCabe index: 1 number of parameters: 2 id: 112 unit: override fun updateNotificationEvent() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationEventIndex.kt start line: 224 end line: 237 size: 14 LOC McCabe index: 2 number of parameters: 2 id: 113 unit: public setup() file: dashboards-notifications/public/plugin.ts start line: 25 end line: 48 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 114 unit: items: configListToSenders() file: dashboards-notifications/public/services/NotificationService.ts start line: 167 end line: 181 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 115 unit: items: configListToSESSenders() file: dashboards-notifications/public/services/NotificationService.ts start line: 182 end line: 196 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 116 unit: name: validateChannelName() file: dashboards-notifications/public/pages/CreateChannel/CreateChannel.tsx start line: 233 end line: 245 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 117 unit: fun isHostInDenylist() file: notifications/core-spi/src/main/kotlin/org/opensearch/notifications/spi/utils/ValidationHelpers.kt start line: 30 end line: 43 size: 13 LOC McCabe index: 4 number of parameters: 2 id: 118 unit: fun isMessageSizeOverLimit() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/client/EmailMessageValidator.kt start line: 17 end line: 31 size: 13 LOC McCabe index: 3 number of parameters: 1 id: 119 unit: fun isHostInDenylist() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt start line: 36 end line: 49 size: 13 LOC McCabe index: 4 number of parameters: 2 id: 120 unit: fun getSortField() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/ConfigQueryHelper.kt start line: 112 end line: 124 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 121 unit: override fun updateNotificationConfig() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationConfigIndex.kt start line: 224 end line: 236 size: 13 LOC McCabe index: 2 number of parameters: 2 id: 122 unit: override fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/GetPluginFeaturesAction.kt start line: 56 end line: 68 size: 13 LOC McCabe index: 1 number of parameters: 2 id: 123 unit: static serializeSearchParams() file: dashboards-notifications/public/pages/Notifications/containers/Notifications.tsx start line: 138 end line: 150 size: 12 LOC McCabe index: 1 number of parameters: 1 id: 124 unit: override fun sendMessage() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/NotificationCoreImpl.kt start line: 30 end line: 41 size: 12 LOC McCabe index: 1 number of parameters: 3 id: 125 unit: fun reset() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/setting/PluginSettings.kt start line: 537 end line: 548 size: 12 LOC McCabe index: 1 number of parameters: 0 id: 126 unit: override fun buildResponse() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/RestResponseToXContentListener.kt start line: 24 end line: 37 size: 12 LOC McCabe index: 1 number of parameters: 2 id: 127 unit: fun getSortField() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/EventQueryHelper.kt start line: 84 end line: 95 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 128 unit: override fun deleteNotificationConfig() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationConfigIndex.kt start line: 241 end line: 252 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 129 unit: override fun deleteNotificationEvent() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationEventIndex.kt start line: 242 end line: 253 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 130 unit: fun getSecureDestinationSetting() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/client/DestinationSmtpClient.kt start line: 94 end line: 104 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 131 unit: override fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationConfigRestHandler.kt start line: 155 end line: 166 size: 11 LOC McCabe index: 1 number of parameters: 2 id: 132 unit: items: configListToRecipientGroups() file: dashboards-notifications/public/services/NotificationService.ts start line: 197 end line: 208 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 133 unit: async componentDidUpdate() file: dashboards-notifications/public/pages/Emails/components/tables/SESSendersTable.tsx start line: 98 end line: 107 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 134 unit: static getQueryObjectFromState() file: dashboards-notifications/public/pages/Emails/components/tables/SESSendersTable.tsx start line: 109 end line: 118 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 135 unit: async componentDidUpdate() file: dashboards-notifications/public/pages/Emails/components/tables/SendersTable.tsx start line: 114 end line: 123 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 136 unit: async componentDidUpdate() file: dashboards-notifications/public/pages/Emails/components/tables/RecipientGroupsTable.tsx start line: 128 end line: 137 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 137 unit: static getQueryObjectFromState() file: dashboards-notifications/public/pages/Emails/components/tables/RecipientGroupsTable.tsx start line: 139 end line: 148 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 138 unit: async componentDidUpdate() file: dashboards-notifications/public/pages/Notifications/containers/Notifications.tsx start line: 127 end line: 136 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 139 unit: fun loadDestinationSettings() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/setting/PluginSettings.kt start line: 502 end line: 517 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 140 unit: override fun createSnsClient() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/credentials/oss/SnsClientFactoryImpl.kt start line: 17 end line: 26 size: 10 LOC McCabe index: 1 number of parameters: 2 id: 141 unit: override fun createSesClient() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/credentials/oss/SesClientFactoryImpl.kt start line: 16 end line: 25 size: 10 LOC McCabe index: 1 number of parameters: 2 id: 142 unit: override fun responseParams() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationEventRestHandler.kt start line: 99 end line: 108 size: 10 LOC McCabe index: 1 number of parameters: 0 id: 143 unit: override fun routes() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationConfigRestHandler.kt start line: 61 end line: 136 size: 10 LOC McCabe index: 1 number of parameters: 0 id: 144 unit: override fun responseParams() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationConfigRestHandler.kt start line: 141 end line: 150 size: 10 LOC McCabe index: 1 number of parameters: 0 id: 145 unit: override fun prepareRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationStatsRestHandler.kt start line: 59 end line: 69 size: 10 LOC McCabe index: 1 number of parameters: 2 id: 146 unit: override fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/GetFeatureChannelListAction.kt start line: 58 end line: 67 size: 10 LOC McCabe index: 1 number of parameters: 2 id: 147 unit: override fun getPluginFeatures() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/NotificationCoreImpl.kt start line: 68 end line: 76 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 148 unit: fun get() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/ConfigIndexingActions.kt start line: 270 end line: 278 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 149 unit: fun get() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/EventIndexingActions.kt start line: 40 end line: 48 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 150 unit: override fun doExecute() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/GetFeatureChannelListAction.kt start line: 45 end line: 53 size: 9 LOC McCabe index: 1 number of parameters: 3 id: 151 unit: override fun doExecute() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/DeleteNotificationConfigAction.kt start line: 43 end line: 51 size: 9 LOC McCabe index: 1 number of parameters: 3 id: 152 unit: override fun doExecute() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/GetPluginFeaturesAction.kt start line: 43 end line: 51 size: 9 LOC McCabe index: 1 number of parameters: 3 id: 153 unit: override fun doExecute() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/PublishNotificationAction.kt start line: 47 end line: 55 size: 9 LOC McCabe index: 1 number of parameters: 3 id: 154 unit: override fun doExecute() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/UpdateNotificationConfigAction.kt start line: 43 end line: 51 size: 9 LOC McCabe index: 1 number of parameters: 3 id: 155 unit: override fun doExecute() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/SendNotificationAction.kt start line: 43 end line: 51 size: 9 LOC McCabe index: 1 number of parameters: 3 id: 156 unit: override fun doExecute() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/CreateNotificationConfigAction.kt start line: 43 end line: 51 size: 9 LOC McCabe index: 1 number of parameters: 3 id: 157 unit: override fun doExecute() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/GetNotificationConfigAction.kt start line: 43 end line: 51 size: 9 LOC McCabe index: 1 number of parameters: 3 id: 158 unit: override fun doExecute() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/GetNotificationEventAction.kt start line: 43 end line: 51 size: 9 LOC McCabe index: 1 number of parameters: 3 id: 159 unit: async componentDidMount() file: dashboards-notifications/public/pages/Channels/Channels.tsx start line: 120 end line: 127 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 160 unit: emailOptions: validateRecipientGroupEmails() file: dashboards-notifications/public/pages/Emails/components/forms/CreateRecipientGroupForm.tsx start line: 116 end line: 123 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 161 unit: constructor() file: dashboards-notifications/public/pages/Main/Main.tsx start line: 51 end line: 58 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 162 unit: recipients: validateRecipients() file: dashboards-notifications/public/pages/CreateChannel/components/EmailSettings.tsx start line: 306 end line: 313 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 163 unit: fun doPrivileged() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/SecurityAccess.kt start line: 22 end line: 29 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 164 unit: override fun validateUser() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/security/UserAccessManager.kt start line: 20 end line: 27 size: 8 LOC McCabe index: 3 number of parameters: 1 id: 165 unit: override fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationEventRestHandler.kt start line: 113 end line: 120 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 166 unit: override fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/SendTestMessageRestHandler.kt start line: 65 end line: 72 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 167 unit: fun delete() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/ConfigIndexingActions.kt start line: 476 end line: 483 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 168 unit: override fun getNotificationConfigs() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationConfigIndex.kt start line: 146 end line: 153 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 169 unit: override fun getNotificationEvents() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationEventIndex.kt start line: 146 end line: 153 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 170 unit: fun generateEventSource() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/send/SendTestNotificationActionHelper.kt start line: 24 end line: 31 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 171 unit: fun executeLegacyRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/send/SendMessageActionHelper.kt start line: 136 end line: 143 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 172 unit: function isItemSelected() file: dashboards-notifications/public/pages/Channels/components/ChannelControls.tsx start line: 103 end line: 109 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 173 unit: async componentDidUpdate() file: dashboards-notifications/public/pages/Channels/Channels.tsx start line: 129 end line: 135 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 174 unit: function isItemSelected() file: dashboards-notifications/public/pages/Emails/components/tables/SendersTableControls.tsx start line: 57 end line: 63 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 175 unit: fun validateMethod() file: notifications/core-spi/src/main/kotlin/org/opensearch/notifications/spi/utils/ValidationHelpers.kt start line: 64 end line: 70 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 176 unit: override fun getAllowedConfigTypes() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/NotificationCoreImpl.kt start line: 46 end line: 52 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 177 unit: override fun getAllowedConfigFeatures() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/NotificationCoreImpl.kt start line: 57 end line: 63 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 178 unit: override fun getCredentialsProvider() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/credentials/oss/CredentialsProviderFactory.kt start line: 18 end line: 24 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 179 unit: fun validateMethod() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt start line: 70 end line: 76 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 180 unit: fun isRbacEnabled() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/settings/PluginSettings.kt start line: 163 end line: 169 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 181 unit: fun getAllSettings() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/settings/PluginSettings.kt start line: 176 end line: 182 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 182 unit: override fun getNotificationConfig() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationConfigIndex.kt start line: 158 end line: 164 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 183 unit: override fun getNotificationEvent() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationEventIndex.kt start line: 158 end line: 164 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 184 unit: fun generateMessage() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/send/SendTestNotificationActionHelper.kt start line: 16 end line: 22 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 185 unit: override fun toXContent() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/model/SendTestNotificationRequest.kt start line: 107 end line: 113 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 186 unit: override fun validate() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/model/SendTestNotificationRequest.kt start line: 118 end line: 124 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 187 unit: override fun toXContent() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/model/DocMetadata.kt start line: 67 end line: 73 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 188 unit: override fun toXContent() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/model/NotificationConfigDoc.kt start line: 78 end line: 84 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 189 unit: override fun toXContent() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/model/NotificationEventDoc.kt start line: 78 end line: 84 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 190 unit: override fun execute() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 61 end line: 67 size: 7 LOC McCabe index: 1 number of parameters: 3 id: 191 unit: fun collectToJSON() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/metrics/Metrics.kt start line: 253 end line: 259 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 192 unit: senderName: validateSenderName() file: dashboards-notifications/public/pages/Emails/CreateSESSender.tsx start line: 87 end line: 92 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 193 unit: senderName: validateSenderName() file: dashboards-notifications/public/pages/CreateChannel/components/modals/CreateSESSenderModal.tsx start line: 54 end line: 59 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 194 unit: override fun getPasswordAuthentication() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/client/DestinationSmtpClient.kt start line: 71 end line: 76 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 195 unit: override fun loadExtensions() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/NotificationCorePlugin.kt start line: 78 end line: 83 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 196 unit: override fun getAllAccessInfo() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/security/UserAccessManager.kt start line: 32 end line: 37 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 197 unit: override fun getSearchAccessInfo() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/security/UserAccessManager.kt start line: 42 end line: 47 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 198 unit: override fun doesUserHasAccess() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/security/UserAccessManager.kt start line: 52 end line: 57 size: 6 LOC McCabe index: 3 number of parameters: 2 id: 199 unit: override fun routes() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationEventRestHandler.kt start line: 54 end line: 94 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 200 unit: override fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/DeleteNotificationConfigAction.kt start line: 56 end line: 61 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 201 unit: override fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/PublishNotificationAction.kt start line: 60 end line: 65 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 202 unit: override fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/UpdateNotificationConfigAction.kt start line: 56 end line: 61 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 203 unit: override fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/SendNotificationAction.kt start line: 56 end line: 61 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 204 unit: override fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/CreateNotificationConfigAction.kt start line: 56 end line: 61 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 205 unit: override fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/GetNotificationConfigAction.kt start line: 56 end line: 61 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 206 unit: override fun executeRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/GetNotificationEventAction.kt start line: 56 end line: 61 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 207 unit: override fun execute() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 51 end line: 56 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 208 unit: override fun multiTermVectors() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 219 end line: 224 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 209 unit: async mount() file: dashboards-notifications/public/plugin.ts start line: 36 end line: 43 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 210 unit: export function getErrorMessage() file: dashboards-notifications/public/utils/helpers.ts start line: 9 end line: 13 size: 5 LOC McCabe index: 4 number of parameters: 2 id: 211 unit: description: renderTime() file: dashboards-notifications/public/pages/Channels/components/details/ChannelDetails.tsx start line: 126 end line: 131 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 212 unit: email: validateEmail() file: dashboards-notifications/public/pages/Emails/CreateSESSender.tsx start line: 88 end line: 92 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 213 unit: email: validateEmail() file: dashboards-notifications/public/pages/CreateChannel/components/modals/CreateSESSenderModal.tsx start line: 55 end line: 59 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 214 unit: fun validateUrlHost() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt start line: 20 end line: 24 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 215 unit: override fun routes() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationFeatureChannelListRestHandler.kt start line: 43 end line: 53 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 216 unit: override fun prepareRequest() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/PluginBaseHandler.kt start line: 20 end line: 24 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 217 unit: override fun routes() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationFeaturesRestHandler.kt start line: 42 end line: 52 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 218 unit: override fun routes() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationStatsRestHandler.kt start line: 38 end line: 47 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 219 unit: override fun routes() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/SendTestMessageRestHandler.kt start line: 43 end line: 53 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 220 unit: fun reset() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/settings/PluginSettings.kt start line: 244 end line: 248 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 221 unit: fun initialize() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/send/SendMessageActionHelper.kt start line: 73 end line: 77 size: 5 LOC McCabe index: 1 number of parameters: 3 id: 222 unit: override fun writeTo() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/model/SendTestNotificationRequest.kt start line: 98 end line: 102 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 223 unit: awsRegion: validateAwsRegion() file: dashboards-notifications/public/pages/Emails/CreateSESSender.tsx start line: 89 end line: 92 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 224 unit: awsRegion: validateAwsRegion() file: dashboards-notifications/public/pages/CreateChannel/components/modals/CreateSESSenderModal.tsx start line: 56 end line: 59 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 225 unit: public start() file: dashboards-notifications/server/plugin.ts start line: 53 end line: 56 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 226 unit: export function defineRoutes() file: dashboards-notifications/server/routes/index.ts start line: 10 end line: 13 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 227 unit: fun validateUrl() file: notifications/core-spi/src/main/kotlin/org/opensearch/notifications/spi/utils/ValidationHelpers.kt start line: 15 end line: 18 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 228 unit: fun validateEmail() file: notifications/core-spi/src/main/kotlin/org/opensearch/notifications/spi/utils/ValidationHelpers.kt start line: 20 end line: 23 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 229 unit: fun isValidUrl() file: notifications/core-spi/src/main/kotlin/org/opensearch/notifications/spi/utils/ValidationHelpers.kt start line: 25 end line: 28 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 230 unit: fun getResponseString() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/client/DestinationHttpClient.kt start line: 141 end line: 144 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 231 unit: fun validateUrl() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt start line: 15 end line: 18 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 232 unit: fun validateEmail() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt start line: 26 end line: 29 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 233 unit: fun isValidUrl() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt start line: 31 end line: 34 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 234 unit: fun getTransport() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/transport/DestinationTransportProvider.kt start line: 40 end line: 43 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 235 unit: override fun getSettings() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/NotificationCorePlugin.kt start line: 47 end line: 50 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 236 unit: fun initialize() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/ConfigIndexingActions.kt start line: 54 end line: 57 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 237 unit: fun initialize() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/EventIndexingActions.kt start line: 29 end line: 32 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 238 unit: fun initialize() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationConfigIndex.kt start line: 80 end line: 83 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 239 unit: fun initialize() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/index/NotificationEventIndex.kt start line: 80 end line: 83 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 240 unit: override fun getSettings() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/NotificationPlugin.kt start line: 83 end line: 86 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 241 unit: override fun setNotificationCore() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/NotificationPlugin.kt start line: 184 end line: 187 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 242 unit: override fun onResponse() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/SendTestNotificationAction.kt start line: 62 end line: 65 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 243 unit: override fun onFailure() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/action/SendTestNotificationAction.kt start line: 67 end line: 70 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 244 unit: override fun add() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/metrics/RollingCounter.kt start line: 32 end line: 35 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 245 unit: export function plugin() file: dashboards-notifications/public/index.ts start line: 12 end line: 14 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 246 unit: public start() file: dashboards-notifications/public/plugin.ts start line: 50 end line: 52 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 247 unit: constructor() file: dashboards-notifications/public/services/NotificationService.ts start line: 37 end line: 39 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 248 unit: constructor() file: dashboards-notifications/public/services/EventService.ts start line: 19 end line: 21 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 249 unit: async componentDidMount() file: dashboards-notifications/public/pages/Emails/components/tables/SESSendersTable.tsx start line: 94 end line: 96 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 250 unit: async componentDidMount() file: dashboards-notifications/public/pages/Emails/components/tables/SendersTable.tsx start line: 110 end line: 112 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 251 unit: async componentDidMount() file: dashboards-notifications/public/pages/Emails/components/tables/RecipientGroupsTable.tsx start line: 124 end line: 126 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 252 unit: export function plugin() file: dashboards-notifications/server/index.ts start line: 7 end line: 9 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 253 unit: constructor() file: dashboards-notifications/server/plugin.ts start line: 25 end line: 27 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 254 unit: fun buildMessageWithTitle() file: notifications/core-spi/src/main/kotlin/org/opensearch/notifications/spi/model/MessageContent.kt start line: 29 end line: 31 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 255 unit: override fun toString() file: notifications/core-spi/src/main/kotlin/org/opensearch/notifications/spi/model/destination/WebhookDestination.kt start line: 22 end line: 24 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 256 unit: fun sendMessage() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/client/DestinationSnsClient.kt start line: 120 end line: 122 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 257 unit: fun sendMessage() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/client/DestinationSmtpClient.kt start line: 128 end line: 130 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 258 unit: fun logger() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/Helpers.kt start line: 13 end line: 15 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 259 unit: override fun reload() file: notifications/core/src/main/kotlin/org/opensearch/notifications/core/NotificationCorePlugin.kt start line: 74 end line: 76 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 260 unit: override fun doesUserHasSendAccess() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/security/UserAccessManager.kt start line: 62 end line: 64 size: 3 LOC McCabe index: 2 number of parameters: 2 id: 261 unit: fun initialize() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/CoreProvider.kt start line: 13 end line: 15 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 262 unit: override fun getName() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationFeatureChannelListRestHandler.kt start line: 36 end line: 38 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 263 unit: override fun responseParams() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationFeatureChannelListRestHandler.kt start line: 58 end line: 60 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 264 unit: override fun getName() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationEventRestHandler.kt start line: 47 end line: 49 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 265 unit: override fun getName() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationConfigRestHandler.kt start line: 54 end line: 56 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 266 unit: override fun getName() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationFeaturesRestHandler.kt start line: 35 end line: 37 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 267 unit: override fun responseParams() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationFeaturesRestHandler.kt start line: 57 end line: 59 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 268 unit: override fun getName() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationStatsRestHandler.kt start line: 31 end line: 33 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 269 unit: override fun responseParams() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/NotificationStatsRestHandler.kt start line: 52 end line: 54 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 270 unit: override fun getStatus() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/RestResponseToXContentListener.kt start line: 41 end line: 43 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 271 unit: override fun getName() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/SendTestMessageRestHandler.kt start line: 36 end line: 38 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 272 unit: override fun responseParams() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/resthandler/SendTestMessageRestHandler.kt start line: 58 end line: 60 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 273 unit: override fun index() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 72 end line: 74 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 274 unit: override fun index() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 79 end line: 81 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 275 unit: override fun update() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 86 end line: 88 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 276 unit: override fun update() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 93 end line: 95 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 277 unit: override fun delete() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 100 end line: 102 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 278 unit: override fun delete() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 107 end line: 109 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 279 unit: override fun bulk() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 114 end line: 116 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 280 unit: override fun bulk() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 121 end line: 123 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 281 unit: override fun get() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 128 end line: 130 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 282 unit: override fun get() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 135 end line: 137 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 283 unit: override fun multiGet() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 142 end line: 144 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 284 unit: override fun multiGet() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 149 end line: 151 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 285 unit: override fun search() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 156 end line: 158 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 286 unit: override fun search() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 163 end line: 165 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 287 unit: override fun searchScroll() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 170 end line: 172 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 288 unit: override fun searchScroll() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 177 end line: 179 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 289 unit: override fun multiSearch() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 184 end line: 186 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 290 unit: override fun multiSearch() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 191 end line: 193 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 291 unit: override fun termVectors() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 198 end line: 200 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 292 unit: override fun termVectors() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 205 end line: 207 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 293 unit: override fun multiTermVectors() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 212 end line: 214 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 294 unit: override fun explain() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 229 end line: 231 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 295 unit: override fun explain() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 236 end line: 238 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 296 unit: override fun clearScroll() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 243 end line: 245 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 297 unit: override fun clearScroll() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 250 end line: 252 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 298 unit: override fun fieldCaps() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 257 end line: 259 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 299 unit: override fun fieldCaps() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/util/SecureIndexClient.kt start line: 264 end line: 266 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 300 unit: override fun increment() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/metrics/RollingCounter.kt start line: 25 end line: 27 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 301 unit: override fun getValue() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/metrics/RollingCounter.kt start line: 40 end line: 42 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 302 unit: fun getValue() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/metrics/RollingCounter.kt start line: 47 end line: 49 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 303 unit: fun size() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/metrics/RollingCounter.kt start line: 68 end line: 70 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 304 unit: fun collectToFlattenedJSON() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/metrics/Metrics.kt start line: 274 end line: 276 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 305 unit: override fun increment() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/metrics/BasicCounter.kt start line: 19 end line: 21 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 306 unit: override fun add() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/metrics/BasicCounter.kt start line: 26 end line: 28 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 307 unit: override fun getValue() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/metrics/BasicCounter.kt start line: 33 end line: 35 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 308 unit: override fun reset() file: notifications/notifications/src/main/kotlin/org/opensearch/notifications/metrics/BasicCounter.kt start line: 38 end line: 40 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 309 unit: public stop() file: dashboards-notifications/public/plugin.ts start line: 54 end line: 54 size: 1 LOC McCabe index: 1 number of parameters: 0 id: 310 unit: vizColors: euiPaletteColorBlind() file: dashboards-notifications/public/pages/Notifications/components/NotificationsHistogram/NotificationsHistogram.tsx start line: 64 end line: 64 size: 1 LOC McCabe index: 1 number of parameters: 1 id: 311 unit: public stop() file: dashboards-notifications/server/plugin.ts start line: 58 end line: 58 size: 1 LOC McCabe index: 1 number of parameters: 0