Skip to content

Commit

Permalink
Add synthetic serverless doc links (#182740)
Browse files Browse the repository at this point in the history
## Summary

Adds Synthetic Serverless doc links (and one missing logs link).

Closes elastic/obs-docs-team#219.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: DeDe Morton <dede.morton@elastic.co>
  • Loading branch information
3 people committed May 8, 2024
1 parent 75f3290 commit e7a9291
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions packages/kbn-doc-links/src/get_doc_links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,21 +578,33 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D
? `${SERVERLESS_OBSERVABILITY_DOCS}create-custom-threshold-alert-rule`
: `${OBSERVABILITY_DOCS}custom-threshold-alert.html`,
monitorStatus: `${OBSERVABILITY_DOCS}monitor-status-alert.html`,
monitorUptime: `${OBSERVABILITY_DOCS}monitor-uptime.html`,
monitorUptime: isServerless
? `${SERVERLESS_OBSERVABILITY_DOCS}monitor-synthetics`
: `${OBSERVABILITY_DOCS}monitor-uptime.html`,
tlsCertificate: `${OBSERVABILITY_DOCS}tls-certificate-alert.html`,
uptimeDurationAnomaly: `${OBSERVABILITY_DOCS}duration-anomaly-alert.html`,
monitorLogs: `${OBSERVABILITY_DOCS}monitor-logs.html`,
monitorLogs: isServerless
? `${SERVERLESS_OBSERVABILITY_DOCS}discover-and-explore-logs`
: `${OBSERVABILITY_DOCS}monitor-logs.html`,
analyzeMetrics: isServerless
? `${SERVERLESS_OBSERVABILITY_DOCS}infrastructure-monitoring`
: `${OBSERVABILITY_DOCS}analyze-metrics.html`,
monitorUptimeSynthetics: `${OBSERVABILITY_DOCS}monitor-uptime-synthetics.html`,
monitorUptimeSynthetics: isServerless
? `${SERVERLESS_OBSERVABILITY_DOCS}monitor-synthetics`
: `${OBSERVABILITY_DOCS}monitor-uptime-synthetics.html`,
userExperience: `${OBSERVABILITY_DOCS}user-experience.html`,
createAlerts: isServerless
? `${SERVERLESS_OBSERVABILITY_DOCS}alerting`
: `${OBSERVABILITY_DOCS}create-alerts.html`,
syntheticsAlerting: `${OBSERVABILITY_DOCS}synthetics-settings.html#synthetics-settings-alerting`,
syntheticsCommandReference: `${OBSERVABILITY_DOCS}synthetics-configuration.html#synthetics-configuration-playwright-options`,
syntheticsProjectMonitors: `${OBSERVABILITY_DOCS}synthetic-run-tests.html#synthetic-monitor-choose-project`,
syntheticsAlerting: isServerless
? `${SERVERLESS_OBSERVABILITY_DOCS}synthetics-settings#alerting`
: `${OBSERVABILITY_DOCS}synthetics-settings.html#synthetics-settings-alerting`,
syntheticsCommandReference: isServerless
? `${SERVERLESS_OBSERVABILITY_DOCS}synthetics-configuration#playwrightoptions`
: `${OBSERVABILITY_DOCS}synthetics-configuration.html#synthetics-configuration-playwright-options`,
syntheticsProjectMonitors: isServerless
? `${SERVERLESS_OBSERVABILITY_DOCS}synthetics-get-started-project`
: `${OBSERVABILITY_DOCS}synthetic-run-tests.html#synthetic-monitor-choose-project`,
syntheticsMigrateFromIntegration: `${OBSERVABILITY_DOCS}synthetics-migrate-from-integration.html`,
sloBurnRateRule: isServerless
? `${SERVERLESS_OBSERVABILITY_DOCS}create-slo-burn-rate-alert-rule`
Expand Down Expand Up @@ -940,7 +952,9 @@ export const getDocLinks = ({ kibanaBranch, buildFlavor }: GetDocLinkOptions): D
apiKeyPrivileges: `${SERVERLESS_DOCS}api-keys#restrict-privileges`,
},
synthetics: {
featureRoles: `${OBSERVABILITY_DOCS}synthetics-feature-roles.html`,
featureRoles: isServerless
? `${SERVERLESS_OBSERVABILITY_DOCS}synthetics-feature-roles`
: `${OBSERVABILITY_DOCS}synthetics-feature-roles.html`,
},
telemetry: {
settings: `${KIBANA_DOCS}telemetry-settings-kbn.html`,
Expand Down

0 comments on commit e7a9291

Please sign in to comment.