Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions config-ui/src/plugins/register/opsgenie/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

import { ExternalLink } from '@/components';
import { DOC_URL } from '@/release';
import { IPluginConfig } from '@/types';

import Icon from './assets/icon.svg?react';
Expand All @@ -28,7 +29,7 @@ export const OpsgenieConfig: IPluginConfig = {
icon: ({ color }) => <Icon fill={color} />,
sort: 9,
connection: {
docLink: 'TODO',
docLink: DOC_URL.PLUGIN.OPSGENIE.BASIS,
initialValues: {
endpoint: 'https://api.opsgenie.com/',
},
Expand All @@ -44,14 +45,18 @@ export const OpsgenieConfig: IPluginConfig = {
{
key: 'token',
label: 'Opsgenie API Key',
subLabel: <ExternalLink link={'TODO'}>Learn how to create a Atlassian Opsgenie personal API Key</ExternalLink>,
subLabel: (
<ExternalLink link={DOC_URL.PLUGIN.OPSGENIE.AUTH_TOKEN}>
Learn how to create a Atlassian Opsgenie personal API Key
</ExternalLink>
),
},
'proxy',
{
key: 'rateLimitPerHour',
subLabel:
'By default, DevLake uses 6,000 requests/hour for data collection for Opsgenie. But you can adjust the collection speed by setting up your desirable rate limit.',
learnMore: 'TODO',
learnMore: DOC_URL.PLUGIN.OPSGENIE.RATE_LIMIT,
externalInfo: 'Opsgenie rate limit is based on number of users and domains.',
defaultValue: 6000,
},
Expand Down
5 changes: 5 additions & 0 deletions config-ui/src/release/stable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ const URLS = {
TRANSFORMATION:
'https://devlake.apache.org/docs/Configuration/Jira#step-3---adding-transformation-rules-optional',
},
OPSGENIE: {
BASIS: 'https://devlake.apache.org/docs/Configuration/Opsgenie',
AUTH_TOKEN: 'https://devlake.apache.org/docs/Configuration/Opsgenie#step-11---authentication',
RATE_LIMIT: 'https://devlake.apache.org/docs/Configuration/Opsgenie#fixed-rate-limit-optional',
},
PAGERDUTY: {
BASIS: 'https://devlake.apache.org/docs/Configuration/PagerDuty',
RATE_LIMIT: 'https://devlake.apache.org/docs/Configuration/PagerDuty/#custom-rate-limit-optional',
Expand Down
5 changes: 5 additions & 0 deletions config-ui/src/release/v0.21.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ const URLS = {
TRANSFORMATION:
'https://devlake.apache.org/docs/v0.21/Configuration/Jira#step-3---adding-transformation-rules-optional',
},
OPSGENIE: {
BASIS: 'https://devlake.apache.org/docs/v0.21/Configuration/Opsgenie',
AUTH_TOKEN: 'https://devlake.apache.org/docs/v0.21/Configuration/Opsgenie#step-11---authentication',
RATE_LIMIT: 'https://devlake.apache.org/docs/v0.21/Configuration/Opsgenie#fixed-rate-limit-optional',
},
PAGERDUTY: {
BASIS: 'https://devlake.apache.org/docs/v0.21/Configuration/PagerDuty',
RATE_LIMIT: 'https://devlake.apache.org/docs/v0.21/Configuration/PagerDuty/#custom-rate-limit-optional',
Expand Down