Add hostname to API Reference

This patch set adds hostname attribute to Audit and
ActionPlan resources in API Reference.

Change-Id: I187d44dc401d3d1770452022b8610570d459cc98
This commit is contained in:
Alexander Chadin 2018-08-13 16:44:15 +03:00
parent 7247d2f95b
commit cc2962af4a
11 changed files with 37 additions and 8 deletions

View File

@ -170,6 +170,12 @@ actionplan_global_efficacy:
in: body in: body
required: false required: false
type: array type: array
actionplan_hostname:
description: |
Hostname the actionplan is running on
in: body
required: false
type: string
actionplan_state: actionplan_state:
description: | description: |
State of this action plan. To get more information about states and State of this action plan. To get more information about states and
@ -191,6 +197,12 @@ audit_goal:
in: body in: body
required: false required: false
type: string type: string
audit_hostname:
description: |
Hostname the audit is running on
in: body
required: false
type: string
audit_interval: audit_interval:
description: | description: |
Time interval between audit's execution. Time interval between audit's execution.

View File

@ -20,7 +20,8 @@
"deleted_at": null, "deleted_at": null,
"uuid": "4cbc4ede-0d25-481b-b86e-998dbbd4f8bf", "uuid": "4cbc4ede-0d25-481b-b86e-998dbbd4f8bf",
"audit_uuid": "7d100b05-0a86-491f-98a7-f93da19b272a", "audit_uuid": "7d100b05-0a86-491f-98a7-f93da19b272a",
"created_at": "2018-04-10T11:59:52.640067+00:00" "created_at": "2018-04-10T11:59:52.640067+00:00",
"hostname": "controller"
} }
] ]
} }

View File

@ -16,5 +16,6 @@
"updated_at": "2018-04-10T11:59:52.640067+00:00", "updated_at": "2018-04-10T11:59:52.640067+00:00",
"strategy_name": "dummy_with_resize", "strategy_name": "dummy_with_resize",
"uuid": "4cbc4ede-0d25-481b-b86e-998dbbd4f8bf", "uuid": "4cbc4ede-0d25-481b-b86e-998dbbd4f8bf",
"audit_uuid": "7d100b05-0a86-491f-98a7-f93da19b272a" "audit_uuid": "7d100b05-0a86-491f-98a7-f93da19b272a",
"hostname": "controller"
} }

View File

@ -18,5 +18,6 @@
"uuid": "4cbc4ede-0d25-481b-b86e-998dbbd4f8bf", "uuid": "4cbc4ede-0d25-481b-b86e-998dbbd4f8bf",
"audit_uuid": "7d100b05-0a86-491f-98a7-f93da19b272a", "audit_uuid": "7d100b05-0a86-491f-98a7-f93da19b272a",
"created_at": "2018-04-10T11:59:12.592729+00:00", "created_at": "2018-04-10T11:59:12.592729+00:00",
"deleted_at": null "deleted_at": null,
"hostname": null
} }

View File

@ -47,5 +47,6 @@
], ],
"strategy_name": "workload_stabilization", "strategy_name": "workload_stabilization",
"next_run_time": "2018-04-06T11:56:00", "next_run_time": "2018-04-06T11:56:00",
"updated_at": "2018-04-06T11:54:01.266447+00:00" "updated_at": "2018-04-06T11:54:01.266447+00:00",
"hostname": "controller"
} }

View File

@ -47,5 +47,6 @@
], ],
"strategy_name": "workload_stabilization", "strategy_name": "workload_stabilization",
"next_run_time": null, "next_run_time": null,
"updated_at": null "updated_at": null,
"hostname": null
} }

View File

@ -49,7 +49,8 @@
], ],
"strategy_name": "workload_stabilization", "strategy_name": "workload_stabilization",
"next_run_time": "2018-04-06T09:46:00", "next_run_time": "2018-04-06T09:46:00",
"updated_at": "2018-04-06T09:44:01.604146+00:00" "updated_at": "2018-04-06T09:44:01.604146+00:00",
"hostname": "controller"
} }
] ]
} }

View File

@ -47,5 +47,6 @@
], ],
"strategy_name": "workload_stabilization", "strategy_name": "workload_stabilization",
"next_run_time": "2018-04-06T11:56:00", "next_run_time": "2018-04-06T11:56:00",
"updated_at": "2018-04-06T11:54:01.266447+00:00" "updated_at": "2018-04-06T11:54:01.266447+00:00",
"hostname": "controller"
} }

View File

@ -47,5 +47,6 @@
], ],
"strategy_name": "workload_stabilization", "strategy_name": "workload_stabilization",
"next_run_time": "2018-04-06T11:56:00", "next_run_time": "2018-04-06T11:56:00",
"updated_at": "2018-04-06T11:54:01.266447+00:00" "updated_at": "2018-04-06T11:54:01.266447+00:00",
"hostname": "controller"
} }

View File

@ -50,6 +50,7 @@ version 1:
- efficacy_indicators: actionplan_efficacy_indicators - efficacy_indicators: actionplan_efficacy_indicators
- global_efficacy: actionplan_global_efficacy - global_efficacy: actionplan_global_efficacy
- links: links - links: links
- hostname: actionplan_hostname
**Example JSON representation of an Action Plan:** **Example JSON representation of an Action Plan:**
@ -137,6 +138,7 @@ Response
- efficacy_indicators: actionplan_efficacy_indicators - efficacy_indicators: actionplan_efficacy_indicators
- global_efficacy: actionplan_global_efficacy - global_efficacy: actionplan_global_efficacy
- links: links - links: links
- hostname: actionplan_hostname
**Example JSON representation of an Action Plan:** **Example JSON representation of an Action Plan:**
@ -174,6 +176,7 @@ Response
- efficacy_indicators: actionplan_efficacy_indicators - efficacy_indicators: actionplan_efficacy_indicators
- global_efficacy: actionplan_global_efficacy - global_efficacy: actionplan_global_efficacy
- links: links - links: links
- hostname: actionplan_hostname
**Example JSON representation of an Audit:** **Example JSON representation of an Audit:**
@ -229,6 +232,7 @@ version 1:
- efficacy_indicators: actionplan_efficacy_indicators - efficacy_indicators: actionplan_efficacy_indicators
- global_efficacy: actionplan_global_efficacy - global_efficacy: actionplan_global_efficacy
- links: links - links: links
- hostname: actionplan_hostname
**Example JSON representation of an Action Plan:** **Example JSON representation of an Action Plan:**

View File

@ -83,6 +83,7 @@ version 1:
- state: audit_state - state: audit_state
- scope: audittemplate_scope - scope: audittemplate_scope
- links: links - links: links
- hostname: audit_hostname
**Example JSON representation of an Audit:** **Example JSON representation of an Audit:**
@ -178,6 +179,7 @@ Response
- state: audit_state - state: audit_state
- scope: audittemplate_scope - scope: audittemplate_scope
- links: links - links: links
- hostname: audit_hostname
**Example JSON representation of an Audit:** **Example JSON representation of an Audit:**
@ -221,6 +223,7 @@ Response
- state: audit_state - state: audit_state
- scope: audittemplate_scope - scope: audittemplate_scope
- links: links - links: links
- hostname: audit_hostname
**Example JSON representation of an Audit:** **Example JSON representation of an Audit:**
@ -272,6 +275,7 @@ version 1:
- state: audit_state - state: audit_state
- scope: audittemplate_scope - scope: audittemplate_scope
- links: links - links: links
- hostname: audit_hostname
**Example JSON representation of an Audit:** **Example JSON representation of an Audit:**
@ -323,6 +327,7 @@ Response
- state: audit_state - state: audit_state
- scope: audittemplate_scope - scope: audittemplate_scope
- links: links - links: links
- hostname: audit_hostname
**Example JSON representation of an Audit:** **Example JSON representation of an Audit:**