You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
3.1 KiB

<form script="ebs_insights.js" version="1.1">
<label>EBS Insights - AWS</label>
<fieldset submitButton="false">
<input type="multiselect" token="accountId" id="ip1" searchWhenChanged="true">
<label>Account ID</label>
<choice value="*">All</choice>
<search>
<query>
<![CDATA[ |aclinputlookup all_account_ids | mvcombine delim=", " name | nomv name | eval title=account_id." (".name.")" ]]>
</query>
</search>
<prefix> (</prefix>
<suffix>) </suffix>
<valuePrefix>aws_account_id="</valuePrefix>
<valueSuffix>"</valueSuffix>
<delimiter> OR </delimiter>
<fieldForValue>account_id</fieldForValue>
<fieldForLabel>title</fieldForLabel>
</input>
<input type="multiselect" token="region" id="ip2" searchWhenChanged="true">
<label>Regions</label>
<choice value="*">All</choice>
<search>
<query>
<![CDATA[ |inputlookup regions ]]>
</query>
</search>
<prefix> (</prefix>
<suffix>) </suffix>
<valuePrefix>region="</valuePrefix>
<valueSuffix>"</valueSuffix>
<delimiter> OR </delimiter>
<fieldForValue>region</fieldForValue>
<fieldForLabel>label</fieldForLabel>
</input>
<input id="awstags" token="tags">
</input>
<input id="recommendation_filter" type="multiselect" token="recommendation_filter" searchWhenChanged="true">
<label>Insights Filter</label>
<choice value="*">All</choice>
<choice value="unattached">Unattached EBS</choice>
<choice value="nonoptimized">Non-optimized EBS</choice>
<choice value="nosnapshot">No Snapshot(30 days)</choice>
<choice value="largeiops">Large IOPS</choice>
<choice value="smalliops">Small IOPS</choice>
<default>All</default>
</input>
</fieldset>
<row>
<panel>
<table id="ebs_recommend_merge">
<search base="search_ebs_recommendation_merge">
<query>
<![CDATA[
sort by +Severity ,id
|lookup regions region OUTPUT label as region
|table id, region, size, type, status, abnormaltype, Severity
|rename id as ID,region as Region, size as "Size (GB)", type as Type, status as State, abnormaltype as "Insight"
]]>
</query>
</search>
<option name="drilldown">row</option>
<option name="count">15</option>
<drilldown>
<link>
individual_ebs_usage?form.volumes=$row.ID$&amp;latest=$latest$&amp;earliest=$earliest$&amp;form.accountId=$form.accountId$&amp;regions=$form.region$
</link>
</drilldown>
</table>
</panel>
</row>
</form>