> For the complete documentation index, see [llms.txt](https://docs.serenicity.fr/control/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.serenicity.fr/control/english/guides/calcul-des-metriques.md).

# Calculation of metrics

## Cyberweather

The calculation of cyber weather (cybertoxicity in cyT) is performed as follows:

$$
cyT = 1 \* in + 10 \* out \text{, with }\begin{cases} \text{ } in \text{ the number of toxic flows IN} \ \text{ } out\text{ the number of toxic flows OUT}\end{cases}
$$

The weighting of an **OUT** toxic flow is much more important because it represents a network device that initiates a communication to a toxic IP address.

There are 5 different levels of cyberweather:

<table><thead><tr><th width="287.3058082501834" align="center">Cybertoxicity (cyT)</th><th align="center">Icon</th></tr></thead><tbody><tr><td align="center">Equal to zero</td><td align="center"><img src="/files/dZGjUfUUNc5i3AvlpnHT" alt="" data-size="line"></td></tr><tr><td align="center">Between 1 and 5 inclusive</td><td align="center"><img src="/files/jAfkfXKvCiZeDJoYKgJf" alt="" data-size="line"></td></tr><tr><td align="center">Between 6 and 10 inclusive</td><td align="center"><img src="/files/CgDUooLFtxD2N6B1egti" alt="" data-size="line"></td></tr><tr><td align="center">Between 11 and 99 inclusive</td><td align="center"><img src="/files/M265vQhbUXokRKjyBUz7" alt="" data-size="line"></td></tr><tr><td align="center">100 and more</td><td align="center"><img src="/files/a8W8I7dBCunxTPEhnDGb" alt="" data-size="line"></td></tr></tbody></table>

## Cybercarbon

The cyber carbon represents the **equivalent in CO2 emissions** (CO2e) of the **volume of the network flows**.

According to the ADEME (French Environment and Energy Management Agency) and a report posed in January 2022, the study shows that the environmental impact of data transmission on :

* a **fixed** network (about **18 gCO2e / Go**)
* a **mobile** network (estimated at 50 gCO2e / Go)

{% embed url="<https://expertises.ademe.fr/economie-circulaire/consommer-autrement/passer-a-laction/reconnaitre-produit-plus-respectueux-lenvironnement/dossier/laffichage-environnemental/affichage-environnemental-secteur-numerique>" %}
Source of the environmental impact of fixed and mobile networks
{% endembed %}

In the case of Serenicity, the majority of the devices are installed on **fixed networks**.\
Therefore, the calculation is as follows:&#x20;

$$
cyC \text{ (in gCO2e) }= \frac{18 \* x}{10^9} \text{, with } x \text{ the sum of the flows in bytes}
$$

{% hint style="info" %}
The notation **gCO2e / kgCO2e** means **gram / kilogram CO2 equivalent**.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.serenicity.fr/control/english/guides/calcul-des-metriques.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
