{"id":"diagnostics--diagnosticCounter","name":"diagnosticCounter","owner":"yeho","package":"diagnostics","kind":"thing","signature":"external thing diagnosticCounter","description":"A diagnostic counter record carrying name, total.","context":"Describe failures, collect runtime traces, and make execution observable.","parameters":[],"returns":"void","members":[{"name":"name","kind":"field","type":"text","description":"Stores name as text.","signature":"text name","tags":["thing","field","diagnostics"],"updated":"2026-09-09"},{"name":"total","kind":"field","type":"int","description":"Stores total as int.","signature":"int total","tags":["thing","field","diagnostics"],"updated":"2026-09-09"},{"name":"diagnosticCounter","kind":"constructor","parameters":[{"name":"name","type":"text","description":"Name."}],"returns":"void","signature":"diagnosticCounter(text name)","description":"Diagnostic counter.","tags":["thing","constructor","diagnostics"],"updated":"2026-09-09"},{"name":"Increment","kind":"method","parameters":[],"returns":"void","signature":"Increment()","description":"Increment.","tags":["thing","method","diagnostics"],"exampleId":"method-Increment-3","updated":"2026-09-09"},{"name":"IncrementBy","kind":"method","parameters":[{"name":"amount","type":"int","description":"Amount."}],"returns":"void","signature":"IncrementBy(int amount)","description":"Increment by.","tags":["thing","method","diagnostics"],"exampleId":"method-IncrementBy-4","updated":"2026-09-09"},{"name":"Value","kind":"method","parameters":[],"returns":"int","signature":"Value() returns int","description":"Value.","tags":["thing","method","diagnostics"],"exampleId":"method-Value-5","updated":"2026-09-09"},{"name":"Render","kind":"method","parameters":[],"returns":"text","signature":"Render() returns text","description":"Render.","tags":["thing","method","diagnostics"],"exampleId":"method-Render-6","updated":"2026-09-09"}],"tags":["cpu","diagnostics","method","source-example","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/diagnostics/diagnostics.yh","line":187,"sha256":"f8041e2c90790610b2c1f7c093d8c7b6b81d374d6d198b93c490dd256677345a"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use diagnosticCounter","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using diagnostics\n\n// Describe failures, collect runtime traces, and make execution observable.\ndiagnosticCounter sample = diagnosticCounter(\"Nova\")\nConsole.Log(Text.From(sample.name))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.diagnostics__diagnosticcounter\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"321ac2c1765bad77ea0582aceb1ee9f4ea146d7a5264d8e176227d18d9808935","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Increment-3","title":"diagnosticCounter.Increment","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using diagnostics\n\n// Increment.\ndiagnosticCounter instance = diagnosticCounter(\"Nova\")\ninstance.Increment()\nConsole.Log(\"Increment completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.diagnostics__diagnosticcounter\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"626a5053fe212f51633c3dfd801271bfee5a20c3a4665a01b8a5a3bb1baf38f5","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IncrementBy-4","title":"diagnosticCounter.IncrementBy","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using diagnostics\n\n// Increment by.\ndiagnosticCounter instance = diagnosticCounter(\"Nova\")\nint argument_amount = 1\ninstance.IncrementBy(argument_amount)\nConsole.Log(\"IncrementBy completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.diagnostics__diagnosticcounter\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"d339586414447484449f3eb1626040d41b92123b370c8e00bab47ae4e6141a0d","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Value-5","title":"diagnosticCounter.Value","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using diagnostics\n\n// Value.\ndiagnosticCounter instance = diagnosticCounter(\"Nova\")\nint result = instance.Value()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.diagnostics__diagnosticcounter\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"27dded74a57eb801f98827a5a982bf17d83d9bc2c74ed6b2dbe09abb52bc157f","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Render-6","title":"diagnosticCounter.Render","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using diagnostics\n\n// Render.\ndiagnosticCounter instance = diagnosticCounter(\"Nova\")\ntext result = instance.Render()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.diagnostics__diagnosticcounter\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"996a8d2b92958eab080d9e7a0bea039eacec7122a5eb04de9ab829bdcb3aa25b","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["name","total","diagnosticCounter","Increment","IncrementBy","Value","Render"],"url":"https://demonhunterlabs.com/academy/api?item=diagnostics--diagnosticCounter","json":"https://demonhunterlabs.com/reference/items/diagnostics--diagnosticCounter.json","markdown":"https://demonhunterlabs.com/reference/text/diagnostics--diagnosticCounter.md"}
