Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@philips-software/backstage-plugin-upptime-backend
Advanced tools
Welcome to the upptime-backend backend plugin!
This plugin needs to be added to an existing backstage instance.
# From your Backstage root directory
yarn add --cwd packages/backend @backstage/plugin-upptime-backend
Typically, this means creating a src/plugins/upptime.ts
file and adding a
reference to it to src/index.ts
in the backend package.
import { createRouter } from '@internal/plugin-upptime-backend';
import { Router } from 'express';
import { PluginEnvironment } from '../types';
import { CatalogClient } from '@backstage/catalog-client';
export default async function createPlugin(
env: PluginEnvironment,
): Promise<Router> {
const catalogClient = new CatalogClient({
discoveryApi: env.discovery,
});
return await createRouter({
logger: env.logger,
catalog: catalogClient,
config: env.config,
reader: env.reader,
});
}
diff --git a/packages/backend/src/index.ts b/packages/backend/src/index.ts
index 1942c36ad1..7fdc48ba24 100644
--- a/packages/backend/src/index.ts
+++ b/packages/backend/src/index.ts
@@ -50,6 +50,7 @@ import scaffolder from './plugins/scaffolder';
import proxy from './plugins/proxy';
import search from './plugins/search';
import techdocs from './plugins/techdocs';
+import upptime from './plugins/upptime';
import techInsights from './plugins/techInsights';
import todo from './plugins/todo';
import graphql from './plugins/graphql';
@@ -133,6 +134,7 @@ async function main() {
createEnv('tech-insights'),
);
const permissionEnv = useHotMemoize(module, () => createEnv('permission'));
+ const upptimeEnv = useHotMemoize(module, () => createEnv('upptime'));
const apiRouter = Router();
apiRouter.use('/catalog', await catalog(catalogEnv));
@@ -152,6 +154,7 @@ async function main() {
apiRouter.use('/badges', await badges(badgesEnv));
apiRouter.use('/jenkins', await jenkins(jenkinsEnv));
apiRouter.use('/permission', await permission(permissionEnv));
+ apiRouter.use('/upptime', await upptime(upptimeEnv));
apiRouter.use(notFoundHandler());
const service = createServiceBuilder(module)
This plugin allows configuration of either a single or multiple global Upptime repository instances and annotating entities with the instance name. This instance name in the entities is optional, if not provided the default instance in configuration will be used. That allow to keep configuration from before multiple instances capability to keep working without changes.
Config
upptime:
locations:
default:
url: https://github.com/upptime/upptime/
Catalog file
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: backstage
annotations:
upptime.js.org/key: YOUR_PROJECT_KEY
The following will look for status at https://github.com/your-otg/status/
for
the project of key specialProject
.
Config
upptime:
instances:
default:
url: https://github.com/upptime/upptime/
specialProject:
url: https://github.com/your-otg/status
Catalog file
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: backstage
annotations:
upptime.js.org/key: specialProject/YOUR_PROJECT_KEY
If the specialProject/
part is omitted (or replaced with default/
), the
instance of name default
will be used.
FAQs
Unknown package
We found that @philips-software/backstage-plugin-upptime-backend demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.