Package com.skymobi.monitor.model

Examples of com.skymobi.monitor.model.Chart



    @RequestMapping(value = "/projects/{projectName}/charts/{chartName}", method = RequestMethod.GET)
    public String show(ModelMap map, @PathVariable String projectName, @PathVariable String chartName) {
        Project project = projectService.findProject(projectName);
        Chart chart = project.findChart(chartName);

        map.put("project", project);
        map.put("chart", chart);

        return "chart/show";
View Full Code Here


    }

    @RequestMapping(value = "/projects/{projectName}/charts/{chartName}/render", method = RequestMethod.GET)
    public String render(ModelMap map, @PathVariable String projectName, @PathVariable String chartName) {
        Project project = projectService.findProject(projectName);
        Chart chart = project.findChart(chartName);
        List data = chart.findData();

        logger.info("render metric name={},data={}", chartName, data);

        map.put("data", data);
        return "chart/show";
View Full Code Here

    }

    @RequestMapping(value = "/projects/{projectName}/charts/{chartName}/edit", method = RequestMethod.GET)
    public String edit(ModelMap map, @PathVariable String projectName, @PathVariable String chartName) {
        Project project = projectService.findProject(projectName);
        Chart chart = project.findChart(chartName);
        map.put("project", project);
        map.put("chart", chart);
        return "chart/edit";
    }
View Full Code Here

    }

    @RequestMapping(value = "/projects/{projectName}/charts/{chartName}/destroy", method = RequestMethod.POST)
    public String destroy(@PathVariable String projectName, @PathVariable String chartName) {
        Project project = projectService.findProject(projectName);
        Chart chart = new Chart(chartName);
        project.getCharts().remove(chart);
        projectService.saveProject(project);

        return "redirect:/projects/" + projectName + "/charts";
    }
View Full Code Here

TOP

Related Classes of com.skymobi.monitor.model.Chart

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.