HEX
Server: LiteSpeed
System: Linux baran.dnsprotection.me 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User: ddir12 (3618)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/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['ami-id'] !== undefined ? 'AWS EC2' : null;
        },
        instance() {
            const { stats } = this;
            return this.stats['ami-id'] !== undefined
                ? `${stats['instance-type']} instance ${stats['instance-id']} (${stats['reggion']})`
                : null;
        }
    }
};
</script>