{
    "name" : "Autonomous Systems",
    "i18n_name" : "top_asn",
    "data_source" : "flows",
    "hourly": true,
    "chart" : [
	{
            "chart_id" : "top_src_asn", // Each id MUST be different
            "chart_i18n_name" : "top_src_asn",

            "chart_css_styles" : { // CSS chart styles, optional feature
                "max-height" : "25rem",
                "min-height" : "25rem",
            },
            "chart_endpoint" : "/lua/pro/rest/v2/get/db/charts/example_asn_pie.lua",
            "chart_events" : { // JS Events, optional feature
                "dataPointSelection" : "db_analyze"
            },
            "chart_gui_filter" : "srv_asn", // Filter displayed in the GUI
            "chart_sql_query" : "SELECT SRC_ASN,any(IPv4NumToString(IPV4_SRC_ADDR)) as IPV4_SRC_ADDR_FORMATTED,SUM(TOTAL_BYTES) AS bytes FROM flows WHERE ($WHERE$) GROUP BY SRC_ASN ORDER BY bytes DESC LIMIT 10",
            "chart_type" : "radar_apex_chart",
            "chart_record_value" : "bytes",
            "chart_record_label" : "SRC_ASN",
            "chart_width" : 6, // Chart width, it can be a number between 1 and 12, optional feature
            "chart_y_formatter" : "format_bytes", // JS tooltip event, optional feature
        },{
            "chart_id" : "top_dst_asn", // Each id MUST be different
            "chart_i18n_name" : "top_dst_asn",

            "chart_css_styles" : { // CSS chart styles, optional feature
                "max-height" : "25rem",
                "min-height" : "25rem",
            },
            "chart_endpoint" : "/lua/pro/rest/v2/get/db/charts/example_asn_pie.lua",
            "chart_events" : { // JS Events, optional feature
                "dataPointSelection" : "db_analyze"
            },
            "chart_gui_filter" : "srv_asn", // Filter displayed in the GUI
            "chart_sql_query" : "SELECT DST_ASN,any(IPv4NumToString(IPV4_DST_ADDR)) as IPV4_DST_ADDR_FORMATTED,SUM(TOTAL_BYTES) AS bytes FROM flows WHERE ($WHERE$) GROUP BY DST_ASN ORDER BY bytes DESC LIMIT 10",
            "chart_type" : "donut_apex_chart",
            "chart_record_value" : "bytes",
            "chart_record_label" : "DST_ASN",
            "chart_width" : 6, // Chart width, it can be a number between 1 and 12, optional feature
            "chart_y_formatter" : "format_bytes", // JS tooltip event, optional feature
            "chart_aggregate_low_data" : true,
        }],
    "show_in_page" : "analysis",
}
