2021-01-03 14:25:43 +05:30
|
|
|
<script>
|
2021-03-11 19:13:27 +05:30
|
|
|
import { TODAY, TOTAL_DAYS_TO_SHOW, START_DATE } from '../constants';
|
|
|
|
import ChartsConfig from './charts_config';
|
2021-01-03 14:25:43 +05:30
|
|
|
import InstanceCounts from './instance_counts.vue';
|
2021-01-29 00:20:46 +05:30
|
|
|
import InstanceStatisticsCountChart from './instance_statistics_count_chart.vue';
|
|
|
|
import ProjectsAndGroupsChart from './projects_and_groups_chart.vue';
|
2021-03-11 19:13:27 +05:30
|
|
|
import UsersChart from './users_chart.vue';
|
2021-01-03 14:25:43 +05:30
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'InstanceStatisticsApp',
|
|
|
|
components: {
|
|
|
|
InstanceCounts,
|
2021-01-29 00:20:46 +05:30
|
|
|
InstanceStatisticsCountChart,
|
2021-01-03 14:25:43 +05:30
|
|
|
UsersChart,
|
2021-01-29 00:20:46 +05:30
|
|
|
ProjectsAndGroupsChart,
|
2021-01-03 14:25:43 +05:30
|
|
|
},
|
|
|
|
TOTAL_DAYS_TO_SHOW,
|
|
|
|
START_DATE,
|
|
|
|
TODAY,
|
2021-01-29 00:20:46 +05:30
|
|
|
configs: ChartsConfig,
|
2021-01-03 14:25:43 +05:30
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<instance-counts />
|
|
|
|
<users-chart
|
|
|
|
:start-date="$options.START_DATE"
|
|
|
|
:end-date="$options.TODAY"
|
|
|
|
:total-data-points="$options.TOTAL_DAYS_TO_SHOW"
|
|
|
|
/>
|
2021-01-29 00:20:46 +05:30
|
|
|
<projects-and-groups-chart
|
|
|
|
:start-date="$options.START_DATE"
|
|
|
|
:end-date="$options.TODAY"
|
|
|
|
:total-data-points="$options.TOTAL_DAYS_TO_SHOW"
|
|
|
|
/>
|
|
|
|
<instance-statistics-count-chart
|
|
|
|
v-for="chartOptions in $options.configs"
|
|
|
|
:key="chartOptions.chartTitle"
|
|
|
|
:queries="chartOptions.queries"
|
|
|
|
:x-axis-title="chartOptions.xAxisTitle"
|
|
|
|
:y-axis-title="chartOptions.yAxisTitle"
|
|
|
|
:load-chart-error-message="chartOptions.loadChartError"
|
|
|
|
:no-data-message="chartOptions.noDataMessage"
|
|
|
|
:chart-title="chartOptions.chartTitle"
|
|
|
|
/>
|
2021-01-03 14:25:43 +05:30
|
|
|
</div>
|
|
|
|
</template>
|