github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/tests/acceptance/test_data/templates/expected_check_json.json (about)

     1  {
     2    "group_id": "root_result_group",
     3    "title": "Sample control with all possible statuses(severity=high)",
     4    "description": "",
     5    "tags": {},
     6    "summary": {
     7      "status": {
     8        "alarm": 5,
     9        "ok": 10,
    10        "info": 3,
    11        "skip": 1,
    12        "error": 2
    13      }
    14    },
    15    "groups": [],
    16    "controls": [
    17      {
    18        "summary": {
    19          "alarm": 5,
    20          "ok": 10,
    21          "info": 3,
    22          "skip": 1,
    23          "error": 2
    24        },
    25        "results": [
    26          {
    27            "reason": "Resource has some error",
    28            "resource": "steampipe",
    29            "status": "error",
    30            "dimensions": [
    31              {
    32                "key": "id",
    33                "value": "16"
    34              }
    35            ]
    36          },
    37          {
    38            "reason": "Resource has some error",
    39            "resource": "steampipe",
    40            "status": "error",
    41            "dimensions": [
    42              {
    43                "key": "id",
    44                "value": "17"
    45              }
    46            ]
    47          },
    48          {
    49            "reason": "Resource does not satisfy condition",
    50            "resource": "steampipe",
    51            "status": "alarm",
    52            "dimensions": [
    53              {
    54                "key": "id",
    55                "value": "11"
    56              }
    57            ]
    58          },
    59          {
    60            "reason": "Resource does not satisfy condition",
    61            "resource": "steampipe",
    62            "status": "alarm",
    63            "dimensions": [
    64              {
    65                "key": "id",
    66                "value": "12"
    67              }
    68            ]
    69          },
    70          {
    71            "reason": "Resource does not satisfy condition",
    72            "resource": "steampipe",
    73            "status": "alarm",
    74            "dimensions": [
    75              {
    76                "key": "id",
    77                "value": "13"
    78              }
    79            ]
    80          },
    81          {
    82            "reason": "Resource does not satisfy condition",
    83            "resource": "steampipe",
    84            "status": "alarm",
    85            "dimensions": [
    86              {
    87                "key": "id",
    88                "value": "14"
    89              }
    90            ]
    91          },
    92          {
    93            "reason": "Resource does not satisfy condition",
    94            "resource": "steampipe",
    95            "status": "alarm",
    96            "dimensions": [
    97              {
    98                "key": "id",
    99                "value": "15"
   100              }
   101            ]
   102          },
   103          {
   104            "reason": "Information",
   105            "resource": "steampipe",
   106            "status": "info",
   107            "dimensions": [
   108              {
   109                "key": "id",
   110                "value": "19"
   111              }
   112            ]
   113          },
   114          {
   115            "reason": "Information",
   116            "resource": "steampipe",
   117            "status": "info",
   118            "dimensions": [
   119              {
   120                "key": "id",
   121                "value": "20"
   122              }
   123            ]
   124          },
   125          {
   126            "reason": "Information",
   127            "resource": "steampipe",
   128            "status": "info",
   129            "dimensions": [
   130              {
   131                "key": "id",
   132                "value": "21"
   133              }
   134            ]
   135          },
   136          {
   137            "reason": "Resource satisfies condition",
   138            "resource": "steampipe",
   139            "status": "ok",
   140            "dimensions": [
   141              {
   142                "key": "id",
   143                "value": "1"
   144              }
   145            ]
   146          },
   147          {
   148            "reason": "Resource satisfies condition",
   149            "resource": "steampipe",
   150            "status": "ok",
   151            "dimensions": [
   152              {
   153                "key": "id",
   154                "value": "2"
   155              }
   156            ]
   157          },
   158          {
   159            "reason": "Resource satisfies condition",
   160            "resource": "steampipe",
   161            "status": "ok",
   162            "dimensions": [
   163              {
   164                "key": "id",
   165                "value": "3"
   166              }
   167            ]
   168          },
   169          {
   170            "reason": "Resource satisfies condition",
   171            "resource": "steampipe",
   172            "status": "ok",
   173            "dimensions": [
   174              {
   175                "key": "id",
   176                "value": "4"
   177              }
   178            ]
   179          },
   180          {
   181            "reason": "Resource satisfies condition",
   182            "resource": "steampipe",
   183            "status": "ok",
   184            "dimensions": [
   185              {
   186                "key": "id",
   187                "value": "5"
   188              }
   189            ]
   190          },
   191          {
   192            "reason": "Resource satisfies condition",
   193            "resource": "steampipe",
   194            "status": "ok",
   195            "dimensions": [
   196              {
   197                "key": "id",
   198                "value": "6"
   199              }
   200            ]
   201          },
   202          {
   203            "reason": "Resource satisfies condition",
   204            "resource": "steampipe",
   205            "status": "ok",
   206            "dimensions": [
   207              {
   208                "key": "id",
   209                "value": "7"
   210              }
   211            ]
   212          },
   213          {
   214            "reason": "Resource satisfies condition",
   215            "resource": "steampipe",
   216            "status": "ok",
   217            "dimensions": [
   218              {
   219                "key": "id",
   220                "value": "8"
   221              }
   222            ]
   223          },
   224          {
   225            "reason": "Resource satisfies condition",
   226            "resource": "steampipe",
   227            "status": "ok",
   228            "dimensions": [
   229              {
   230                "key": "id",
   231                "value": "9"
   232              }
   233            ]
   234          },
   235          {
   236            "reason": "Resource satisfies condition",
   237            "resource": "steampipe",
   238            "status": "ok",
   239            "dimensions": [
   240              {
   241                "key": "id",
   242                "value": "10"
   243              }
   244            ]
   245          },
   246          {
   247            "reason": "Resource is skipped",
   248            "resource": "steampipe",
   249            "status": "skip",
   250            "dimensions": [
   251              {
   252                "key": "id",
   253                "value": "18"
   254              }
   255            ]
   256          }
   257        ],
   258        "control_id": "control.sample_control_mixed_results_1",
   259        "description": "Sample control that returns 10 OK, 5 ALARM, 2 ERROR, 1 SKIP and 3 INFO",
   260        "severity": "high",
   261        "tags": {},
   262        "title": "Sample control with all possible statuses(severity=high)",
   263        "run_status": 4,
   264        "run_error": ""
   265      }
   266    ]
   267  }