This is an automated email from the ASF dual-hosted git repository.
klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 5a0b59c10 fix: missed plugin opsgenie doc (#7144)
5a0b59c10 is described below
commit 5a0b59c10bc96f82b63141256ca64256ab98ad76
Author: 青湛 <[email protected]>
AuthorDate: Fri Mar 8 21:09:27 2024 +1300
fix: missed plugin opsgenie doc (#7144)
---
config-ui/src/plugins/register/opsgenie/config.tsx | 11 ++++++++---
config-ui/src/release/stable.ts | 5 +++++
config-ui/src/release/v0.21.ts | 5 +++++
3 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/config-ui/src/plugins/register/opsgenie/config.tsx
b/config-ui/src/plugins/register/opsgenie/config.tsx
index 5796abe07..20ab9b2be 100644
--- a/config-ui/src/plugins/register/opsgenie/config.tsx
+++ b/config-ui/src/plugins/register/opsgenie/config.tsx
@@ -17,6 +17,7 @@
*/
import { ExternalLink } from '@/components';
+import { DOC_URL } from '@/release';
import { IPluginConfig } from '@/types';
import Icon from './assets/icon.svg?react';
@@ -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/',
},
@@ -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,
},
diff --git a/config-ui/src/release/stable.ts b/config-ui/src/release/stable.ts
index f31119b49..51f8c047f 100644
--- a/config-ui/src/release/stable.ts
+++ b/config-ui/src/release/stable.ts
@@ -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',
diff --git a/config-ui/src/release/v0.21.ts b/config-ui/src/release/v0.21.ts
index 3ccb110c5..2627afa3b 100644
--- a/config-ui/src/release/v0.21.ts
+++ b/config-ui/src/release/v0.21.ts
@@ -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',