Inserting results in to table in Mustache template

Hello All ,

I am trying to insert my results into a table using Mustache template . I am trying the below code but it is not working . Kindly help.

Found  {{ctx.results.0.hits.total.value}} component(s) with issues! Please check enclosed report
- MonitorName: {{ctx.monitor.name}}
- trigger name: {{ctx.trigger.name}}
- PeriodStart: {{ctx.periodStart}}
- PeriodEnd: {{ctx.periodEnd}}
                
{{#ctx.results}}
      {{#hits}}
          {{#hits}}
		  {{#_source}}
<script id="mustache-template" type="text/template">
    <table>
        <thead>
		 <tr>
		  <th> timestamp </th>
		  <th> Server </th>
          <th> ComponentAlias </th>
          <th> ComponentStatus </th>
		  </tr>
	    </thead>
        <tbody>
        
            <tr>
                <td>{{@timestamp}}</td>
                <td>{{ServerName}}</td>
				<td>{{ComponentAlias}}</td>
                <td>{{ComponentStatus}}</td>
            </tr>
       
        </tbody>
    </table>
</script>
			  {{/_source}}
          {{/hits}}
      {{/hits}}
  {{/ctx.results}}