forked from opensearch-project/dashboards-observability
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from danieldong51/overviewCM
Added new cards
- Loading branch information
Showing
2 changed files
with
193 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { i18n } from '@osd/i18n'; | ||
|
||
// Plugin URLs | ||
const gettingStartedURL = 'observability-gettingStarted'; | ||
const discoverURL = 'data-explorer/discover'; | ||
const metricsURL = 'observability-metrics'; | ||
const tracesURL = 'observability-traces-nav#/traces'; | ||
const servicesURL = 'observability-services-nav#/services'; | ||
const alertsURL = 'alerting'; | ||
const anomalyDetectionURL = 'anomaly-detection-dashboards'; | ||
|
||
export interface GettingStartedConfig { | ||
id: string; | ||
order: number; | ||
title: string; | ||
description: string; | ||
footer: string; | ||
url: string; | ||
} | ||
|
||
export const GETTING_STARTED_CONFIG: GettingStartedConfig = { | ||
id: 'getting_started', | ||
order: 1, | ||
title: i18n.translate('observability.overview.card.gettingStarted.title', { | ||
defaultMessage: 'Add your data', | ||
}), | ||
description: 'Get started collecting and analyzing data.', | ||
footer: 'with Getting Started Guide', | ||
url: gettingStartedURL, | ||
}; | ||
|
||
const DISCOVER_CONFIG: GettingStartedConfig = { | ||
id: 'discover', | ||
order: 2, | ||
title: i18n.translate('observability.overview.card.discover.title', { | ||
defaultMessage: 'Discover insights', | ||
}), | ||
description: 'Uncover insights with raw data exploration.', | ||
footer: 'with Discover', | ||
url: discoverURL, | ||
}; | ||
|
||
const METRICS_CONFIG: GettingStartedConfig = { | ||
id: 'metrics', | ||
order: 3, | ||
title: i18n.translate('observability.overview.card.metrics.title', { | ||
defaultMessage: 'Metrics', | ||
}), | ||
description: 'Transform logs into actionable visualizations with metrics extraction.', | ||
footer: 'with Metrics', | ||
url: metricsURL, | ||
}; | ||
|
||
const TRACES_CONFIG: GettingStartedConfig = { | ||
id: 'traces', | ||
order: 4, | ||
title: i18n.translate('observability.overview.card.traces.title', { | ||
defaultMessage: 'Traces', | ||
}), | ||
description: 'Unveil performance bottlenecks with event flow visualization.', | ||
footer: 'with Traces', | ||
url: tracesURL, | ||
}; | ||
|
||
const SERVICES_CONFIG: GettingStartedConfig = { | ||
id: 'services', | ||
order: 5, | ||
title: i18n.translate('observability.overview.card.services.title', { | ||
defaultMessage: 'Services', | ||
}), | ||
description: 'Unveil performance bottlenecks with event flow visualization.', | ||
footer: 'with Services', | ||
url: servicesURL, | ||
}; | ||
|
||
const ALERTS_CONFIG: GettingStartedConfig = { | ||
id: 'alerts', | ||
order: 6, | ||
title: i18n.translate('observability.overview.card.alerts.title', { | ||
defaultMessage: 'Alerts', | ||
}), | ||
description: 'Unveil performance bottlenecks with event flow visualization.', | ||
footer: 'with Alerts', | ||
url: alertsURL, | ||
}; | ||
|
||
const ANOMALY_CONFIG: GettingStartedConfig = { | ||
id: 'anomaly', | ||
order: 7, | ||
title: i18n.translate('observability.overview.card.anomaly.title', { | ||
defaultMessage: 'Anomaly Detection', | ||
}), | ||
description: 'Unveil performance bottlenecks with event flow visualization.', | ||
footer: 'with Anomaly Detection', | ||
url: anomalyDetectionURL, | ||
}; | ||
|
||
export const cardConfigs = [ | ||
GETTING_STARTED_CONFIG, | ||
DISCOVER_CONFIG, | ||
METRICS_CONFIG, | ||
TRACES_CONFIG, | ||
SERVICES_CONFIG, | ||
ALERTS_CONFIG, | ||
ANOMALY_CONFIG, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters