Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Bloco de código
languagecpp
themeEclipse
linenumberstrue
collapsefalse
User Function exemplo()
cRet := ""
cRet := ReadMetrics("memory_swap_total")
Conout(cRet)
//Imprime : [{"version":0,"metrics":[{"name":"memory_swap_total","description":"Page File Total","collected_in":"25/05/2020 15:14:14.612","unit":"kbyteskb","value":23467676}]}]

cRet := ReadMetrics()
Conout(cRet)
//Imprime: [{"version":0,"metrics":[{"name":"memory_resident","description":"Resident Memory Usage","collected_in":"25/05/2020 15:14:38.979","unit":"kbyteskb","value":967760},{"name":"memory_virtual","description":"Virtual Memory Usage","collected_in":"25/05/2020 15:14:38.979","unit":"kbyteskb","value":5386272},{"name":"memory_ram_total","description":"Memory Ram Total","collected_in":"25/05/2020 15:14:38.979","unit":"kbyteskb","value":16554132},{"name":"memory_ram_free","description":"Memory Ram Free (Available to Use)","collected_in":"25/05/2020 15:14:38.979","unit":"kbyteskb","value":8270660},{"name":"memory_ram_used","description":"Memory Ram Usage","collected_in":"25/05/2020 15:14:38.979","unit":"kbyteskb","value":8283472},{"name":"memory_swap_total","description":"Page File Total","collected_in":"25/05/2020 15:14:38.979","unit":"kbyteskb","value":23467676},{"name":"memory_swap_used","description":"Page File Used","collected_in":"25/05/2020 15:14:38.979","unit":"kbyteskb","value":15027124},{"name":"memory_swap_free","description":"Page File Free (Available to Use)","collected_in":"25/05/2020 15:14:38.979","unit":"kbyteskb","value":8440552},{"name":"startdate","description":"Date when the system was started","collected_in":"25/05/2020 14:23:28.397","value":"25/05/2020 14:23:28"}]}]

cRet := ReadMetrics("inexistente")
Conout(cRet)
//Imprime: [{"version":0,"metrics":[]}]

Return

...