Skip to content

Commit 6630a07

Browse files
committed
Add detailview for license rule
1 parent 5a6d252 commit 6630a07

File tree

4 files changed

+41
-1
lines changed

4 files changed

+41
-1
lines changed

USAGE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ Configure and retrieve health rules and their violates.
298298
| Command | Description | Example |
299299
| ------- | ----------- | ------- |
300300
| create | Create a license rule. Provide a json string or a @file (-d) as parameter. | `act.sh licenserule create -d examples/licenserule.json` |
301+
| detailview | Get detail view for a license rule Provide a license id (-l) as parameter. | `act.sh licenserule detailview -l ff0fb8ff-d2ef-446d-83bd-8f8e5b8c0d20` |
301302
| list | List all license rules. This command requires no further arguments | `act.sh licenserule list ` |
302303

303304

act.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
ACT_VERSION="v0.5.0"
3-
ACT_LAST_COMMIT="8706c0b89707ebdc36628a80aeedcd32d3336c0b"
3+
ACT_LAST_COMMIT="5a6d252f76898b17bc683271831c6e1ff8d4bc83"
44
USER_CONFIG="$HOME/.appdynamics/act/config.sh"
55
GLOBAL_CONFIG="/etc/appdynamics/act/config.sh"
66
CONFIG_CONTROLLER_COOKIE_LOCATION="/tmp/appdynamics-controller-cookie.txt"
@@ -232,6 +232,8 @@ doc licenserule << EOF
232232
EOF
233233
licenserule_create() { apiCall -X POST '/controller/mds/v1/license/rules' "$@" ; }
234234
rde licenserule_create "Create a license rule." "Provide a json string or a @file (-d) as parameter." "-d examples/licenserule.json"
235+
licenserule_detailview() { apiCall -X POST -d '{"type":"BEFORE_NOW","durationInMinutes":60}' '/controller/restui/licenseRule/getApmLicenseRuleDetailViewData/{{l:licenserule}}' "$@" ; }
236+
rde licenserule_detailview "Get detail view for a license rule" "Provide a license id (-l) as parameter." "-l ff0fb8ff-d2ef-446d-83bd-8f8e5b8c0d20"
235237
licenserule_list() { apiCall '/controller/mds/v1/license/rules' "$@" ; }
236238
rde licenserule_list "List all license rules." "This command requires no further arguments" ""
237239
doc logsources << EOF

commands.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,13 @@ licenserule:
409409
example: -d examples/licenserule.json
410410
method: POST
411411
endpoint: /controller/mds/v1/license/rules
412+
detailview:
413+
title: Get detail view for a license rule
414+
description: Provide a license id (-l) as parameter.
415+
example: -l ff0fb8ff-d2ef-446d-83bd-8f8e5b8c0d20
416+
method: POST
417+
endpoint: /controller/restui/licenseRule/getApmLicenseRuleDetailViewData/{{l:licenserule}}
418+
payload: {\"type\":\"BEFORE_NOW\",\"durationInMinutes\":60}
412419
logsources:
413420
title: Log Analytics Configuration
414421
descripion: API to manage log analytics sources

postman-collection.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1618,6 +1618,36 @@
16181618
},
16191619
"description": "Provide a json string or a @file (-d) as parameter."
16201620
}
1621+
},{
1622+
"name": "Get detail view for a license rule",
1623+
"request": {
1624+
"method": "POST",
1625+
"header": [
1626+
{
1627+
"key": "Content-Type",
1628+
"value": "application/json;charset=UTF-8",
1629+
"type": "text"
1630+
},
1631+
{
1632+
"key": "X-CSRF-TOKEN",
1633+
"value": "{{X-CSRF-TOKEN}}",
1634+
"type": "text"
1635+
}
1636+
],
1637+
"body": {
1638+
"mode": "raw",
1639+
"raw": "{\"type\":\"BEFORE_NOW\",\"durationInMinutes\":60}"
1640+
},
1641+
"url": {
1642+
"raw": "{{controller_host}}/controller/restui/licenseRule/getApmLicenseRuleDetailViewData/{{l:licenserule}}",
1643+
"host": [
1644+
"{{controller_host}}"
1645+
],
1646+
"path": ["controller","restui","licenseRule","getApmLicenseRuleDetailViewData","{{licenserule}}"],
1647+
"query": []
1648+
},
1649+
"description": "Provide a license id (-l) as parameter."
1650+
}
16211651
},{
16221652
"name": "List all license rules.",
16231653
"request": {

0 commit comments

Comments
 (0)