Skip to content

Commit

Permalink
fix: missed plugin opsgenie doc (#7144)
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsweet authored Mar 8, 2024
1 parent 7ec5811 commit 5a0b59c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
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

0 comments on commit 5a0b59c

Please sign in to comment.