Code Monkey home page Code Monkey logo

Comments (2)

samuelrince avatar samuelrince commented on September 24, 2024

Output json:

{
    "enriched_data":
    {
        "configuration":
        {
            "cpu":
            {
                "core_units":
                {
                    "input_value": 24,
                    "status": "used",
                    "used_value": 24
                },
                "die_size_per_core":
                {
                    "input_value": null,
                    "status": "replaced",
                    "used_value": 0.245
                },
                "units": 2,
                "impact":
                {
                    "gwp": 12.0,
                    "pe": 15.0,
                    "adp": 0.06
                }
            }
        },
        "model":
        {
            "manufacturer": "Dell",
            "name": "R740",
            "type": "rack",
            "year": "2020"
        }
    },
    "impacts":
    {
        "impacts":
        {
            "adp": 0.1574874978742977,
            "gwp": 987.4223516103959,
            "pe": 13179.869589529004
        }
    }
}

from boaviztapi.

da-ekchajzer avatar da-ekchajzer commented on September 24, 2024

http://[host]:5000/v1/server/bottom-up?verbose=true

INPUT

{
    "model":
    {
        "type": "rack",
        "year": 2020
    },
    "configuration":
    {
        "cpu":
        {
            "units": 2,
            "core_units": 24
        },
        "ram":
        [
            {
                "units": 12,
                "capacity": 32,
                "manufacturer": "Samsung"
            },
            {
                "units": 12,
                "capacity": 16,
                "manufacturer": "Samsung"
            }
        ],
        "disk":
        [
            {
                "units": 1,
                "type": "ssd",
                "capacity": 400,
                "manufacturer": "Samsung"
            }
        ]
    }
}

OUTPUT

{
    "impacts": {
        "gwp": 2587.0,
        "pe": 33076.0,
        "adp": 0.214
    },
    "verbose": {
        "CPU-1": {
            "unit": 2,
            "hash": -3962482828824487674,
            "core_units": {
                "input_value": 24,
                "used_value": 24,
                "status": "UNCHANGED"
            },
            "die_size_per_core": {
                "input_value": null,
                "used_value": 0.245,
                "status": "SET"
            },
            "impacts": {
                "gwp": 43.0,
                "pe": 650.0,
                "adp": 0.041
            }
        },
        "RAM-1": {
            "unit": 12,
            "hash": 8278795769310076923,
            "capacity": {
                "input_value": 32,
                "used_value": 32,
                "status": "UNCHANGED"
            },
            "density": {
                "input_value": null,
                "used_value": 0.625,
                "status": "SET"
            },
            "manufacturer": {
                "input_value": "Samsung",
                "used_value": "Samsung",
                "status": "UNCHANGED"
            },
            "impacts": {
                "gwp": 1414.0,
                "pe": 17661.0,
                "adp": 0.059
            }
        },
        "RAM-2": {
            "unit": 12,
            "hash": -6587936451960145089,
            "capacity": {
                "input_value": 16,
                "used_value": 16,
                "status": "UNCHANGED"
            },
            "density": {
                "input_value": null,
                "used_value": 0.625,
                "status": "SET"
            },
            "manufacturer": {
                "input_value": "Samsung",
                "used_value": "Samsung",
                "status": "UNCHANGED"
            },
            "impacts": {
                "gwp": 738.0,
                "pe": 9275.0,
                "adp": 0.04
            }
        },
        "SSD-1": {
            "unit": 1,
            "hash": 423934783906229733,
            "capacity": {
                "input_value": 400,
                "used_value": 400,
                "status": "UNCHANGED"
            },
            "density": {
                "input_value": null,
                "used_value": 53.6,
                "status": "SET"
            },
            "manufacturer": {
                "input_value": "Samsung",
                "used_value": "Samsung",
                "status": "UNCHANGED"
            },
            "impacts": {
                "gwp": 23.0,
                "pe": 281.0,
                "adp": 0.001
            }
        },
        "POWER_SUPPLY-1": {
            "unit": 2,
            "hash": -1047422884116850630,
            "unit_weight": {
                "input_value": null,
                "used_value": 2.99,
                "status": "SET"
            },
            "impacts": {
                "gwp": 145.0,
                "pe": 2105.0,
                "adp": 0.05
            }
        },
        "RACK-1": {
            "unit": 1,
            "hash": -6629974874962080201,
            "impacts": {
                "gwp": 150.0,
                "pe": 2200.0,
                "adp": 0.02
            }
        },
        "MOTHERBOARD-1": {
            "unit": 1,
            "hash": -4622272671542880617,
            "impacts": {
                "gwp": 66.0,
                "pe": 836.0,
                "adp": 0.004
            }
        },
        "ASSEMBLY-1": {
            "unit": 1,
            "hash": -2802829059627426375,
            "impacts": {
                "gwp": 7.0,
                "pe": 69.0,
                "adp": 0.0
            }
        }
    }
}

from boaviztapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.