Your IP : 10.1.73.149


Current Path : /proc/self/root/lib/python3.9/site-packages/glances/outputs/static/js/components/
Upload File :
Current File : //proc/self/root/lib/python3.9/site-packages/glances/outputs/static/js/components/plugin-cloud.vue

<template>
    <section id="cloud" class="plugin" v-if="instance || provider">
        <span class="title">{{ provider }}</span> {{ instance }}
    </section>
</template>

<script>
export default {
    props: {
        data: {
            type: Object
        }
    },
    computed: {
        stats() {
            return this.data.stats['cloud'];
        },
        provider() {
            return this.stats['id'] !== undefined ? `${stats['platform']}` : null;
        },
        instance() {
            const { stats } = this;
            return this.stats['id'] !== undefined
                ? `${stats['type']} instance ${stats['name']} (${stats['region']})`
                : null;
        }
    }
};
</script>