CARVIEW |
View properties for widgets
This section describes the configurable view properties for the 4 view types: table, line chart, pie chart, and bar chart.
View types:
Table
The following example shows a widget configured as a table.
{ "ViewProperties": { "Height": "2", "Width": "4", "Title": "TopErrors", "View": "Table" }, "QueryStatement": "SELECT errorCode, COUNT(*) AS eventCount FROM eds WHERE eventTime > '?' AND eventTime < '?' AND (errorCode is not null) GROUP BY errorCode ORDER BY eventCount DESC LIMIT 100", "QueryParameters": ["$StartTime$", "$EndTime$"] }
The following table describes the configurable view properties for a table.
Parameter | Required | Value |
---|---|---|
|
Yes |
The height of the table in inches. |
|
Yes |
The width of the table in inches. |
|
Yes |
The title of the table. |
|
Yes |
The widget view type. For a table, the value is |
Line chart
The following example shows a widget configured as a line chart.
{ "ViewProperties": { "Height": "2", "Width": "4", "Title": "AccountActivity", "View": "LineChart", "YAxisColumn": "eventCount", "XAxisColumn": "eventDate", "FilterColumn": "readOnly" }, "QueryStatement": "SELECT DATE_TRUNC('?', eventTime) AS eventDate, IF(readOnly, 'read', 'write') AS readOnly, COUNT(*) as eventCount FROM eds WHERE eventTime > '?' AND eventTime < '?' GROUP BY DATE_TRUNC('?', eventTime), readOnly ORDER BY DATE_TRUNC('?', eventTime), readOnly", "QueryParameters": ["$Period$", "$StartTime$", "$EndTime$", "$Period$", "$Period$"] }
The following table describes the configurable view properties for a line chart.
Parameter | Required | Value |
---|---|---|
|
Yes |
The height of the line chart in inches. |
|
Yes |
The width of the line chart in inches. |
|
Yes |
The title of the line chart. |
|
Yes |
The widget view type. For a line chart, the value is |
|
Yes |
The field from the query results that you want to use for the Y axis column. For example, |
|
Yes |
The field from the query results that you want to use for the X axis column. For example, |
|
No |
The field from the query results that you want to filter on. For example, |
Pie chart
The following example shows a widget configured as a pie chart.
{ "ViewProperties": { "Height": "2", "Width": "4", "Title": "MostActiveRegions", "View": "PieChart", "LabelColumn": "awsRegion", "ValueColumn": "eventCount", "FilterColumn": "awsRegion" }, "QueryStatement": "SELECT awsRegion, COUNT(*) AS eventCount FROM eds where eventTime > '?' and eventTime < '?' GROUP BY awsRegion ORDER BY eventCount LIMIT 100", "QueryParameters": ["$StartTime$", "$EndTime$"] }
The following table describes configurable view properties for a pie chart.
Parameter | Required | Value |
---|---|---|
|
Yes |
The height of the pie chart in inches. |
|
Yes |
The width of the pie chart in inches. |
|
Yes |
The title of the pie chart. |
|
Yes |
The widget view type. For a pie chart, the value is |
|
Yes |
The label for segments in the pie chart. For example, |
|
Yes |
The value for the segments in the pie chart. For example, |
|
No |
The field from the query results that you want to filter on. For example, |
Bar chart
The following example shows a widget configured as a bar chart.
{ "ViewProperties": { "Height": "2", "Width": "4", "Title": "TopServices", "View": "BarChart", "LabelColumn": "service", "ValueColumn": "eventCount", "FilterColumn": "service", "Orientation": "Horizontal" }, "QueryStatement": "SELECT REPLACE(eventSource, '.amazonaws.com') AS service, COUNT(*) AS eventCount FROM eds WHERE eventTime > '?' AND eventTime < '?' GROUP BY eventSource ORDER BY eventCount DESC LIMIT 100", "QueryParameters": ["$StartTime$", "$EndTime$"] }
The following table describes the configurable view properties for a bar chart.
Parameter | Required | Value |
---|---|---|
|
Yes |
The height of the bar chart in inches. |
|
Yes |
The width of the bar chart in inches. |
|
Yes |
The title of the bar chart. |
|
Yes |
The widget view type. For a bar chart, the value is |
|
Yes |
The label for bars in the bar chart. For example, |
|
Yes |
The value for the bars in the bar chart. For example, |
|
No |
The field from the query results that you want to filter on. For example, |
|
No |
The orientation of the bar chart, either |
Thanks for letting us know we're doing a good job!
If you've got a moment, please tell us what we did right so we can do more of it.
Thanks for letting us know this page needs work. We're sorry we let you down.
If you've got a moment, please tell us how we can make the documentation better.