Lines Matching defs:counters
157 * Mapping arrays to represent statistics counters in the order of our
1453 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1463 /* counters type="rcode"*/
1468 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1478 /* counters type="qtype"*/
1556 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1567 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1578 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1587 TRY0(xmlTextWriterEndElement(writer)); /* counters */
1589 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1603 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1621 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1637 ISC_XMLCHAR "counters"));
1657 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1677 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1690 TRY0(xmlTextWriterEndElement(writer)); /* </counters> */
1692 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1705 TRY0(xmlTextWriterEndElement(writer)); /* </counters> */
1709 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1722 TRY0(xmlTextWriterEndElement(writer)); /* </counters> */
1724 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1737 TRY0(xmlTextWriterEndElement(writer)); /* </counters> */
1743 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1756 TRY0(xmlTextWriterEndElement(writer)); /* </counters> */
1758 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1771 TRY0(xmlTextWriterEndElement(writer)); /* </counters> */
1775 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1788 TRY0(xmlTextWriterEndElement(writer)); /* </counters> */
1790 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1803 TRY0(xmlTextWriterEndElement(writer)); /* </counters> */
1839 ISC_XMLCHAR "counters"));
1853 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1885 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
1901 TRY0(xmlTextWriterStartElement(writer, ISC_XMLCHAR "counters"));
2196 json_object *counters = json_object_new_object();
2197 if (counters == NULL) {
2203 counters, NULL, nsstats_xmldesc,
2207 json_object_put(counters);
2211 if (json_object_get_object(counters)->count != 0)
2212 json_object_object_add(zoneobj, "rcodes", counters);
2214 json_object_put(counters);
2219 json_object *counters = json_object_new_object();
2220 CHECKMEM(counters);
2223 dumparg.arg = counters;
2228 json_object_put(counters);
2232 if (json_object_get_object(counters)->count != 0)
2233 json_object_object_add(zoneobj, "qtypes", counters);
2235 json_object_put(counters);
2254 json_object *bindstats, *viewlist, *counters, *obj;
2316 /* OPCODE counters */
2317 counters = json_object_new_object();
2321 dumparg.arg = counters;
2327 json_object_put(counters);
2331 if (json_object_get_object(counters)->count != 0)
2332 json_object_object_add(bindstats, "opcodes", counters);
2334 json_object_put(counters);
2336 /* OPCODE counters */
2337 counters = json_object_new_object();
2340 dumparg.arg = counters;
2345 json_object_put(counters);
2349 if (json_object_get_object(counters)->count != 0)
2350 json_object_object_add(bindstats, "rcodes", counters);
2352 json_object_put(counters);
2354 /* QTYPE counters */
2355 counters = json_object_new_object();
2358 dumparg.arg = counters;
2363 json_object_put(counters);
2367 if (json_object_get_object(counters)->count != 0)
2368 json_object_object_add(bindstats, "qtypes", counters);
2370 json_object_put(counters);
2372 /* server stat counters */
2373 counters = json_object_new_object();
2376 dumparg.arg = counters;
2379 counters, NULL, nsstats_xmldesc,
2383 json_object_put(counters);
2387 if (json_object_get_object(counters)->count != 0)
2388 json_object_object_add(bindstats, "nsstats", counters);
2390 json_object_put(counters);
2392 /* zone stat counters */
2393 counters = json_object_new_object();
2396 dumparg.arg = counters;
2399 counters, NULL, zonestats_xmldesc,
2403 json_object_put(counters);
2407 if (json_object_get_object(counters)->count != 0)
2409 counters);
2411 json_object_put(counters);
2413 /* resolver stat counters */
2414 counters = json_object_new_object();
2417 dumparg.arg = counters;
2420 isc_statsformat_json, counters, NULL,
2425 json_object_put(counters);
2429 if (json_object_get_object(counters)->count != 0)
2430 json_object_object_add(bindstats, "resstats", counters);
2432 json_object_put(counters);
2435 /* dnstap stat counters */
2439 counters = json_object_new_object();
2441 dumparg.arg = counters;
2443 isc_statsformat_json, counters,
2450 json_object_put(counters);
2454 if (json_object_get_object(counters)->count != 0)
2457 counters);
2459 json_object_put(counters);
2504 counters = json_object_new_object();
2505 CHECKMEM(counters);
2509 counters, NULL,
2515 json_object_put(counters);
2521 counters);
2526 counters = json_object_new_object();
2527 CHECKMEM(counters);
2529 dumparg.arg = counters;
2535 json_object_put(counters);
2541 counters);
2546 counters = json_object_new_object();
2547 CHECKMEM(counters);
2549 dumparg.arg = counters;
2555 json_object_put(counters);
2562 counters);
2565 counters = json_object_new_object();
2566 CHECKMEM(counters);
2569 counters);
2571 json_object_put(counters);
2576 counters);
2580 counters = json_object_new_object();
2581 CHECKMEM(counters);
2585 counters, NULL,
2591 json_object_put(counters);
2597 counters);
2606 /* socket stat counters */
2608 counters = json_object_new_object();
2611 dumparg.arg = counters;
2614 isc_statsformat_json, counters,
2619 json_object_put(counters);
2623 if (json_object_get_object(counters)->count != 0)
2625 counters);
2627 json_object_put(counters);