Skip to content

Commit

Permalink
Merge pull request #724 from mohamedawnallah/ioda-alarms-countries-ne…
Browse files Browse the repository at this point in the history
…twork-report-integration

[feature]: Integrate IODA Charts in Country and Network Reports
  • Loading branch information
romain-fontugne authored Jan 10, 2024
2 parents 13d4f5c + d2fd33b commit 9e5fcdb
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@
"apiTitle": "Displayed data is available at the following links:"
}
},
"iodaChart": {
"title": "IODA Overview"
},
"countryHegemony": {
"title": "Network Dependency",
"table": {
Expand Down
3 changes: 3 additions & 0 deletions src/i18n/locales/jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@
"apiTitle": "Displayed data is available at the following links:"
}
},
"iodaChart": {
"title": "IODA Overview"
},
"countryHegemony": {
"title": "Network Dependency",
"table": {
Expand Down
14 changes: 13 additions & 1 deletion src/views/Countries.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { isoCountries } from '@/plugins/countryName'
import { DEFAULT_DISCO_AVG_LEVEL } from '@/plugins/disco'
import { AS_FAMILY } from '@/plugins/IhrApi'
import CountryHegemonyChart from '../components/charts/CountryHegemonyChart.vue'
import IodaChart from '@/components/charts/IodaChart.vue'
const { t } = useI18n()
Expand Down Expand Up @@ -50,6 +51,8 @@ const show = ref({
disco_disable: false,
hegemony: true,
hegemony_disable: false,
ioda: true,
ioda_disable: false,
net_delay: true,
net_delay_disable: false
})
Expand Down Expand Up @@ -181,7 +184,16 @@ onMounted(() => {
</QCardSection>
</QCard>
</QExpansionItem>

<QExpansionItem :label="$t('charts.iodaChart.title')" caption="Country Internet Overview" header-class="IHR_charts-title"
icon="fas fa-globe" :disable="show.ioda_disable" v-model="show.ioda">
<QSeparator />
<QCard class="IHR_charts-body">
<QCardSection>
<IodaChart :entity-value="countryCode" :filter-by-country="true" :start-time="startTime"
:end-time="endTime" />
</QCardSection>
</QCard>
</QExpansionItem>
<QExpansionItem
:label="$t('charts.prefixHegemony.title')"
caption="BGP / IRR / RPKI / delegated"
Expand Down
15 changes: 14 additions & 1 deletion src/views/Networks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import NetworkDelayChart from '@/components/charts/NetworkDelayChart.vue'
import AsInterdependenciesChart from '@/components/charts/AsInterdependenciesChart.vue'
import DelayAndForwardingChart from '@/components/charts/DelayAndForwardingChart.vue'
import DiscoChart from '@/components/charts/DiscoChart.vue'
import IodaChart from '@/components/charts/IodaChart.vue'
const { t } = useI18n()
Expand Down Expand Up @@ -52,6 +53,8 @@ const show = ref({
disco_disable: false,
hegemony: true,
hegemony_disable: false,
ioda: true,
ioda_disable: false,
net_delay: true,
net_delay_disable: false,
measurementLab: true,
Expand Down Expand Up @@ -191,7 +194,17 @@ onMounted(() => {
/>
</QCardSection>
</QCard>
</qExpansionItem>
</QExpansionItem>
<QExpansionItem :label="$t('charts.iodaChart.title')" caption="AS Internet Overview" header-class="IHR_charts-title"
icon="fas fa-globe" :disable="show.ioda_disable" v-model="show.ioda">
<QSeparator />
<QCard class="IHR_charts-body">
<QCardSection>
<IodaChart :entity-value="String(asNumber)" :filter-by-country="false" :start-time="startTime"
:end-time="endTime" />
</QCardSection>
</QCard>
</QExpansionItem>
<QExpansionItem
:label="$t('charts.prefixHegemony.title')"
caption="BGP / IRR / RPKI / delegated"
Expand Down

0 comments on commit 9e5fcdb

Please sign in to comment.