The predefined queries in the product

Wazi Deploy comes with predefined queries and renderers that you can use to quickly generate reports in an HTML or a YAML format.

Note: Before you run the queries, make sure that you have indexed the generated evidence files with the wazideploy-evidence command. For more information, see The Wazi Deploy evidence command.
For example, enter the following command:
wazideploy-evidence -df evidences -if indexes i

wd-full-report-query

Synopsis

Use this query to generate a detailed report of each deployment present in the Wazi Deploy evidence database. You can use its associated wd-full-report-renderer.html renderer to generate an HTML report.

Examples
  • wazideploy-evidence -q wd-full-report-query -if indexes -o wd-full-report.html r renderer_name=wd-full-report-renderer.html environment_name="*"
    This command generates an HTML report in wd-full-report.html in the current folder.
  • wazideploy-evidence -q wd-full-report-query -if indexes -o wd-full-report.yml r
    This command generates a YAML report in wd-full-report.yml in the current folder.
Parameters
Parameters must be added at the end of the wazideploy-evidence command line with the following format:
environment_name=zos_env_test
Table 1. wd-full-report-query parameters
Parameter Comments
environment_name
string
If this parameter is specified, only the specified environment is selected.

If this parameter is not specified, all the environments are selected.

renderer_name
string
If this parameter is specified, the selected renderer is used for the output. An HTML renderer is provided in the product.

wd-deployments-summary-query

Synopsis

Use this query to generate a detailed report of each deployed artifact.

Examples
  • wazideploy-evidence -q wd-deployments-summary-query -if indexes -o wd-deployments-summary.html r renderer_name=wd-deployments-summary-renderer.html environment_name="*"
    This command generates an HTML report in wd-deployments-summary.html in the current folder.
  • wazideploy-evidence -q wd-deployments-summary-query  -if indexes -o wd-deployments-summary.yml r
    This command generates a YAML report in wd-deployments-summary.html in the current folder.
Parameters
Parameters must be added at the end of the wazideploy-evidence command line with the following format:
environment_name=zos_env_test
Table 2. wd-full-report-query parameters
Parameter Comments
application_name
string
If this parameter is specified, only the specified application is selected.

If this parameter is not specified, all the applications are selected.

artifact_name
string
If this parameter is specified, only the specified artifact is selected.

If this parameter is not specified, all the artifacts are selected.

artifact_type
string
If this parameter is specified, only the specified artifact type (DBRM or CICSLOAD for example) is selected.

If this parameter is not specified, all the artifacts are selected.

environment_name
string
If this parameter is specified, only the specified environment is selected.

If this parameter is not specified, all the environments are selected.

renderer_name
string
If this parameter is specified, the selected renderer is used for the output. An HTML renderer is provided in the product.
Sample output

A sample output of this query is provided in wd-deployments-summary-query sample output.