@red-hat-developer-hub/backstage-plugin-scorecard-backend 2.3.1 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/config.d.ts +45 -0
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @red-hat-developer-hub/backstage-plugin-scorecard-backend
|
|
2
2
|
|
|
3
|
+
## 2.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1f0b3b7: Include the missing config.d.ts files under the files section defined within the package.json
|
|
8
|
+
- @red-hat-developer-hub/backstage-plugin-scorecard-common@2.3.2
|
|
9
|
+
- @red-hat-developer-hub/backstage-plugin-scorecard-node@2.3.2
|
|
10
|
+
|
|
3
11
|
## 2.3.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/config.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Red Hat, Inc.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { SchedulerServiceTaskScheduleDefinitionConfig } from '@backstage/backend-plugin-api';
|
|
18
|
+
|
|
19
|
+
export interface Config {
|
|
20
|
+
/** Configuration for scorecard plugin */
|
|
21
|
+
scorecard?: {
|
|
22
|
+
/** Number of days to retain metric data in the database. Older data will be automatically cleaned up. Default: 365 days */
|
|
23
|
+
dataRetentionDays?: number;
|
|
24
|
+
/** Configuration for scorecard metric providers */
|
|
25
|
+
plugins?: {
|
|
26
|
+
/** Configuration for datasource */
|
|
27
|
+
[datasource: string]: {
|
|
28
|
+
/** Configuration for metric providers within the datasource.
|
|
29
|
+
* Each key corresponds to the metric name part of the provider ID (datasource.metricName).
|
|
30
|
+
*/
|
|
31
|
+
[metricName: string]: {
|
|
32
|
+
/** Threshold configuration for the metric */
|
|
33
|
+
thresholds?: {
|
|
34
|
+
rules?: Array<{
|
|
35
|
+
key: 'error' | 'warning' | 'success';
|
|
36
|
+
/** Threshold expression - supports: >=, <=, >, <, ==, !=, - (range) */
|
|
37
|
+
expression: string;
|
|
38
|
+
}>;
|
|
39
|
+
};
|
|
40
|
+
schedule?: SchedulerServiceTaskScheduleDefinitionConfig;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@red-hat-developer-hub/backstage-plugin-scorecard-backend",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@backstage/plugin-catalog-node": "^1.20.0",
|
|
48
48
|
"@backstage/plugin-permission-common": "^0.9.3",
|
|
49
49
|
"@backstage/plugin-permission-node": "^0.10.6",
|
|
50
|
-
"@red-hat-developer-hub/backstage-plugin-scorecard-common": "^2.3.
|
|
51
|
-
"@red-hat-developer-hub/backstage-plugin-scorecard-node": "^2.3.
|
|
50
|
+
"@red-hat-developer-hub/backstage-plugin-scorecard-common": "^2.3.2",
|
|
51
|
+
"@red-hat-developer-hub/backstage-plugin-scorecard-node": "^2.3.2",
|
|
52
52
|
"express": "^4.17.1",
|
|
53
53
|
"express-promise-router": "^4.1.0",
|
|
54
54
|
"knex": "^3.1.0",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"supertest": "^6.2.4"
|
|
64
64
|
},
|
|
65
65
|
"files": [
|
|
66
|
+
"config.d.ts",
|
|
66
67
|
"dist",
|
|
67
68
|
"migrations"
|
|
68
69
|
],
|