You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
context.docs=awaitgetRepoData({repo: 'docs',owner: 'rundeck'},fromVersion,toVersion,[],useHead);// No label filtering for docs (need all PRs for contributors)
context.docs=awaitgetRepoData({repo: 'docs',owner: 'rundeck'},fromVersion,toVersion,[],useHead);// No label filtering for docs (need all PRs for contributors)
Copy file name to clipboardExpand all lines: docs/api/index.md
+65-4Lines changed: 65 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3911,10 +3911,16 @@ To narrow down the result set over which the metrics will be calculated, you can
3911
3911
3912
3912
Paging parameters `max` and `offset` will have no effect on the result.
3913
3913
3914
-
**Response**
3914
+
**Additional Parameters (API v57+):**
3915
+
3916
+
* `useStats` (boolean): If `true`, use snapshot-based metrics from SCHEDULED_EXECUTION_STATS table. If `false` or not provided, use execution table query. When `useStats=true`, the `jobIdListFilter` parameter is required unless `groupByJob=true`.
3917
+
* `groupByJob` (boolean): If `true` with `useStats=true`, returns metrics for all jobs in a single project (batch mode). The metrics query must be scoped to one project, either by using the project-specific endpoint (`/api/29/project/[PROJECT]/executions/metrics`) or by including a `project` query parameter when calling the global endpoint (`/api/29/executions/metrics`). Returns format: `{jobs: {uuid1: metrics, uuid2: metrics, ...}}`.
3918
+
* `begin` (string): When using `useStats=true`, filter metrics to include only executions that completed on or after this date. Format: `yyyy-MM-ddTHH:mm:ssZ` (ISO8601).
3919
+
* `end` (string): When using `useStats=true`, filter metrics to include only executions that completed on or before this date. Format: `yyyy-MM-ddTHH:mm:ssZ` (ISO8601).
3915
3920
3921
+
**Response**
3916
3922
3917
-
An object with `duration` entry containing duration stats, and a `total` entry with total executions.
3923
+
When `groupByJob` is not used, the response is an object with `duration` entry containing duration stats, and a `total` entry with total executions:
3918
3924
3919
3925
``` json
3920
3926
{
@@ -3927,6 +3933,33 @@ An object with `duration` entry containing duration stats, and a `total` entry w
3927
3933
}
3928
3934
```
3929
3935
3936
+
When `groupByJob=true` with `useStats=true` (API v57+), the response format is:
3937
+
3938
+
``` json
3939
+
{
3940
+
"jobs": {
3941
+
"uuid1": {
3942
+
"total": 100,
3943
+
"succeeded": 95,
3944
+
"failed": 5,
3945
+
"duration": {
3946
+
"average": "5s"
3947
+
},
3948
+
...
3949
+
},
3950
+
"uuid2": {
3951
+
"total": 50,
3952
+
"succeeded": 48,
3953
+
"failed": 2,
3954
+
"duration": {
3955
+
"average": "3s"
3956
+
},
3957
+
...
3958
+
}
3959
+
}
3960
+
}
3961
+
```
3962
+
3930
3963
3931
3964
### Execution State
3932
3965
@@ -6319,7 +6352,26 @@ Same response as [Setup SCM Plugin for a Project](#setup-scm-plugin-for-a-projec
6319
6352
"service": "NodeExecutor",
6320
6353
"title": "Kubernetes / Pods / Node Executor",
6321
6354
"iconUrl": "...",
6322
-
"providerMetadata": { }
6355
+
"providerMetadata": {
6356
+
"groupBy": "Kubernetes",
6357
+
"groupIconUrl": "/path/to/kubernetes-icon.svg"
6358
+
}
6359
+
},
6360
+
{
6361
+
"artifactName": "aws-vm-plugin",
6362
+
"author": "Rundeck",
6363
+
"builtin": false,
6364
+
"description": "AWS VM management plugin",
6365
+
"id": "abc123def456",
6366
+
"name": "AwsVmStartPlugin",
6367
+
"pluginVersion": "2.0.0",
6368
+
"service": "WorkflowStep",
6369
+
"title": "AWS VM Start",
6370
+
"iconUrl": "...",
6371
+
"providerMetadata": {
6372
+
"groupBy": "AWS VM",
6373
+
"groupIconUrl": "/path/to/aws-icon.svg"
6374
+
}
6323
6375
},
6324
6376
{
6325
6377
"artifactName": "py-winrm-plugin",
@@ -6340,6 +6392,8 @@ Same response as [Setup SCM Plugin for a Project](#setup-scm-plugin-for-a-projec
6340
6392
6341
6393
*`iconUrl` - URL to icon file for the plugin if present. **since V40**
6342
6394
*`providerMetadata` - Map of metadata about the plugin if present. **since V40**
6395
+
*`groupBy` - The group name for the plugin, used for UI grouping. Plugins with the same `groupBy` value will be grouped together in the UI. **since V57**
6396
+
*`groupIconUrl` - The icon URL for the plugin group. This may be explicitly defined for the group or automatically determined from the first plugin in the group. **since V57**
6343
6397
6344
6398
### Get Plugin Detail
6345
6399
@@ -6361,7 +6415,10 @@ Since: v49
6361
6415
"targetHostCompatibility": "all",
6362
6416
"ver": null,
6363
6417
"id": "d36b17dfae7b",
6364
-
"providerMetadata": {},
6418
+
"providerMetadata": {
6419
+
"groupBy": "MyGroup",
6420
+
"groupIconUrl": "/path/to/group-icon.svg"
6421
+
},
6365
6422
"dynamicProps": null,
6366
6423
"thirdPartyDependencies": null,
6367
6424
"name": "<provider-name>",
@@ -6395,6 +6452,10 @@ Since: v49
6395
6452
}
6396
6453
```
6397
6454
6455
+
The `providerMetadata` object may contain:
6456
+
*`groupBy` - The group name for the plugin, used for UI grouping. **since V57**
6457
+
*`groupIconUrl` - The icon URL for the plugin group. **since V57**
Copy file name to clipboardExpand all lines: docs/api/rundeck-api-versions.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,20 @@ Changes introduced by API Version number:
35
35
API versions below `{{$apiDepVersion}}` are *deprecated*. Clients using earlier versions should upgrade to use `{{$apiDepVersion}}` as the minimum version before release `{{ $apiDepRelease }}` to avoid errors.
36
36
:::
37
37
38
+
### Version 57
39
+
40
+
* Updated Endpoints:
41
+
*[`GET /api/V/plugin/list`][GET /api/V/plugin/list] - Plugin list response `providerMetadata` now includes `groupBy` and `groupIconUrl` fields for plugin UI grouping
42
+
*[`GET /api/V/plugin/detail/[SERVICE]/[PROVIDER]`][GET /api/V/plugin/detail/\[SERVICE\]/\[PROVIDER\]] - Plugin detail response `providerMetadata` now includes `groupBy` and `groupIconUrl` fields for plugin UI grouping
* Added `useStats` parameter: if `true`, use snapshot-based metrics from `SCHEDULED_EXECUTION_STATS` table. If `false` or not provided, use execution table query.
45
+
* Added `groupByJob` parameter: if `true` with `useStats=true`, returns metrics for all jobs in the project (batch mode). Requires `project` parameter.
46
+
* Added `begin` and `end` parameters for date range filtering when using `useStats=true`.
* Added `useStats` parameter: if `true`, use snapshot-based metrics from `SCHEDULED_EXECUTION_STATS` table. If `false` or not provided, use execution table query.
49
+
* Added `groupByJob` parameter: if `true` with `useStats=true`, returns metrics for all jobs in the project (batch mode).
50
+
* Added `begin` and `end` parameters for date range filtering when using `useStats=true`.
0 commit comments