154 | { generateSimpleStringInputSetting(
155 | "Team Name:",
156 | "team",
157 | handleTeamNameInput,
158 | (
{"Team you want to send messages to. Use the team name such as \'my-team\', instead of the display name."})
159 | )
160 | }
161 |
162 | { generateSimpleStringInputSetting(
163 | "Channel Name:",
164 | "channel",
165 | handleChannelNameInput,
166 | (
{"Channel you want to send messages to. Use the channel name such as 'town-square', instead of the display name. If you specify a channel that does not exist, this plugin creates a new channel with that name."})
167 | )
168 | }
169 |
170 | { generateGeneratedFieldSetting(
171 | "Token:",
172 | "token",
173 | regenerateToken,
174 | "Regenerate",
175 | (
{"The token used to configure the webhook for AlertManager. The token is validates for each webhook request by the Mattermost server."})
176 | )
177 | }
178 |
179 | { generateSimpleStringInputSetting(
180 | "AlertManager URL:",
181 | "alertmanagerurl",
182 | handleURLInput,
183 | (
{"The URL of your AlertManager instance, e.g. \'"}{"http://alertmanager.example.com/"}{"\'"})
184 | )
185 | }
186 |