How to use writeData method in wpt

Best JavaScript code snippet using wpt

contentTelegrafPlugins.ts

Source:contentTelegrafPlugins.ts Github

copy

Full Screen

1// Constants2import {TELEGRAF_PLUGINS} from 'src/shared/constants/routes'3// Types4import {WriteDataItem, WriteDataSection} from 'src/writeData/constants'5// Markdown6import activemqMarkdown from 'src/writeData/components/telegrafPlugins/activemq.md'7import aerospikeMarkdown from 'src/writeData/components/telegrafPlugins/aerospike.md'8import aliyuncmsMarkdown from 'src/writeData/components/telegrafPlugins/aliyuncms.md'9import amqp_consumerMarkdown from 'src/writeData/components/telegrafPlugins/amqp_consumer.md'10import apacheMarkdown from 'src/writeData/components/telegrafPlugins/apache.md'11import apcupsdMarkdown from 'src/writeData/components/telegrafPlugins/apcupsd.md'12import auroraMarkdown from 'src/writeData/components/telegrafPlugins/aurora.md'13import azure_storage_queueMarkdown from 'src/writeData/components/telegrafPlugins/azure_storage_queue.md'14import bcacheMarkdown from 'src/writeData/components/telegrafPlugins/bcache.md'15import beanstalkdMarkdown from 'src/writeData/components/telegrafPlugins/beanstalkd.md'16import beatMarkdown from 'src/writeData/components/telegrafPlugins/beat.md'17import bindMarkdown from 'src/writeData/components/telegrafPlugins/bind.md'18import bondMarkdown from 'src/writeData/components/telegrafPlugins/bond.md'19import burrowMarkdown from 'src/writeData/components/telegrafPlugins/burrow.md'20import cassandraMarkdown from 'src/writeData/components/telegrafPlugins/cassandra.md'21import cephMarkdown from 'src/writeData/components/telegrafPlugins/ceph.md'22import cgroupMarkdown from 'src/writeData/components/telegrafPlugins/cgroup.md'23import chronyMarkdown from 'src/writeData/components/telegrafPlugins/chrony.md'24import cisco_telemetry_mdtMarkdown from 'src/writeData/components/telegrafPlugins/cisco_telemetry_mdt.md'25import clickhouseMarkdown from 'src/writeData/components/telegrafPlugins/clickhouse.md'26import cloud_pubsub_pushMarkdown from 'src/writeData/components/telegrafPlugins/cloud_pubsub_push.md'27import cloud_pubsubMarkdown from 'src/writeData/components/telegrafPlugins/cloud_pubsub.md'28import cloudwatchMarkdown from 'src/writeData/components/telegrafPlugins/cloudwatch.md'29import conntrackMarkdown from 'src/writeData/components/telegrafPlugins/conntrack.md'30import consulMarkdown from 'src/writeData/components/telegrafPlugins/consul.md'31import couchbaseMarkdown from 'src/writeData/components/telegrafPlugins/couchbase.md'32import couchdbMarkdown from 'src/writeData/components/telegrafPlugins/couchdb.md'33import cpuMarkdown from 'src/writeData/components/telegrafPlugins/cpu.md'34import csgoMarkdown from 'src/writeData/components/telegrafPlugins/csgo.md'35import dcosMarkdown from 'src/writeData/components/telegrafPlugins/dcos.md'36import directory_monitorMarkdown from 'src/writeData/components/telegrafPlugins/directory_monitor.md'37import diskioMarkdown from 'src/writeData/components/telegrafPlugins/diskio.md'38import diskMarkdown from 'src/writeData/components/telegrafPlugins/disk.md'39import disqueMarkdown from 'src/writeData/components/telegrafPlugins/disque.md'40import dmcacheMarkdown from 'src/writeData/components/telegrafPlugins/dmcache.md'41import dns_queryMarkdown from 'src/writeData/components/telegrafPlugins/dns_query.md'42import docker_logMarkdown from 'src/writeData/components/telegrafPlugins/docker_log.md'43import dockerMarkdown from 'src/writeData/components/telegrafPlugins/docker.md'44import dovecotMarkdown from 'src/writeData/components/telegrafPlugins/dovecot.md'45import ecsMarkdown from 'src/writeData/components/telegrafPlugins/ecs.md'46import elasticsearchMarkdown from 'src/writeData/components/telegrafPlugins/elasticsearch.md'47import ethtoolMarkdown from 'src/writeData/components/telegrafPlugins/ethtool.md'48import eventhub_consumerMarkdown from 'src/writeData/components/telegrafPlugins/eventhub_consumer.md'49import execdMarkdown from 'src/writeData/components/telegrafPlugins/execd.md'50import execMarkdown from 'src/writeData/components/telegrafPlugins/exec.md'51import fail2banMarkdown from 'src/writeData/components/telegrafPlugins/fail2ban.md'52import fibaroMarkdown from 'src/writeData/components/telegrafPlugins/fibaro.md'53import filecountMarkdown from 'src/writeData/components/telegrafPlugins/filecount.md'54import fileMarkdown from 'src/writeData/components/telegrafPlugins/file.md'55import filestatMarkdown from 'src/writeData/components/telegrafPlugins/filestat.md'56import fireboardMarkdown from 'src/writeData/components/telegrafPlugins/fireboard.md'57import fluentdMarkdown from 'src/writeData/components/telegrafPlugins/fluentd.md'58import githubMarkdown from 'src/writeData/components/telegrafPlugins/github.md'59import gnmiMarkdown from 'src/writeData/components/telegrafPlugins/gnmi.md'60import graylogMarkdown from 'src/writeData/components/telegrafPlugins/graylog.md'61import haproxyMarkdown from 'src/writeData/components/telegrafPlugins/haproxy.md'62import hddtempMarkdown from 'src/writeData/components/telegrafPlugins/hddtemp.md'63import http_listener_v2Markdown from 'src/writeData/components/telegrafPlugins/http_listener_v2.md'64import http_responseMarkdown from 'src/writeData/components/telegrafPlugins/http_response.md'65import httpjsonMarkdown from 'src/writeData/components/telegrafPlugins/httpjson.md'66import httpMarkdown from 'src/writeData/components/telegrafPlugins/http.md'67import icinga2Markdown from 'src/writeData/components/telegrafPlugins/icinga2.md'68import infinibandMarkdown from 'src/writeData/components/telegrafPlugins/infiniband.md'69import influxdb_listenerMarkdown from 'src/writeData/components/telegrafPlugins/influxdb_listener.md'70import influxdb_v2_listenerMarkdown from 'src/writeData/components/telegrafPlugins/influxdb_v2_listener.md'71import intel_powerstatMarkdown from 'src/writeData/components/telegrafPlugins/intel_powerstat.md'72import intel_rdtMarkdown from 'src/writeData/components/telegrafPlugins/intel_rdt.md'73import influxdbMarkdown from 'src/writeData/components/telegrafPlugins/influxdb.md'74import internalMarkdown from 'src/writeData/components/telegrafPlugins/internal.md'75import interruptsMarkdown from 'src/writeData/components/telegrafPlugins/interrupts.md'76import ipmi_sensorMarkdown from 'src/writeData/components/telegrafPlugins/ipmi_sensor.md'77import ipsetMarkdown from 'src/writeData/components/telegrafPlugins/ipset.md'78import iptablesMarkdown from 'src/writeData/components/telegrafPlugins/iptables.md'79import ipvsMarkdown from 'src/writeData/components/telegrafPlugins/ipvs.md'80import jenkinsMarkdown from 'src/writeData/components/telegrafPlugins/jenkins.md'81import jolokia2Markdown from 'src/writeData/components/telegrafPlugins/jolokia2.md'82import jolokiaMarkdown from 'src/writeData/components/telegrafPlugins/jolokia.md'83import jti_openconfig_telemetryMarkdown from 'src/writeData/components/telegrafPlugins/jti_openconfig_telemetry.md'84import kafka_consumer_legacyMarkdown from 'src/writeData/components/telegrafPlugins/kafka_consumer_legacy.md'85import kafka_consumerMarkdown from 'src/writeData/components/telegrafPlugins/kafka_consumer.md'86import kapacitorMarkdown from 'src/writeData/components/telegrafPlugins/kapacitor.md'87import kernel_vmstatMarkdown from 'src/writeData/components/telegrafPlugins/kernel_vmstat.md'88import kernelMarkdown from 'src/writeData/components/telegrafPlugins/kernel.md'89import kibanaMarkdown from 'src/writeData/components/telegrafPlugins/kibana.md'90import kinesis_consumerMarkdown from 'src/writeData/components/telegrafPlugins/kinesis_consumer.md'91import kube_inventoryMarkdown from 'src/writeData/components/telegrafPlugins/kube_inventory.md'92import kubernetesMarkdown from 'src/writeData/components/telegrafPlugins/kubernetes.md'93import lanzMarkdown from 'src/writeData/components/telegrafPlugins/lanz.md'94import leofsMarkdown from 'src/writeData/components/telegrafPlugins/leofs.md'95import linux_sysctl_fsMarkdown from 'src/writeData/components/telegrafPlugins/linux_sysctl_fs.md'96import logparserMarkdown from 'src/writeData/components/telegrafPlugins/logparser.md'97import logstashMarkdown from 'src/writeData/components/telegrafPlugins/logstash.md'98import lustre2Markdown from 'src/writeData/components/telegrafPlugins/lustre2.md'99import mailchimpMarkdown from 'src/writeData/components/telegrafPlugins/mailchimp.md'100import marklogicMarkdown from 'src/writeData/components/telegrafPlugins/marklogic.md'101import mcrouterMarkdown from 'src/writeData/components/telegrafPlugins/mcrouter.md'102import memcachedMarkdown from 'src/writeData/components/telegrafPlugins/memcached.md'103import memMarkdown from 'src/writeData/components/telegrafPlugins/mem.md'104import mesosMarkdown from 'src/writeData/components/telegrafPlugins/mesos.md'105import minecraftMarkdown from 'src/writeData/components/telegrafPlugins/minecraft.md'106import modbusMarkdown from 'src/writeData/components/telegrafPlugins/modbus.md'107import mongodbMarkdown from 'src/writeData/components/telegrafPlugins/mongodb.md'108import monitMarkdown from 'src/writeData/components/telegrafPlugins/monit.md'109import mqtt_consumerMarkdown from 'src/writeData/components/telegrafPlugins/mqtt_consumer.md'110import multifileMarkdown from 'src/writeData/components/telegrafPlugins/multifile.md'111import mysqlMarkdown from 'src/writeData/components/telegrafPlugins/mysql.md'112import nats_consumerMarkdown from 'src/writeData/components/telegrafPlugins/nats_consumer.md'113import natsMarkdown from 'src/writeData/components/telegrafPlugins/nats.md'114import neptune_apexMarkdown from 'src/writeData/components/telegrafPlugins/neptune_apex.md'115import net_responseMarkdown from 'src/writeData/components/telegrafPlugins/net_response.md'116import nfsclientMarkdown from 'src/writeData/components/telegrafPlugins/nfsclient.md'117import nginx_plus_apiMarkdown from 'src/writeData/components/telegrafPlugins/nginx_plus_api.md'118import nginx_plusMarkdown from 'src/writeData/components/telegrafPlugins/nginx_plus.md'119import nginx_stsMarkdown from 'src/writeData/components/telegrafPlugins/nginx_sts.md'120import nginx_upstream_checkMarkdown from 'src/writeData/components/telegrafPlugins/nginx_upstream_check.md'121import nginx_vtsMarkdown from 'src/writeData/components/telegrafPlugins/nginx_vts.md'122import nsdMarkdown from 'src/writeData/components/telegrafPlugins/nsd.md'123import nginxMarkdown from 'src/writeData/components/telegrafPlugins/nginx.md'124import nsq_consumerMarkdown from 'src/writeData/components/telegrafPlugins/nsq_consumer.md'125import nsqMarkdown from 'src/writeData/components/telegrafPlugins/nsq.md'126import nstatMarkdown from 'src/writeData/components/telegrafPlugins/nstat.md'127import ntpqMarkdown from 'src/writeData/components/telegrafPlugins/ntpq.md'128import nvidia_smiMarkdown from 'src/writeData/components/telegrafPlugins/nvidia_smi.md'129import opcuaMarkdown from 'src/writeData/components/telegrafPlugins/opcua.md'130import openldapMarkdown from 'src/writeData/components/telegrafPlugins/openldap.md'131import openntpdMarkdown from 'src/writeData/components/telegrafPlugins/openntpd.md'132import opensmtpdMarkdown from 'src/writeData/components/telegrafPlugins/opensmtpd.md'133import openweathermapMarkdown from 'src/writeData/components/telegrafPlugins/openweathermap.md'134import passengerMarkdown from 'src/writeData/components/telegrafPlugins/passenger.md'135import pfMarkdown from 'src/writeData/components/telegrafPlugins/pf.md'136import pgbouncerMarkdown from 'src/writeData/components/telegrafPlugins/pgbouncer.md'137import phpfpmMarkdown from 'src/writeData/components/telegrafPlugins/phpfpm.md'138import pingMarkdown from 'src/writeData/components/telegrafPlugins/ping.md'139import postfixMarkdown from 'src/writeData/components/telegrafPlugins/postfix.md'140import postgresql_extensibleMarkdown from 'src/writeData/components/telegrafPlugins/postgresql_extensible.md'141import postgresqlMarkdown from 'src/writeData/components/telegrafPlugins/postgresql.md'142import powerdns_recursorMarkdown from 'src/writeData/components/telegrafPlugins/powerdns_recursor.md'143import powerdnsMarkdown from 'src/writeData/components/telegrafPlugins/powerdns.md'144import processesMarkdown from 'src/writeData/components/telegrafPlugins/processes.md'145import procstatMarkdown from 'src/writeData/components/telegrafPlugins/procstat.md'146import prometheusMarkdown from 'src/writeData/components/telegrafPlugins/prometheus.md'147import proxmoxMarkdown from 'src/writeData/components/telegrafPlugins/proxmox.md'148import puppetagentMarkdown from 'src/writeData/components/telegrafPlugins/puppetagent.md'149import rabbitmqMarkdown from 'src/writeData/components/telegrafPlugins/rabbitmq.md'150import raindropsMarkdown from 'src/writeData/components/telegrafPlugins/raindrops.md'151import rasMarkdown from 'src/writeData/components/telegrafPlugins/ras.md'152import ravendbMarkdown from 'src/writeData/components/telegrafPlugins/ravendb.md'153import redfishMarkdown from 'src/writeData/components/telegrafPlugins/redfish.md'154import redisMarkdown from 'src/writeData/components/telegrafPlugins/redis.md'155import rethinkdbMarkdown from 'src/writeData/components/telegrafPlugins/rethinkdb.md'156import riakMarkdown from 'src/writeData/components/telegrafPlugins/riak.md'157import riemann_listenerMarkdown from 'src/writeData/components/telegrafPlugins/riemann_listener.md'158import salesforceMarkdown from 'src/writeData/components/telegrafPlugins/salesforce.md'159import sensorsMarkdown from 'src/writeData/components/telegrafPlugins/sensors.md'160import sflowMarkdown from 'src/writeData/components/telegrafPlugins/sflow.md'161import smartMarkdown from 'src/writeData/components/telegrafPlugins/smart.md'162import snmp_legacyMarkdown from 'src/writeData/components/telegrafPlugins/snmp_legacy.md'163import snmp_trapMarkdown from 'src/writeData/components/telegrafPlugins/snmp_trap.md'164import snmpMarkdown from 'src/writeData/components/telegrafPlugins/snmp.md'165import socket_listenerMarkdown from 'src/writeData/components/telegrafPlugins/socket_listener.md'166import solrMarkdown from 'src/writeData/components/telegrafPlugins/solr.md'167import sqlserverMarkdown from 'src/writeData/components/telegrafPlugins/sqlserver.md'168import stackdriverMarkdown from 'src/writeData/components/telegrafPlugins/stackdriver.md'169import statsdMarkdown from 'src/writeData/components/telegrafPlugins/statsd.md'170import suricataMarkdown from 'src/writeData/components/telegrafPlugins/suricata.md'171import swapMarkdown from 'src/writeData/components/telegrafPlugins/swap.md'172import synproxyMarkdown from 'src/writeData/components/telegrafPlugins/synproxy.md'173import syslogMarkdown from 'src/writeData/components/telegrafPlugins/syslog.md'174import sysstatMarkdown from 'src/writeData/components/telegrafPlugins/sysstat.md'175import systemd_unitsMarkdown from 'src/writeData/components/telegrafPlugins/systemd_units.md'176import systemMarkdown from 'src/writeData/components/telegrafPlugins/system.md'177import tailMarkdown from 'src/writeData/components/telegrafPlugins/tail.md'178import tcp_listenerMarkdown from 'src/writeData/components/telegrafPlugins/tcp_listener.md'179import teamspeakMarkdown from 'src/writeData/components/telegrafPlugins/teamspeak.md'180import tempMarkdown from 'src/writeData/components/telegrafPlugins/temp.md'181import tengineMarkdown from 'src/writeData/components/telegrafPlugins/tengine.md'182import tomcatMarkdown from 'src/writeData/components/telegrafPlugins/tomcat.md'183import udp_listenerMarkdown from 'src/writeData/components/telegrafPlugins/udp_listener.md'184import unboundMarkdown from 'src/writeData/components/telegrafPlugins/unbound.md'185import uwsgiMarkdown from 'src/writeData/components/telegrafPlugins/uwsgi.md'186import varnishMarkdown from 'src/writeData/components/telegrafPlugins/varnish.md'187import vsphereMarkdown from 'src/writeData/components/telegrafPlugins/vsphere.md'188import webhooksMarkdown from 'src/writeData/components/telegrafPlugins/webhooks.md'189import win_eventlogMarkdown from 'src/writeData/components/telegrafPlugins/win_eventlog.md'190import win_perf_countersMarkdown from 'src/writeData/components/telegrafPlugins/win_perf_counters.md'191import win_servicesMarkdown from 'src/writeData/components/telegrafPlugins/win_services.md'192import wireguardMarkdown from 'src/writeData/components/telegrafPlugins/wireguard.md'193import wirelessMarkdown from 'src/writeData/components/telegrafPlugins/wireless.md'194import x509_certMarkdown from 'src/writeData/components/telegrafPlugins/x509_cert.md'195import zfsMarkdown from 'src/writeData/components/telegrafPlugins/zfs.md'196import zipkinMarkdown from 'src/writeData/components/telegrafPlugins/zipkin.md'197import zookeeperMarkdown from 'src/writeData/components/telegrafPlugins/zookeeper.md'198// Graphics199import activemqLogo from 'src/writeData/graphics/activemq.svg'200import aerospikeLogo from 'src/writeData/graphics/aerospike.svg'201import aliyuncmsLogo from 'src/writeData/graphics/aliyuncms.svg'202import amqp_consumerLogo from 'src/writeData/graphics/amqp_consumer.svg'203import apacheLogo from 'src/writeData/graphics/apache.svg'204import apcupsdLogo from 'src/writeData/graphics/apcupsd.svg'205import auroraLogo from 'src/writeData/graphics/aurora.svg'206import azure_storage_queueLogo from 'src/writeData/graphics/azure_storage_queue.svg'207import bcacheLogo from 'src/writeData/graphics/bcache.svg'208import beanstalkdLogo from 'src/writeData/graphics/beanstalkd.svg'209import beatLogo from 'src/writeData/graphics/beat.svg'210import bindLogo from 'src/writeData/graphics/bind.svg'211import bondLogo from 'src/writeData/graphics/bond.svg'212import burrowLogo from 'src/writeData/graphics/burrow.svg'213import cassandraLogo from 'src/writeData/graphics/cassandra.svg'214import cephLogo from 'src/writeData/graphics/ceph.svg'215import cgroupLogo from 'src/writeData/graphics/cgroup.svg'216import chronyLogo from 'src/writeData/graphics/chrony.svg'217import cisco_telemetry_mdtLogo from 'src/writeData/graphics/cisco_telemetry_mdt.svg'218import clickhouseLogo from 'src/writeData/graphics/clickhouse.svg'219import cloud_pubsub_pushLogo from 'src/writeData/graphics/cloud_pubsub_push.svg'220import cloud_pubsubLogo from 'src/writeData/graphics/cloud_pubsub.svg'221import cloudwatchLogo from 'src/writeData/graphics/cloudwatch.svg'222import conntrackLogo from 'src/writeData/graphics/conntrack.svg'223import consulLogo from 'src/writeData/graphics/consul.svg'224import couchbaseLogo from 'src/writeData/graphics/couchbase.svg'225import couchdbLogo from 'src/writeData/graphics/couchdb.svg'226import cpuLogo from 'src/writeData/graphics/cpu.svg'227import csgoLogo from 'src/writeData/graphics/csgo.svg'228import dcosLogo from 'src/writeData/graphics/dcos.svg'229import directory_monitorLogo from 'src/writeData/graphics/directory_monitor.svg'230import diskioLogo from 'src/writeData/graphics/diskio.svg'231import diskLogo from 'src/writeData/graphics/disk.svg'232import disqueLogo from 'src/writeData/graphics/disque.svg'233import dmcacheLogo from 'src/writeData/graphics/dmcache.svg'234import dns_queryLogo from 'src/writeData/graphics/dns_query.svg'235import docker_logLogo from 'src/writeData/graphics/docker_log.svg'236import dockerLogo from 'src/writeData/graphics/docker.svg'237import dovecotLogo from 'src/writeData/graphics/dovecot.svg'238import ecsLogo from 'src/writeData/graphics/ecs.svg'239import elasticsearchLogo from 'src/writeData/graphics/elasticsearch.svg'240import ethtoolLogo from 'src/writeData/graphics/ethtool.svg'241import eventhub_consumerLogo from 'src/writeData/graphics/eventhub_consumer.svg'242import execdLogo from 'src/writeData/graphics/execd.svg'243import execLogo from 'src/writeData/graphics/exec.svg'244import fail2banLogo from 'src/writeData/graphics/fail2ban.svg'245import fibaroLogo from 'src/writeData/graphics/fibaro.svg'246import filecountLogo from 'src/writeData/graphics/filecount.svg'247import fileLogo from 'src/writeData/graphics/file.svg'248import filestatLogo from 'src/writeData/graphics/filestat.svg'249import fireboardLogo from 'src/writeData/graphics/fireboard.svg'250import fluentdLogo from 'src/writeData/graphics/fluentd.svg'251import githubLogo from 'src/writeData/graphics/github.svg'252import gnmiLogo from 'src/writeData/graphics/gnmi.svg'253import graylogLogo from 'src/writeData/graphics/graylog.svg'254import haproxyLogo from 'src/writeData/graphics/haproxy.svg'255import hddtempLogo from 'src/writeData/graphics/hddtemp.svg'256import http_listener_v2Logo from 'src/writeData/graphics/http_listener_v2.svg'257import http_responseLogo from 'src/writeData/graphics/http_response.svg'258import httpjsonLogo from 'src/writeData/graphics/httpjson.svg'259import httpLogo from 'src/writeData/graphics/http.svg'260import icinga2Logo from 'src/writeData/graphics/icinga2.svg'261import infinibandLogo from 'src/writeData/graphics/infiniband.svg'262import influxdb_listenerLogo from 'src/writeData/graphics/influxdb_listener.svg'263import influxdb_v2_listenerLogo from 'src/writeData/graphics/influxdb_v2_listener.svg'264import intel_powerstatLogo from 'src/writeData/graphics/intel_powerstat.svg'265import intel_rdtLogo from 'src/writeData/graphics/intel_rdt.svg'266import influxdbLogo from 'src/writeData/graphics/influxdb.svg'267import internalLogo from 'src/writeData/graphics/internal.svg'268import interruptsLogo from 'src/writeData/graphics/interrupts.svg'269import ipmi_sensorLogo from 'src/writeData/graphics/ipmi_sensor.svg'270import ipsetLogo from 'src/writeData/graphics/ipset.svg'271import iptablesLogo from 'src/writeData/graphics/iptables.svg'272import ipvsLogo from 'src/writeData/graphics/ipvs.svg'273import jenkinsLogo from 'src/writeData/graphics/jenkins.svg'274import jolokia2Logo from 'src/writeData/graphics/jolokia2.svg'275import jolokiaLogo from 'src/writeData/graphics/jolokia.svg'276import jti_openconfig_telemetryLogo from 'src/writeData/graphics/jti_openconfig_telemetry.svg'277import kafka_consumer_legacyLogo from 'src/writeData/graphics/kafka_consumer_legacy.svg'278import kafka_consumerLogo from 'src/writeData/graphics/kafka_consumer.svg'279import kapacitorLogo from 'src/writeData/graphics/kapacitor.svg'280import kernel_vmstatLogo from 'src/writeData/graphics/kernel_vmstat.svg'281import kernelLogo from 'src/writeData/graphics/kernel.svg'282import kibanaLogo from 'src/writeData/graphics/kibana.svg'283import kinesis_consumerLogo from 'src/writeData/graphics/kinesis_consumer.svg'284import kube_inventoryLogo from 'src/writeData/graphics/kube_inventory.svg'285import kubernetesLogo from 'src/writeData/graphics/kubernetes.svg'286import lanzLogo from 'src/writeData/graphics/lanz.svg'287import leofsLogo from 'src/writeData/graphics/leofs.svg'288import linux_sysctl_fsLogo from 'src/writeData/graphics/linux_sysctl_fs.svg'289import logparserLogo from 'src/writeData/graphics/logparser.svg'290import logstashLogo from 'src/writeData/graphics/logstash.svg'291import lustre2Logo from 'src/writeData/graphics/lustre2.svg'292import mailchimpLogo from 'src/writeData/graphics/mailchimp.svg'293import marklogicLogo from 'src/writeData/graphics/marklogic.svg'294import mcrouterLogo from 'src/writeData/graphics/mcrouter.svg'295import memcachedLogo from 'src/writeData/graphics/memcached.svg'296import memLogo from 'src/writeData/graphics/mem.svg'297import mesosLogo from 'src/writeData/graphics/mesos.svg'298import minecraftLogo from 'src/writeData/graphics/minecraft.svg'299import modbusLogo from 'src/writeData/graphics/modbus.svg'300import mongodbLogo from 'src/writeData/graphics/mongodb.svg'301import monitLogo from 'src/writeData/graphics/monit.svg'302import mqtt_consumerLogo from 'src/writeData/graphics/mqtt_consumer.svg'303import multifileLogo from 'src/writeData/graphics/multifile.svg'304import mysqlLogo from 'src/writeData/graphics/mysql.svg'305import nats_consumerLogo from 'src/writeData/graphics/nats_consumer.svg'306import natsLogo from 'src/writeData/graphics/nats.svg'307import neptune_apexLogo from 'src/writeData/graphics/neptune_apex.svg'308import net_responseLogo from 'src/writeData/graphics/net_response.svg'309import nfsclientLogo from 'src/writeData/graphics/nfsclient.svg'310import nginx_plus_apiLogo from 'src/writeData/graphics/nginx_plus_api.svg'311import nginx_plusLogo from 'src/writeData/graphics/nginx_plus.svg'312import nginx_stsLogo from 'src/writeData/graphics/nginx_sts.svg'313import nginx_upstream_checkLogo from 'src/writeData/graphics/nginx_upstream_check.svg'314import nginx_vtsLogo from 'src/writeData/graphics/nginx_vts.svg'315import nsdLogo from 'src/writeData/graphics/nsd.svg'316import nginxLogo from 'src/writeData/graphics/nginx.svg'317import nsq_consumerLogo from 'src/writeData/graphics/nsq_consumer.svg'318import nsqLogo from 'src/writeData/graphics/nsq.svg'319import nstatLogo from 'src/writeData/graphics/nstat.svg'320import ntpqLogo from 'src/writeData/graphics/ntpq.svg'321import nvidia_smiLogo from 'src/writeData/graphics/nvidia_smi.svg'322import opcuaLogo from 'src/writeData/graphics/opcua.svg'323import openldapLogo from 'src/writeData/graphics/openldap.svg'324import openntpdLogo from 'src/writeData/graphics/openntpd.svg'325import opensmtpdLogo from 'src/writeData/graphics/opensmtpd.svg'326import openweathermapLogo from 'src/writeData/graphics/openweathermap.svg'327import passengerLogo from 'src/writeData/graphics/passenger.svg'328import pfLogo from 'src/writeData/graphics/pf.svg'329import pgbouncerLogo from 'src/writeData/graphics/pgbouncer.svg'330import phpfpmLogo from 'src/writeData/graphics/phpfpm.svg'331import pingLogo from 'src/writeData/graphics/ping.svg'332import postfixLogo from 'src/writeData/graphics/postfix.svg'333import postgresql_extensibleLogo from 'src/writeData/graphics/postgresql_extensible.svg'334import postgresqlLogo from 'src/writeData/graphics/postgresql.svg'335import powerdns_recursorLogo from 'src/writeData/graphics/powerdns_recursor.svg'336import powerdnsLogo from 'src/writeData/graphics/powerdns.svg'337import processesLogo from 'src/writeData/graphics/processes.svg'338import procstatLogo from 'src/writeData/graphics/procstat.svg'339import prometheusLogo from 'src/writeData/graphics/prometheus.svg'340import proxmoxLogo from 'src/writeData/graphics/proxmox.svg'341import puppetagentLogo from 'src/writeData/graphics/puppetagent.svg'342import rabbitmqLogo from 'src/writeData/graphics/rabbitmq.svg'343import raindropsLogo from 'src/writeData/graphics/raindrops.svg'344import rasLogo from 'src/writeData/graphics/ras.svg'345import ravendbLogo from 'src/writeData/graphics/ravendb.svg'346import redfishLogo from 'src/writeData/graphics/redfish.svg'347import redisLogo from 'src/writeData/graphics/redis.svg'348import rethinkdbLogo from 'src/writeData/graphics/rethinkdb.svg'349import riakLogo from 'src/writeData/graphics/riak.svg'350import riemann_listenerLogo from 'src/writeData/graphics/riemann_listener.svg'351import salesforceLogo from 'src/writeData/graphics/salesforce.svg'352import sensorsLogo from 'src/writeData/graphics/sensors.svg'353import sflowLogo from 'src/writeData/graphics/sflow.svg'354import smartLogo from 'src/writeData/graphics/smart.svg'355import snmp_legacyLogo from 'src/writeData/graphics/snmp_legacy.svg'356import snmp_trapLogo from 'src/writeData/graphics/snmp_trap.svg'357import snmpLogo from 'src/writeData/graphics/snmp.svg'358import socket_listenerLogo from 'src/writeData/graphics/socket_listener.svg'359import solrLogo from 'src/writeData/graphics/solr.svg'360import sqlserverLogo from 'src/writeData/graphics/sqlserver.svg'361import stackdriverLogo from 'src/writeData/graphics/stackdriver.svg'362import statsdLogo from 'src/writeData/graphics/statsd.svg'363import suricataLogo from 'src/writeData/graphics/suricata.svg'364import swapLogo from 'src/writeData/graphics/swap.svg'365import synproxyLogo from 'src/writeData/graphics/synproxy.svg'366import syslogLogo from 'src/writeData/graphics/syslog.svg'367import sysstatLogo from 'src/writeData/graphics/sysstat.svg'368import systemd_unitsLogo from 'src/writeData/graphics/systemd_units.svg'369import systemLogo from 'src/writeData/graphics/system.svg'370import tailLogo from 'src/writeData/graphics/tail.svg'371import tcp_listenerLogo from 'src/writeData/graphics/tcp_listener.svg'372import teamspeakLogo from 'src/writeData/graphics/teamspeak.svg'373import tempLogo from 'src/writeData/graphics/temp.svg'374import tengineLogo from 'src/writeData/graphics/tengine.svg'375import tomcatLogo from 'src/writeData/graphics/tomcat.svg'376import udp_listenerLogo from 'src/writeData/graphics/udp_listener.svg'377import unboundLogo from 'src/writeData/graphics/unbound.svg'378import uwsgiLogo from 'src/writeData/graphics/uwsgi.svg'379import varnishLogo from 'src/writeData/graphics/varnish.svg'380import vsphereLogo from 'src/writeData/graphics/vsphere.svg'381import webhooksLogo from 'src/writeData/graphics/webhooks.svg'382import win_eventlogLogo from 'src/writeData/graphics/win_eventlog.svg'383import win_perf_countersLogo from 'src/writeData/graphics/win_perf_counters.svg'384import win_servicesLogo from 'src/writeData/graphics/win_services.svg'385import wireguardLogo from 'src/writeData/graphics/wireguard.svg'386import wirelessLogo from 'src/writeData/graphics/wireless.svg'387import x509_certLogo from 'src/writeData/graphics/x509_cert.svg'388import zfsLogo from 'src/writeData/graphics/zfs.svg'389import zipkinLogo from 'src/writeData/graphics/zipkin.svg'390import zookeeperLogo from 'src/writeData/graphics/zookeeper.svg'391export const WRITE_DATA_TELEGRAF_PLUGINS: WriteDataItem[] = [392 {393 id: 'activemq',394 name: 'ActiveMQ',395 url: `${TELEGRAF_PLUGINS}/activemq`,396 markdown: activemqMarkdown,397 image: activemqLogo,398 },399 {400 id: 'aerospike',401 name: 'Aerospike',402 url: `${TELEGRAF_PLUGINS}/aerospike`,403 markdown: aerospikeMarkdown,404 image: aerospikeLogo,405 },406 {407 id: 'aliyuncms',408 name: 'Alibaba (aka Aliyun) CloudMonitor Service Statistics Input',409 url: `${TELEGRAF_PLUGINS}/aliyuncms`,410 markdown: aliyuncmsMarkdown,411 image: aliyuncmsLogo,412 },413 {414 id: 'amqp_consumer',415 name: 'AMQP Consumer',416 url: `${TELEGRAF_PLUGINS}/amqp_consumer`,417 markdown: amqp_consumerMarkdown,418 image: amqp_consumerLogo,419 },420 {421 id: 'apache',422 name: 'Apache',423 url: `${TELEGRAF_PLUGINS}/apache`,424 markdown: apacheMarkdown,425 image: apacheLogo,426 },427 {428 id: 'apcupsd',429 name: 'APCUPSD',430 url: `${TELEGRAF_PLUGINS}/apcupsd`,431 markdown: apcupsdMarkdown,432 image: apcupsdLogo,433 },434 {435 id: 'aurora',436 name: 'Aurora',437 url: `${TELEGRAF_PLUGINS}/aurora`,438 markdown: auroraMarkdown,439 image: auroraLogo,440 },441 {442 id: 'azure_storage_queue',443 name: 'Azure Storage Queue',444 url: `${TELEGRAF_PLUGINS}/azure_storage_queue`,445 markdown: azure_storage_queueMarkdown,446 image: azure_storage_queueLogo,447 },448 {449 id: 'bcache',450 name: 'bcache',451 url: `${TELEGRAF_PLUGINS}/bcache`,452 markdown: bcacheMarkdown,453 image: bcacheLogo,454 },455 {456 id: 'beanstalkd',457 name: 'Beanstalkd',458 url: `${TELEGRAF_PLUGINS}/beanstalkd`,459 markdown: beanstalkdMarkdown,460 image: beanstalkdLogo,461 },462 {463 id: 'beat',464 name: 'Beat',465 url: `${TELEGRAF_PLUGINS}/beat`,466 markdown: beatMarkdown,467 image: beatLogo,468 },469 {470 id: 'bind',471 name: 'BIND 9 Nameserver Statistics',472 url: `${TELEGRAF_PLUGINS}/bind`,473 markdown: bindMarkdown,474 image: bindLogo,475 },476 {477 id: 'bond',478 name: 'Bond',479 url: `${TELEGRAF_PLUGINS}/bond`,480 markdown: bondMarkdown,481 image: bondLogo,482 },483 {484 id: 'burrow',485 name: 'Burrow Kafka Consumer Lag Checking',486 url: `${TELEGRAF_PLUGINS}/burrow`,487 markdown: burrowMarkdown,488 image: burrowLogo,489 },490 {491 id: 'cassandra',492 name: 'Cassandra',493 url: `${TELEGRAF_PLUGINS}/cassandra`,494 markdown: cassandraMarkdown,495 image: cassandraLogo,496 },497 {498 id: 'ceph',499 name: 'Ceph Storage',500 url: `${TELEGRAF_PLUGINS}/ceph`,501 markdown: cephMarkdown,502 image: cephLogo,503 },504 {505 id: 'cgroup',506 name: 'CGroup',507 url: `${TELEGRAF_PLUGINS}/cgroup`,508 markdown: cgroupMarkdown,509 image: cgroupLogo,510 },511 {512 id: 'chrony',513 name: 'chrony',514 url: `${TELEGRAF_PLUGINS}/chrony`,515 markdown: chronyMarkdown,516 image: chronyLogo,517 },518 {519 id: 'cisco_telemetry_mdt',520 name: 'Cisco Model-Driven Telemetry (MDT)',521 url: `${TELEGRAF_PLUGINS}/cisco_telemetry_mdt`,522 markdown: cisco_telemetry_mdtMarkdown,523 image: cisco_telemetry_mdtLogo,524 },525 {526 id: 'clickhouse',527 name: 'ClickHouse',528 url: `${TELEGRAF_PLUGINS}/clickhouse`,529 markdown: clickhouseMarkdown,530 image: clickhouseLogo,531 },532 {533 id: 'cloud_pubsub',534 name: 'Google Cloud PubSub',535 url: `${TELEGRAF_PLUGINS}/cloud_pubsub`,536 markdown: cloud_pubsubMarkdown,537 image: cloud_pubsubLogo,538 },539 {540 id: 'cloud_pubsub_push',541 name: 'Google Cloud PubSub Push',542 url: `${TELEGRAF_PLUGINS}/cloud_pubsub_push`,543 markdown: cloud_pubsub_pushMarkdown,544 image: cloud_pubsub_pushLogo,545 },546 {547 id: 'cloudwatch',548 name: 'Amazon CloudWatch Statistics',549 url: `${TELEGRAF_PLUGINS}/cloudwatch`,550 markdown: cloudwatchMarkdown,551 image: cloudwatchLogo,552 },553 {554 id: 'conntrack',555 name: 'Conntrack',556 url: `${TELEGRAF_PLUGINS}/conntrack`,557 markdown: conntrackMarkdown,558 image: conntrackLogo,559 },560 {561 id: 'consul',562 name: 'Consul',563 url: `${TELEGRAF_PLUGINS}/consul`,564 markdown: consulMarkdown,565 image: consulLogo,566 },567 {568 id: 'couchbase',569 name: 'Couchbase',570 url: `${TELEGRAF_PLUGINS}/couchbase`,571 markdown: couchbaseMarkdown,572 image: couchbaseLogo,573 },574 {575 id: 'couchdb',576 name: 'CouchDB',577 url: `${TELEGRAF_PLUGINS}/couchdb`,578 markdown: couchdbMarkdown,579 image: couchdbLogo,580 },581 {582 id: 'cpu',583 name: 'CPU',584 url: `${TELEGRAF_PLUGINS}/cpu`,585 markdown: cpuMarkdown,586 image: cpuLogo,587 },588 {589 id: 'csgo',590 name: 'Counter-Strike: Global Offensive (CSGO)',591 url: `${TELEGRAF_PLUGINS}/csgo`,592 markdown: csgoMarkdown,593 image: csgoLogo,594 },595 {596 id: 'dcos',597 name: 'DC/OS',598 url: `${TELEGRAF_PLUGINS}/dcos`,599 markdown: dcosMarkdown,600 image: dcosLogo,601 },602 {603 id: 'directory_monitor',604 name: 'Directory Monitor',605 url: `${TELEGRAF_PLUGINS}/directory_monitor`,606 markdown: directory_monitorMarkdown,607 image: directory_monitorLogo,608 },609 {610 id: 'disk',611 name: 'Disk',612 url: `${TELEGRAF_PLUGINS}/disk`,613 markdown: diskMarkdown,614 image: diskLogo,615 },616 {617 id: 'diskio',618 name: 'DiskIO',619 url: `${TELEGRAF_PLUGINS}/diskio`,620 markdown: diskioMarkdown,621 image: diskioLogo,622 },623 {624 id: 'disque',625 name: 'Disque',626 url: `${TELEGRAF_PLUGINS}/disque`,627 markdown: disqueMarkdown,628 image: disqueLogo,629 },630 {631 id: 'dmcache',632 name: 'DMCache',633 url: `${TELEGRAF_PLUGINS}/dmcache`,634 markdown: dmcacheMarkdown,635 image: dmcacheLogo,636 },637 {638 id: 'dns_query',639 name: 'DNS Query',640 url: `${TELEGRAF_PLUGINS}/dns_query`,641 markdown: dns_queryMarkdown,642 image: dns_queryLogo,643 },644 {645 id: 'docker',646 name: 'Docker',647 url: `${TELEGRAF_PLUGINS}/docker`,648 markdown: dockerMarkdown,649 image: dockerLogo,650 },651 {652 id: 'docker_log',653 name: 'Docker Log',654 url: `${TELEGRAF_PLUGINS}/docker_log`,655 markdown: docker_logMarkdown,656 image: docker_logLogo,657 },658 {659 id: 'dovecot',660 name: 'Dovecot',661 url: `${TELEGRAF_PLUGINS}/dovecot`,662 markdown: dovecotMarkdown,663 image: dovecotLogo,664 },665 {666 id: 'ecs',667 name: 'Amazon ECS',668 url: `${TELEGRAF_PLUGINS}/ecs`,669 markdown: ecsMarkdown,670 image: ecsLogo,671 },672 {673 id: 'elasticsearch',674 name: 'Elasticsearch',675 url: `${TELEGRAF_PLUGINS}/elasticsearch`,676 markdown: elasticsearchMarkdown,677 image: elasticsearchLogo,678 },679 {680 id: 'ethtool',681 name: 'Ethtool',682 url: `${TELEGRAF_PLUGINS}/ethtool`,683 markdown: ethtoolMarkdown,684 image: ethtoolLogo,685 },686 {687 id: 'eventhub_consumer',688 name: 'Event Hub Consumer',689 url: `${TELEGRAF_PLUGINS}/eventhub_consumer`,690 markdown: eventhub_consumerMarkdown,691 image: eventhub_consumerLogo,692 },693 {694 id: 'exec',695 name: 'Exec',696 url: `${TELEGRAF_PLUGINS}/exec`,697 markdown: execMarkdown,698 image: execLogo,699 },700 {701 id: 'execd',702 name: 'Execd',703 url: `${TELEGRAF_PLUGINS}/execd`,704 markdown: execdMarkdown,705 image: execdLogo,706 },707 {708 id: 'fail2ban',709 name: 'Fail2ban',710 url: `${TELEGRAF_PLUGINS}/fail2ban`,711 markdown: fail2banMarkdown,712 image: fail2banLogo,713 },714 {715 id: 'fibaro',716 name: 'Fibaro',717 url: `${TELEGRAF_PLUGINS}/fibaro`,718 markdown: fibaroMarkdown,719 image: fibaroLogo,720 },721 {722 id: 'file',723 name: 'File',724 url: `${TELEGRAF_PLUGINS}/file`,725 markdown: fileMarkdown,726 image: fileLogo,727 },728 {729 id: 'filecount',730 name: 'Filecount',731 url: `${TELEGRAF_PLUGINS}/filecount`,732 markdown: filecountMarkdown,733 image: filecountLogo,734 },735 {736 id: 'filestat',737 name: 'filestat',738 url: `${TELEGRAF_PLUGINS}/filestat`,739 markdown: filestatMarkdown,740 image: filestatLogo,741 },742 {743 id: 'fireboard',744 name: 'Fireboard',745 url: `${TELEGRAF_PLUGINS}/fireboard`,746 markdown: fireboardMarkdown,747 image: fireboardLogo,748 },749 {750 id: 'fluentd',751 name: 'Fluentd',752 url: `${TELEGRAF_PLUGINS}/fluentd`,753 markdown: fluentdMarkdown,754 image: fluentdLogo,755 },756 {757 id: 'github',758 name: 'GitHub',759 url: `${TELEGRAF_PLUGINS}/github`,760 markdown: githubMarkdown,761 image: githubLogo,762 },763 {764 id: 'gnmi',765 name: 'gNMI (gRPC Network Management Interface)',766 url: `${TELEGRAF_PLUGINS}/gnmi`,767 markdown: gnmiMarkdown,768 image: gnmiLogo,769 },770 {771 id: 'graylog',772 name: 'GrayLog',773 url: `${TELEGRAF_PLUGINS}/graylog`,774 markdown: graylogMarkdown,775 image: graylogLogo,776 },777 {778 id: 'haproxy',779 name: 'HAProxy',780 url: `${TELEGRAF_PLUGINS}/haproxy`,781 markdown: haproxyMarkdown,782 image: haproxyLogo,783 },784 {785 id: 'hddtemp',786 name: 'HDDtemp',787 url: `${TELEGRAF_PLUGINS}/hddtemp`,788 markdown: hddtempMarkdown,789 image: hddtempLogo,790 },791 {792 id: 'http',793 name: 'HTTP',794 url: `${TELEGRAF_PLUGINS}/http`,795 markdown: httpMarkdown,796 image: httpLogo,797 },798 {799 id: 'http_listener_v2',800 name: 'HTTP Listener v2',801 url: `${TELEGRAF_PLUGINS}/http_listener_v2`,802 markdown: http_listener_v2Markdown,803 image: http_listener_v2Logo,804 },805 {806 id: 'http_response',807 name: 'HTTP Response',808 url: `${TELEGRAF_PLUGINS}/http_response`,809 markdown: http_responseMarkdown,810 image: http_responseLogo,811 },812 {813 id: 'httpjson',814 name: 'HTTP JSON',815 url: `${TELEGRAF_PLUGINS}/httpjson`,816 markdown: httpjsonMarkdown,817 image: httpjsonLogo,818 },819 {820 id: 'icinga2',821 name: 'Icinga2',822 url: `${TELEGRAF_PLUGINS}/icinga2`,823 markdown: icinga2Markdown,824 image: icinga2Logo,825 },826 {827 id: 'infiniband',828 name: 'InfiniBand',829 url: `${TELEGRAF_PLUGINS}/infiniband`,830 markdown: infinibandMarkdown,831 image: infinibandLogo,832 },833 {834 id: 'influxdb',835 name: 'InfluxDB',836 url: `${TELEGRAF_PLUGINS}/influxdb`,837 markdown: influxdbMarkdown,838 image: influxdbLogo,839 },840 {841 id: 'influxdb_listener',842 name: 'InfluxDB Listener',843 url: `${TELEGRAF_PLUGINS}/influxdb_listener`,844 markdown: influxdb_listenerMarkdown,845 image: influxdb_listenerLogo,846 },847 {848 id: 'influxdb_v2_listener',849 name: 'InfluxDB V2 Listener',850 url: `${TELEGRAF_PLUGINS}/influxdb_v2_listener`,851 markdown: influxdb_v2_listenerMarkdown,852 image: influxdb_v2_listenerLogo,853 },854 {855 id: 'intel_powerstat',856 name: 'Intel PowerStat',857 url: `${TELEGRAF_PLUGINS}/intel_powerstat`,858 markdown: intel_powerstatMarkdown,859 image: intel_powerstatLogo,860 },861 {862 id: 'intel_rdt',863 name: 'Intel RDT',864 url: `${TELEGRAF_PLUGINS}/intel_rdt`,865 markdown: intel_rdtMarkdown,866 image: intel_rdtLogo,867 },868 {869 id: 'internal',870 name: 'Telegraf Internal',871 url: `${TELEGRAF_PLUGINS}/internal`,872 markdown: internalMarkdown,873 image: internalLogo,874 },875 {876 id: 'interrupts',877 name: 'Interrupts',878 url: `${TELEGRAF_PLUGINS}/interrupts`,879 markdown: interruptsMarkdown,880 image: interruptsLogo,881 },882 {883 id: 'ipmi_sensor',884 name: 'IPMI Sensor',885 url: `${TELEGRAF_PLUGINS}/ipmi_sensor`,886 markdown: ipmi_sensorMarkdown,887 image: ipmi_sensorLogo,888 },889 {890 id: 'ipset',891 name: 'Ipset',892 url: `${TELEGRAF_PLUGINS}/ipset`,893 markdown: ipsetMarkdown,894 image: ipsetLogo,895 },896 {897 id: 'iptables',898 name: 'Iptables',899 url: `${TELEGRAF_PLUGINS}/iptables`,900 markdown: iptablesMarkdown,901 image: iptablesLogo,902 },903 {904 id: 'ipvs',905 name: 'IPVS',906 url: `${TELEGRAF_PLUGINS}/ipvs`,907 markdown: ipvsMarkdown,908 image: ipvsLogo,909 },910 {911 id: 'jenkins',912 name: 'Jenkins',913 url: `${TELEGRAF_PLUGINS}/jenkins`,914 markdown: jenkinsMarkdown,915 image: jenkinsLogo,916 },917 {918 id: 'jolokia',919 name: 'Jolokia',920 url: `${TELEGRAF_PLUGINS}/jolokia`,921 markdown: jolokiaMarkdown,922 image: jolokiaLogo,923 },924 {925 id: 'jolokia2',926 name: 'Jolokia2',927 url: `${TELEGRAF_PLUGINS}/jolokia2`,928 markdown: jolokia2Markdown,929 image: jolokia2Logo,930 },931 {932 id: 'jti_openconfig_telemetry',933 name: 'JTI OpenConfig Telemetry',934 url: `${TELEGRAF_PLUGINS}/jti_openconfig_telemetry`,935 markdown: jti_openconfig_telemetryMarkdown,936 image: jti_openconfig_telemetryLogo,937 },938 {939 id: 'kafka_consumer',940 name: 'Kafka Consumer',941 url: `${TELEGRAF_PLUGINS}/kafka_consumer`,942 markdown: kafka_consumerMarkdown,943 image: kafka_consumerLogo,944 },945 {946 id: 'kafka_consumer_legacy',947 name: 'Kafka Consumer Legacy',948 url: `${TELEGRAF_PLUGINS}/kafka_consumer_legacy`,949 markdown: kafka_consumer_legacyMarkdown,950 image: kafka_consumer_legacyLogo,951 },952 {953 id: 'kapacitor',954 name: 'Kapacitor',955 url: `${TELEGRAF_PLUGINS}/kapacitor`,956 markdown: kapacitorMarkdown,957 image: kapacitorLogo,958 },959 {960 id: 'kernel',961 name: 'Kernel',962 url: `${TELEGRAF_PLUGINS}/kernel`,963 markdown: kernelMarkdown,964 image: kernelLogo,965 },966 {967 id: 'kernel_vmstat',968 name: 'Kernel VMStat',969 url: `${TELEGRAF_PLUGINS}/kernel_vmstat`,970 markdown: kernel_vmstatMarkdown,971 image: kernel_vmstatLogo,972 },973 {974 id: 'kibana',975 name: 'Kibana',976 url: `${TELEGRAF_PLUGINS}/kibana`,977 markdown: kibanaMarkdown,978 image: kibanaLogo,979 },980 {981 id: 'kinesis_consumer',982 name: 'Kinesis Consumer',983 url: `${TELEGRAF_PLUGINS}/kinesis_consumer`,984 markdown: kinesis_consumerMarkdown,985 image: kinesis_consumerLogo,986 },987 {988 id: 'kube_inventory',989 name: 'Kubernetes Inventory',990 url: `${TELEGRAF_PLUGINS}/kube_inventory`,991 markdown: kube_inventoryMarkdown,992 image: kube_inventoryLogo,993 },994 {995 id: 'kubernetes',996 name: 'Kubernetes',997 url: `${TELEGRAF_PLUGINS}/kubernetes`,998 markdown: kubernetesMarkdown,999 image: kubernetesLogo,1000 },1001 {1002 id: 'lanz',1003 name: 'Arista LANZ Consumer',1004 url: `${TELEGRAF_PLUGINS}/lanz`,1005 markdown: lanzMarkdown,1006 image: lanzLogo,1007 },1008 {1009 id: 'leofs',1010 name: 'LeoFS',1011 url: `${TELEGRAF_PLUGINS}/leofs`,1012 markdown: leofsMarkdown,1013 image: leofsLogo,1014 },1015 {1016 id: 'linux_sysctl_fs',1017 name: 'Linux Sysctl FS',1018 url: `${TELEGRAF_PLUGINS}/linux_sysctl_fs`,1019 markdown: linux_sysctl_fsMarkdown,1020 image: linux_sysctl_fsLogo,1021 },1022 {1023 id: 'logparser',1024 name: 'Logparser',1025 url: `${TELEGRAF_PLUGINS}/logparser`,1026 markdown: logparserMarkdown,1027 image: logparserLogo,1028 },1029 {1030 id: 'logstash',1031 name: 'Logstash',1032 url: `${TELEGRAF_PLUGINS}/logstash`,1033 markdown: logstashMarkdown,1034 image: logstashLogo,1035 },1036 {1037 id: 'lustre2',1038 name: 'Lustre',1039 url: `${TELEGRAF_PLUGINS}/lustre2`,1040 markdown: lustre2Markdown,1041 image: lustre2Logo,1042 },1043 {1044 id: 'mailchimp',1045 name: 'Mailchimp',1046 url: `${TELEGRAF_PLUGINS}/mailchimp`,1047 markdown: mailchimpMarkdown,1048 image: mailchimpLogo,1049 },1050 {1051 id: 'marklogic',1052 name: 'MarkLogic',1053 url: `${TELEGRAF_PLUGINS}/marklogic`,1054 markdown: marklogicMarkdown,1055 image: marklogicLogo,1056 },1057 {1058 id: 'mcrouter',1059 name: 'Mcrouter',1060 url: `${TELEGRAF_PLUGINS}/mcrouter`,1061 markdown: mcrouterMarkdown,1062 image: mcrouterLogo,1063 },1064 {1065 id: 'mem',1066 name: 'Memory',1067 url: `${TELEGRAF_PLUGINS}/mem`,1068 markdown: memMarkdown,1069 image: memLogo,1070 },1071 {1072 id: 'memcached',1073 name: 'Memcached',1074 url: `${TELEGRAF_PLUGINS}/memcached`,1075 markdown: memcachedMarkdown,1076 image: memcachedLogo,1077 },1078 {1079 id: 'mesos',1080 name: 'Mesos',1081 url: `${TELEGRAF_PLUGINS}/mesos`,1082 markdown: mesosMarkdown,1083 image: mesosLogo,1084 },1085 {1086 id: 'minecraft',1087 name: 'Minecraft',1088 url: `${TELEGRAF_PLUGINS}/minecraft`,1089 markdown: minecraftMarkdown,1090 image: minecraftLogo,1091 },1092 {1093 id: 'modbus',1094 name: 'Modbus',1095 url: `${TELEGRAF_PLUGINS}/modbus`,1096 markdown: modbusMarkdown,1097 image: modbusLogo,1098 },1099 {1100 id: 'mongodb',1101 name: 'MongoDB',1102 url: `${TELEGRAF_PLUGINS}/mongodb`,1103 markdown: mongodbMarkdown,1104 image: mongodbLogo,1105 },1106 {1107 id: 'monit',1108 name: 'Monit',1109 url: `${TELEGRAF_PLUGINS}/monit`,1110 markdown: monitMarkdown,1111 image: monitLogo,1112 },1113 {1114 id: 'mqtt_consumer',1115 name: 'MQTT Consumer',1116 url: `${TELEGRAF_PLUGINS}/mqtt_consumer`,1117 markdown: mqtt_consumerMarkdown,1118 image: mqtt_consumerLogo,1119 },1120 {1121 id: 'multifile',1122 name: 'Multifile',1123 url: `${TELEGRAF_PLUGINS}/multifile`,1124 markdown: multifileMarkdown,1125 image: multifileLogo,1126 },1127 {1128 id: 'mysql',1129 name: 'MySQL',1130 url: `${TELEGRAF_PLUGINS}/mysql`,1131 markdown: mysqlMarkdown,1132 image: mysqlLogo,1133 },1134 {1135 id: 'nats',1136 name: 'NATS',1137 url: `${TELEGRAF_PLUGINS}/nats`,1138 markdown: natsMarkdown,1139 image: natsLogo,1140 },1141 {1142 id: 'nats_consumer',1143 name: 'NATS Consumer',1144 url: `${TELEGRAF_PLUGINS}/nats_consumer`,1145 markdown: nats_consumerMarkdown,1146 image: nats_consumerLogo,1147 },1148 {1149 id: 'neptune_apex',1150 name: 'Neptune Apex',1151 url: `${TELEGRAF_PLUGINS}/neptune_apex`,1152 markdown: neptune_apexMarkdown,1153 image: neptune_apexLogo,1154 },1155 {1156 id: 'net_response',1157 name: 'Network Response',1158 url: `${TELEGRAF_PLUGINS}/net_response`,1159 markdown: net_responseMarkdown,1160 image: net_responseLogo,1161 },1162 {1163 id: 'nfsclient',1164 name: 'NFS Client',1165 url: `${TELEGRAF_PLUGINS}/nfsclient`,1166 markdown: nfsclientMarkdown,1167 image: nfsclientLogo,1168 },1169 {1170 id: 'nginx',1171 name: 'Nginx',1172 url: `${TELEGRAF_PLUGINS}/nginx`,1173 markdown: nginxMarkdown,1174 image: nginxLogo,1175 },1176 {1177 id: 'nginx_plus',1178 name: 'Nginx Plus',1179 url: `${TELEGRAF_PLUGINS}/nginx_plus`,1180 markdown: nginx_plusMarkdown,1181 image: nginx_plusLogo,1182 },1183 {1184 id: 'nginx_plus_api',1185 name: 'Nginx Plus API',1186 url: `${TELEGRAF_PLUGINS}/nginx_plus_api`,1187 markdown: nginx_plus_apiMarkdown,1188 image: nginx_plus_apiLogo,1189 },1190 {1191 id: 'nginx_sts',1192 name: 'Nginx Stream STS',1193 url: `${TELEGRAF_PLUGINS}/nginx_sts`,1194 markdown: nginx_stsMarkdown,1195 image: nginx_stsLogo,1196 },1197 {1198 id: 'nginx_upstream_check',1199 name: 'Nginx Upstream Check',1200 url: `${TELEGRAF_PLUGINS}/nginx_upstream_check`,1201 markdown: nginx_upstream_checkMarkdown,1202 image: nginx_upstream_checkLogo,1203 },1204 {1205 id: 'nginx_vts',1206 name: 'Nginx Virtual Host Traffic (VTS)',1207 url: `${TELEGRAF_PLUGINS}/nginx_vts`,1208 markdown: nginx_vtsMarkdown,1209 image: nginx_vtsLogo,1210 },1211 {1212 id: 'nsd',1213 name: 'NSD',1214 url: `${TELEGRAF_PLUGINS}/nsd`,1215 markdown: nsdMarkdown,1216 image: nsdLogo,1217 },1218 {1219 id: 'nsq',1220 name: 'NSQ',1221 url: `${TELEGRAF_PLUGINS}/nsq`,1222 markdown: nsqMarkdown,1223 image: nsqLogo,1224 },1225 {1226 id: 'nsq_consumer',1227 name: 'NSQ Consumer',1228 url: `${TELEGRAF_PLUGINS}/nsq_consumer`,1229 markdown: nsq_consumerMarkdown,1230 image: nsq_consumerLogo,1231 },1232 {1233 id: 'nstat',1234 name: 'Nstat',1235 url: `${TELEGRAF_PLUGINS}/nstat`,1236 markdown: nstatMarkdown,1237 image: nstatLogo,1238 },1239 {1240 id: 'ntpq',1241 name: 'ntpq',1242 url: `${TELEGRAF_PLUGINS}/ntpq`,1243 markdown: ntpqMarkdown,1244 image: ntpqLogo,1245 },1246 {1247 id: 'nvidia_smi',1248 name: 'Nvidia System Management Interface (SMI)',1249 url: `${TELEGRAF_PLUGINS}/nvidia_smi`,1250 markdown: nvidia_smiMarkdown,1251 image: nvidia_smiLogo,1252 },1253 {1254 id: 'opcua',1255 name: 'OPC UA Client',1256 url: `${TELEGRAF_PLUGINS}/opcua`,1257 markdown: opcuaMarkdown,1258 image: opcuaLogo,1259 },1260 {1261 id: 'openldap',1262 name: 'OpenLDAP',1263 url: `${TELEGRAF_PLUGINS}/openldap`,1264 markdown: openldapMarkdown,1265 image: openldapLogo,1266 },1267 {1268 id: 'openntpd',1269 name: 'OpenNTPD',1270 url: `${TELEGRAF_PLUGINS}/openntpd`,1271 markdown: openntpdMarkdown,1272 image: openntpdLogo,1273 },1274 {1275 id: 'opensmtpd',1276 name: 'OpenSMTPD',1277 url: `${TELEGRAF_PLUGINS}/opensmtpd`,1278 markdown: opensmtpdMarkdown,1279 image: opensmtpdLogo,1280 },1281 {1282 id: 'openweathermap',1283 name: 'OpenWeatherMap',1284 url: `${TELEGRAF_PLUGINS}/openweathermap`,1285 markdown: openweathermapMarkdown,1286 image: openweathermapLogo,1287 },1288 {1289 id: 'passenger',1290 name: 'Passenger',1291 url: `${TELEGRAF_PLUGINS}/passenger`,1292 markdown: passengerMarkdown,1293 image: passengerLogo,1294 },1295 {1296 id: 'pf',1297 name: 'PF',1298 url: `${TELEGRAF_PLUGINS}/pf`,1299 markdown: pfMarkdown,1300 image: pfLogo,1301 },1302 {1303 id: 'pgbouncer',1304 name: 'PgBouncer',1305 url: `${TELEGRAF_PLUGINS}/pgbouncer`,1306 markdown: pgbouncerMarkdown,1307 image: pgbouncerLogo,1308 },1309 {1310 id: 'phpfpm',1311 name: 'PHP-FPM',1312 url: `${TELEGRAF_PLUGINS}/phpfpm`,1313 markdown: phpfpmMarkdown,1314 image: phpfpmLogo,1315 },1316 {1317 id: 'ping',1318 name: 'Ping',1319 url: `${TELEGRAF_PLUGINS}/ping`,1320 markdown: pingMarkdown,1321 image: pingLogo,1322 },1323 {1324 id: 'postfix',1325 name: 'Postfix',1326 url: `${TELEGRAF_PLUGINS}/postfix`,1327 markdown: postfixMarkdown,1328 image: postfixLogo,1329 },1330 {1331 id: 'postgresql',1332 name: 'PostgreSQL',1333 url: `${TELEGRAF_PLUGINS}/postgresql`,1334 markdown: postgresqlMarkdown,1335 image: postgresqlLogo,1336 },1337 {1338 id: 'postgresql_extensible',1339 name: 'PostgreSQL Extensible',1340 url: `${TELEGRAF_PLUGINS}/postgresql_extensible`,1341 markdown: postgresql_extensibleMarkdown,1342 image: postgresql_extensibleLogo,1343 },1344 {1345 id: 'powerdns',1346 name: 'PowerDNS',1347 url: `${TELEGRAF_PLUGINS}/powerdns`,1348 markdown: powerdnsMarkdown,1349 image: powerdnsLogo,1350 },1351 {1352 id: 'powerdns_recursor',1353 name: 'PowerDNS Recursor',1354 url: `${TELEGRAF_PLUGINS}/powerdns_recursor`,1355 markdown: powerdns_recursorMarkdown,1356 image: powerdns_recursorLogo,1357 },1358 {1359 id: 'processes',1360 name: 'Processes',1361 url: `${TELEGRAF_PLUGINS}/processes`,1362 markdown: processesMarkdown,1363 image: processesLogo,1364 },1365 {1366 id: 'procstat',1367 name: 'Procstat',1368 url: `${TELEGRAF_PLUGINS}/procstat`,1369 markdown: procstatMarkdown,1370 image: procstatLogo,1371 },1372 {1373 id: 'prometheus',1374 name: 'Prometheus',1375 url: `${TELEGRAF_PLUGINS}/prometheus`,1376 markdown: prometheusMarkdown,1377 image: prometheusLogo,1378 },1379 {1380 id: 'proxmox',1381 name: 'Proxmox',1382 url: `${TELEGRAF_PLUGINS}/proxmox`,1383 markdown: proxmoxMarkdown,1384 image: proxmoxLogo,1385 },1386 {1387 id: 'puppetagent',1388 name: 'PuppetAgent',1389 url: `${TELEGRAF_PLUGINS}/puppetagent`,1390 markdown: puppetagentMarkdown,1391 image: puppetagentLogo,1392 },1393 {1394 id: 'rabbitmq',1395 name: 'RabbitMQ',1396 url: `${TELEGRAF_PLUGINS}/rabbitmq`,1397 markdown: rabbitmqMarkdown,1398 image: rabbitmqLogo,1399 },1400 {1401 id: 'raindrops',1402 name: 'Raindrops',1403 url: `${TELEGRAF_PLUGINS}/raindrops`,1404 markdown: raindropsMarkdown,1405 image: raindropsLogo,1406 },1407 {1408 id: 'ras',1409 name: 'RAS Daemon',1410 url: `${TELEGRAF_PLUGINS}/ras`,1411 markdown: rasMarkdown,1412 image: rasLogo,1413 },1414 {1415 id: 'ravendb',1416 name: 'RavenDB',1417 url: `${TELEGRAF_PLUGINS}/ravendb`,1418 markdown: ravendbMarkdown,1419 image: ravendbLogo,1420 },1421 {1422 id: 'redfish',1423 name: 'Redfish',1424 url: `${TELEGRAF_PLUGINS}/redfish`,1425 markdown: redfishMarkdown,1426 image: redfishLogo,1427 },1428 {1429 id: 'redis',1430 name: 'Redis',1431 url: `${TELEGRAF_PLUGINS}/redis`,1432 markdown: redisMarkdown,1433 image: redisLogo,1434 },1435 {1436 id: 'rethinkdb',1437 name: 'RethinkDB',1438 url: `${TELEGRAF_PLUGINS}/rethinkdb`,1439 markdown: rethinkdbMarkdown,1440 image: rethinkdbLogo,1441 },1442 {1443 id: 'riak',1444 name: 'Riak',1445 url: `${TELEGRAF_PLUGINS}/riak`,1446 markdown: riakMarkdown,1447 image: riakLogo,1448 },1449 {1450 id: 'riemann_listener',1451 name: 'Riemann Listener',1452 url: `${TELEGRAF_PLUGINS}/riemann_listener`,1453 markdown: riemann_listenerMarkdown,1454 image: riemann_listenerLogo,1455 },1456 {1457 id: 'salesforce',1458 name: 'Salesforce',1459 url: `${TELEGRAF_PLUGINS}/salesforce`,1460 markdown: salesforceMarkdown,1461 image: salesforceLogo,1462 },1463 {1464 id: 'sensors',1465 name: 'LM Sensors',1466 url: `${TELEGRAF_PLUGINS}/sensors`,1467 markdown: sensorsMarkdown,1468 image: sensorsLogo,1469 },1470 {1471 id: 'sflow',1472 name: 'SFlow',1473 url: `${TELEGRAF_PLUGINS}/sflow`,1474 markdown: sflowMarkdown,1475 image: sflowLogo,1476 },1477 {1478 id: 'smart',1479 name: 'S.M.A.R.T.',1480 url: `${TELEGRAF_PLUGINS}/smart`,1481 markdown: smartMarkdown,1482 image: smartLogo,1483 },1484 {1485 id: 'snmp',1486 name: 'SNMP',1487 url: `${TELEGRAF_PLUGINS}/snmp`,1488 markdown: snmpMarkdown,1489 image: snmpLogo,1490 },1491 {1492 id: 'snmp_legacy',1493 name: 'SNMP Legacy',1494 url: `${TELEGRAF_PLUGINS}/snmp_legacy`,1495 markdown: snmp_legacyMarkdown,1496 image: snmp_legacyLogo,1497 },1498 {1499 id: 'snmp_trap',1500 name: 'SNMP Trap',1501 url: `${TELEGRAF_PLUGINS}/snmp_trap`,1502 markdown: snmp_trapMarkdown,1503 image: snmp_trapLogo,1504 },1505 {1506 id: 'socket_listener',1507 name: 'Socket Listener',1508 url: `${TELEGRAF_PLUGINS}/socket_listener`,1509 markdown: socket_listenerMarkdown,1510 image: socket_listenerLogo,1511 },1512 {1513 id: 'solr',1514 name: 'Solr',1515 url: `${TELEGRAF_PLUGINS}/solr`,1516 markdown: solrMarkdown,1517 image: solrLogo,1518 },1519 {1520 id: 'sqlserver',1521 name: 'SQL Server',1522 url: `${TELEGRAF_PLUGINS}/sqlserver`,1523 markdown: sqlserverMarkdown,1524 image: sqlserverLogo,1525 },1526 {1527 id: 'stackdriver',1528 name: 'Stackdriver Google Cloud Monitoring',1529 url: `${TELEGRAF_PLUGINS}/stackdriver`,1530 markdown: stackdriverMarkdown,1531 image: stackdriverLogo,1532 },1533 {1534 id: 'statsd',1535 name: 'StatsD',1536 url: `${TELEGRAF_PLUGINS}/statsd`,1537 markdown: statsdMarkdown,1538 image: statsdLogo,1539 },1540 {1541 id: 'suricata',1542 name: 'Suricata',1543 url: `${TELEGRAF_PLUGINS}/suricata`,1544 markdown: suricataMarkdown,1545 image: suricataLogo,1546 },1547 {1548 id: 'swap',1549 name: 'Swap',1550 url: `${TELEGRAF_PLUGINS}/swap`,1551 markdown: swapMarkdown,1552 image: swapLogo,1553 },1554 {1555 id: 'synproxy',1556 name: 'Synproxy',1557 url: `${TELEGRAF_PLUGINS}/synproxy`,1558 markdown: synproxyMarkdown,1559 image: synproxyLogo,1560 },1561 {1562 id: 'syslog',1563 name: 'Syslog',1564 url: `${TELEGRAF_PLUGINS}/syslog`,1565 markdown: syslogMarkdown,1566 image: syslogLogo,1567 },1568 {1569 id: 'sysstat',1570 name: 'sysstat',1571 url: `${TELEGRAF_PLUGINS}/sysstat`,1572 markdown: sysstatMarkdown,1573 image: sysstatLogo,1574 },1575 {1576 id: 'system',1577 name: 'System',1578 url: `${TELEGRAF_PLUGINS}/system`,1579 markdown: systemMarkdown,1580 image: systemLogo,1581 },1582 {1583 id: 'systemd_units',1584 name: 'systemd Units',1585 url: `${TELEGRAF_PLUGINS}/systemd_units`,1586 markdown: systemd_unitsMarkdown,1587 image: systemd_unitsLogo,1588 },1589 {1590 id: 'tail',1591 name: 'Tail',1592 url: `${TELEGRAF_PLUGINS}/tail`,1593 markdown: tailMarkdown,1594 image: tailLogo,1595 },1596 {1597 id: 'tcp_listener',1598 name: 'TCP Listener',1599 url: `${TELEGRAF_PLUGINS}/tcp_listener`,1600 markdown: tcp_listenerMarkdown,1601 image: tcp_listenerLogo,1602 },1603 {1604 id: 'teamspeak',1605 name: 'Teamspeak 3',1606 url: `${TELEGRAF_PLUGINS}/teamspeak`,1607 markdown: teamspeakMarkdown,1608 image: teamspeakLogo,1609 },1610 {1611 id: 'temp',1612 name: 'Temperature',1613 url: `${TELEGRAF_PLUGINS}/temp`,1614 markdown: tempMarkdown,1615 image: tempLogo,1616 },1617 {1618 id: 'tengine',1619 name: 'Tengine',1620 url: `${TELEGRAF_PLUGINS}/tengine`,1621 markdown: tengineMarkdown,1622 image: tengineLogo,1623 },1624 {1625 id: 'tomcat',1626 name: 'Tomcat',1627 url: `${TELEGRAF_PLUGINS}/tomcat`,1628 markdown: tomcatMarkdown,1629 image: tomcatLogo,1630 },1631 {1632 id: 'udp_listener',1633 name: 'UDP Listener',1634 url: `${TELEGRAF_PLUGINS}/udp_listener`,1635 markdown: udp_listenerMarkdown,1636 image: udp_listenerLogo,1637 },1638 {1639 id: 'unbound',1640 name: 'Unbound',1641 url: `${TELEGRAF_PLUGINS}/unbound`,1642 markdown: unboundMarkdown,1643 image: unboundLogo,1644 },1645 {1646 id: 'uwsgi',1647 name: 'uWSGI',1648 url: `${TELEGRAF_PLUGINS}/uwsgi`,1649 markdown: uwsgiMarkdown,1650 image: uwsgiLogo,1651 },1652 {1653 id: 'varnish',1654 name: 'Varnish',1655 url: `${TELEGRAF_PLUGINS}/varnish`,1656 markdown: varnishMarkdown,1657 image: varnishLogo,1658 },1659 {1660 id: 'vsphere',1661 name: 'VMware vSphere',1662 url: `${TELEGRAF_PLUGINS}/vsphere`,1663 markdown: vsphereMarkdown,1664 image: vsphereLogo,1665 },1666 {1667 id: 'webhooks',1668 name: 'Webhooks',1669 url: `${TELEGRAF_PLUGINS}/webhooks`,1670 markdown: webhooksMarkdown,1671 image: webhooksLogo,1672 },1673 {1674 id: 'win_eventlog',1675 name: 'Windows Eventlog',1676 url: `${TELEGRAF_PLUGINS}/win_eventlog`,1677 markdown: win_eventlogMarkdown,1678 image: win_eventlogLogo,1679 },1680 {1681 id: 'win_perf_counters',1682 name: 'Windows Performance Counters',1683 url: `${TELEGRAF_PLUGINS}/win_perf_counters`,1684 markdown: win_perf_countersMarkdown,1685 image: win_perf_countersLogo,1686 },1687 {1688 id: 'win_services',1689 name: 'Windows Services',1690 url: `${TELEGRAF_PLUGINS}/win_services`,1691 markdown: win_servicesMarkdown,1692 image: win_servicesLogo,1693 },1694 {1695 id: 'wireguard',1696 name: 'Wireguard',1697 url: `${TELEGRAF_PLUGINS}/wireguard`,1698 markdown: wireguardMarkdown,1699 image: wireguardLogo,1700 },1701 {1702 id: 'wireless',1703 name: 'Wireless',1704 url: `${TELEGRAF_PLUGINS}/wireless`,1705 markdown: wirelessMarkdown,1706 image: wirelessLogo,1707 },1708 {1709 id: 'x509_cert',1710 name: 'x509 Certificate',1711 url: `${TELEGRAF_PLUGINS}/x509_cert`,1712 markdown: x509_certMarkdown,1713 image: x509_certLogo,1714 },1715 {1716 id: 'zfs',1717 name: 'ZFS',1718 url: `${TELEGRAF_PLUGINS}/zfs`,1719 markdown: zfsMarkdown,1720 image: zfsLogo,1721 },1722 {1723 id: 'zipkin',1724 name: 'Zipkin',1725 url: `${TELEGRAF_PLUGINS}/zipkin`,1726 markdown: zipkinMarkdown,1727 image: zipkinLogo,1728 },1729 {1730 id: 'zookeeper',1731 name: 'Zookeeper',1732 url: `${TELEGRAF_PLUGINS}/zookeeper`,1733 markdown: zookeeperMarkdown,1734 image: zookeeperLogo,1735 },1736]1737const WRITE_DATA_TELEGRAF_PLUGINS_SECTION: WriteDataSection = {1738 id: TELEGRAF_PLUGINS,1739 name: 'Telegraf Plugins',1740 description:1741 'An open-source agent for collecting data and reporting metrics via a vast library of plugins',1742 items: WRITE_DATA_TELEGRAF_PLUGINS,1743 featureFlag: 'load-data-telegraf-plugins',1744}...

Full Screen

Full Screen

imports.test.ts

Source:imports.test.ts Github

copy

Full Screen

...14 beforeEach(async () => {15 vm = await createVM();16 });17 it('works', async () => {18 const keyPtr = writeData(vm, testData.KEY1);19 const result = vm.do_db_read(keyPtr);20 expect(result.ptr).toBeGreaterThan(0);21 expect(result.data).toEqual(testData.VALUE1);22 });23 it('works for non-existent key', async () => {24 const keyPtr = writeData(vm, toAscii('I do not exist in storage'));25 const result = vm.do_db_read(keyPtr);26 expect(result.ptr).toEqual(0);27 });28 it('fails for large key', async () => {29 try {30 const keyPtr = writeData(31 vm,32 toAscii('I do not exist in storage'.repeat(65 * 1024))33 );34 vm.do_db_read(keyPtr);35 } catch (e) {36 expect(e).toEqual(37 new Error('Key length 1664000 exceeds maximum length 65536')38 );39 }40 });41});42describe('do_db_write', () => {43 let vm: VMInstance;44 beforeEach(async () => {45 vm = await createVM();46 });47 it('works', async () => {48 const keyPtr = writeData(vm, toAscii('new storage key'));49 const valuePtr = writeData(vm, toAscii('new value'));50 vm.do_db_write(keyPtr, valuePtr);51 const val = vm.backend.storage.get(toAscii('new storage key'));52 expect(val).toEqual(toAscii('new value'));53 });54 it('can override', async () => {55 const keyPtr = writeData(vm, testData.KEY1);56 const valuePtr = writeData(vm, testData.VALUE2);57 vm.do_db_write(keyPtr, valuePtr);58 const val = vm.backend.storage.get(testData.KEY1);59 expect(val).toEqual(testData.VALUE2);60 });61 it('works for empty value', async () => {62 const keyPtr = writeData(vm, toAscii('new storage key'));63 const valuePtr = writeData(vm, toAscii(''));64 vm.do_db_write(keyPtr, valuePtr);65 const val = vm.backend.storage.get(toAscii('new storage key'));66 expect(val).toEqual(toAscii(''));67 });68 it('fails for large key', async () => {69 try {70 const keyPtr = writeData(71 vm,72 toAscii('new storage key'.repeat(69 * 1024))73 );74 const valuePtr = writeData(vm, toAscii('x'));75 vm.do_db_write(keyPtr, valuePtr);76 } catch (e) {77 expect(e).toEqual(78 new Error(79 'db_write: key too large: ' + 'new storage key'.repeat(69 * 1024)80 )81 );82 }83 });84 it('fails for large value', async () => {85 try {86 const keyPtr = writeData(vm, toAscii('new storage key'));87 const valuePtr = writeData(vm, toAscii('x'.repeat(129 * 1024)));88 vm.do_db_write(keyPtr, valuePtr);89 } catch (e: any) {90 expect(e.message).toContain('db_write: value too large:');91 }92 });93 // TODO: is prohibited in readonly contexts94});95describe('do_db_remove', () => {96 let vm: VMInstance;97 beforeEach(async () => {98 vm = await createVM();99 });100 it('works', async () => {101 const keyPtr = writeData(vm, toAscii('new storage key'));102 const valuePtr = writeData(vm, toAscii('x'));103 vm.do_db_write(keyPtr, valuePtr);104 let val = vm.backend.storage.get(toAscii('new storage key'));105 expect(val).toEqual(toAscii('x'));106 vm.backend.storage.remove(toAscii('new storage key'));107 val = vm.backend.storage.get(toAscii('new storage key'));108 expect(val).toEqual(null);109 });110 it('fails to remove non-existent key', async () => {111 try {112 const keyPtr = writeData(vm, toAscii('I do not exist in storage'));113 vm.do_db_remove(keyPtr);114 vm.backend.storage.get(toAscii('I do not exist in storage'));115 } catch (e) {116 expect(e).toEqual(117 new Error(`Key ${toAscii('I do not exist in storage')} not found`)118 );119 }120 });121 it('fails for large key', () => {122 try {123 const keyPtr = writeData(124 vm,125 toAscii('I do not exist in storage'.repeat(65 * 1024))126 );127 vm.do_db_remove(keyPtr);128 } catch (e) {129 expect(e).toEqual(130 new Error(`Key length 1664000 exceeds maximum length 65536.`)131 );132 }133 });134 it('is prohibited in readonly contexts', () => {});135});136describe('do_addr_validate', () => {137 let vm: VMInstance;138 beforeEach(async () => {139 vm = await createVM();140 });141 it('works', async () => {142 const addrPtr = writeData(143 vm,144 toAscii('terra14z56l0fp2lsf86zy3hty2z47ezkhnthtr9yq76')145 );146 const result = vm.do_addr_validate(addrPtr);147 expect(result.ptr).toEqual(0);148 });149 it('fails for invalid address', async () => {150 try {151 const addrPtr = writeData(152 vm,153 toAscii('ggggg14z56l0fp2lsf86zy3hty2z47ezkhnthtr9yq76')154 );155 const result = vm.do_addr_validate(addrPtr);156 expect(result).toEqual(0);157 } catch (e) {158 expect(e).toEqual(159 new Error(160 'Invalid checksum for ggggg14z56l0fp2lsf86zy3hty2z47ezkhnthtr9yq76'161 )162 );163 }164 });165 it('fails for large input', async () => {166 try {167 const addrPtr = writeData(168 vm,169 toAscii('terra14z56l0fp2lsf86zy3hty2z47ezkhnthtr9yq76'.repeat(1024))170 );171 const result = vm.do_addr_validate(addrPtr);172 expect(result).toEqual(0);173 } catch (e) {174 expect(e).toEqual(175 new Error(176 'Address too large: ' +177 'terra14z56l0fp2lsf86zy3hty2z47ezkhnthtr9yq76'.repeat(1024)178 )179 );180 }181 });182});183describe('do_addr_canonicalize', () => {184 let vm: VMInstance;185 beforeEach(async () => {186 vm = await createVM();187 });188 it('works', () => {189 const humanAddrRegion = writeData(190 vm,191 toAscii('terra14z56l0fp2lsf86zy3hty2z47ezkhnthtr9yq76')192 );193 const result = vm.do_addr_canonicalize(194 humanAddrRegion,195 vm.allocate(MAX_LENGTH_CANONICAL_ADDRESS)196 );197 expect(result.ptr).toEqual(0);198 });199 it('fails for small inputs', () => {200 try {201 const humanAddrRegion = writeData(vm, toAscii('terra'));202 vm.do_addr_canonicalize(203 humanAddrRegion,204 vm.allocate(MAX_LENGTH_CANONICAL_ADDRESS)205 );206 } catch (e) {207 expect(e).toEqual(new Error('terra too short'));208 }209 });210 it('fails for large inputs', () => {211 try {212 const humanAddrRegion = writeData(213 vm,214 toAscii(215 'terra14z56l0fp2lsf86zy3hty2z47ezkhnthtr9yq76dsafklsajdfkljsdaklfjklasdjklfjaklsdjfl'216 )217 );218 vm.do_addr_canonicalize(219 humanAddrRegion,220 vm.allocate(MAX_LENGTH_CANONICAL_ADDRESS)221 );222 } catch (e) {223 expect(e).toEqual(224 new Error(225 'Invalid checksum for terra14z56l0fp2lsf86zy3hty2z47ezkhnthtr9yq76dsafklsajdfkljsdaklfjklasdjklfjaklsdjfl'226 )227 );228 }229 });230 it('fails for small destination region', () => {231 try {232 const humanAddrRegion = writeData(233 vm,234 toAscii('terra14z56l0fp2lsf86zy3hty2z47ezkhnthtr9yq76')235 );236 vm.do_addr_canonicalize(237 humanAddrRegion,238 vm.allocate(MAX_LENGTH_CANONICAL_ADDRESS - 50)239 );240 } catch (e) {241 expect(e).toEqual(new RangeError('offset is out of bounds'));242 }243 });244 it('fails for empty address', () => {245 try {246 const canonicalAddrRegion = writeData(vm, toAscii(''));247 vm.do_addr_canonicalize(248 canonicalAddrRegion,249 vm.allocate(MAX_LENGTH_HUMAN_ADDRESS)250 );251 } catch (e) {252 expect(e).toEqual(new Error('Empty address.'));253 }254 });255});256describe('do_addr_humanize', () => {257 let vm: VMInstance;258 beforeEach(async () => {259 vm = await createVM();260 });261 it('works', () => {262 const canonicalAddrRegion = writeData(vm, new Uint8Array(54).fill(0x22));263 const destination = vm.allocate(MAX_LENGTH_HUMAN_ADDRESS);264 const result = vm.do_addr_humanize(canonicalAddrRegion, destination);265 expect(result.ptr).toEqual(0);266 });267 it('fails for invalid address', () => {268 try {269 const canonicalAddrRegion = writeData(270 vm,271 toAscii('terra14z56l0fp2lsf86zy3hty2z47ezkhnthtr9yq77')272 );273 vm.do_addr_humanize(274 canonicalAddrRegion,275 vm.allocate(MAX_LENGTH_HUMAN_ADDRESS)276 );277 } catch (e) {278 expect(e).toEqual(279 new Error('human_address: canonical address length not correct: 44')280 );281 }282 });283 it('fails for too large address', () => {284 try {285 const canonicalAddrRegion = writeData(286 vm,287 toAscii('terra14z56l0fp2lsf86zy3hty2z47ezkhnthtr9yq76')288 );289 vm.do_addr_humanize(290 canonicalAddrRegion,291 vm.allocate(MAX_LENGTH_HUMAN_ADDRESS)292 );293 } catch (e) {294 expect(e).toEqual(295 new Error('human_address: canonical address length not correct: 44')296 );297 }298 });299 it('fails for too short address', () => {300 try {301 const canonicalAddrRegion = writeData(vm, toAscii('foobar'));302 vm.do_addr_humanize(303 canonicalAddrRegion,304 vm.allocate(MAX_LENGTH_HUMAN_ADDRESS)305 );306 } catch (e) {307 expect(e).toEqual(308 new Error('human_address: canonical address length not correct: 6')309 );310 }311 });312 it('fails for empty address', () => {313 try {314 const canonicalAddrRegion = writeData(vm, toAscii(''));315 vm.do_addr_humanize(316 canonicalAddrRegion,317 vm.allocate(MAX_LENGTH_HUMAN_ADDRESS)318 );319 } catch (e) {320 expect(e).toEqual(new Error('Empty address.'));321 }322 });323 it('fails for small destination region', () => {324 try {325 const canonicalAddrRegion = writeData(326 vm,327 new Uint8Array(54).fill(0x22)328 );329 vm.do_addr_humanize(canonicalAddrRegion, vm.allocate(0));330 } catch (e) {331 expect(e).toEqual(new RangeError('offset is out of bounds'));332 }333 });334});335describe('do_secp256k1_verify', () => {336 let vm: VMInstance;337 beforeEach(async () => {338 vm = await createVM();339 });340 it('works', () => {341 const hashPtr = writeData(vm, testData.ECDSA_HASH_HEX);342 const sigPtr = writeData(vm, testData.ECDSA_SIG_HEX);343 const pubkeyPtr = writeData(vm, testData.ECDSA_PUBKEY_HEX);344 const result = vm.do_secp256k1_verify(hashPtr, sigPtr, pubkeyPtr);345 expect(result).toEqual(0);346 });347 it('fails for invalid hash', () => {348 const hash = testData.ECDSA_HASH_HEX;349 hash[0] ^= 0x01;350 const hashPtr = writeData(vm, hash);351 const sigPtr = writeData(vm, testData.ECDSA_SIG_HEX);352 const pubkeyPtr = writeData(vm, testData.ECDSA_PUBKEY_HEX);353 const result = vm.do_secp256k1_verify(hashPtr, sigPtr, pubkeyPtr);354 expect(result).toEqual(1);355 });356 it('fails for large hash', () => {357 try {358 const hash = new Uint8Array([...testData.ECDSA_HASH_HEX, 0x00]);359 const hashPtr = writeData(vm, hash);360 const sigPtr = writeData(vm, testData.ECDSA_SIG_HEX);361 const pubkeyPtr = writeData(vm, testData.ECDSA_PUBKEY_HEX);362 vm.do_secp256k1_verify(hashPtr, sigPtr, pubkeyPtr);363 } catch (e) {364 expect(e).toEqual(365 new Error('Expected message to be an Uint8Array with length 32')366 );367 }368 });369 it('fails for short hash', () => {370 try {371 const hashPtr = writeData(vm, new Uint8Array(1));372 const sigPtr = writeData(vm, testData.ECDSA_SIG_HEX);373 const pubkeyPtr = writeData(vm, testData.ECDSA_PUBKEY_HEX);374 vm.do_secp256k1_verify(hashPtr, sigPtr, pubkeyPtr);375 } catch (e) {376 expect(e).toEqual(377 new Error('Expected message to be an Uint8Array with length 32')378 );379 }380 });381 it('fails for invalid signature', () => {382 const sig = testData.ECDSA_SIG_HEX;383 sig[0] ^= 0x01;384 const hashPtr = writeData(vm, testData.ECDSA_HASH_HEX);385 const sigPtr = writeData(vm, sig);386 const pubkeyPtr = writeData(vm, testData.ECDSA_PUBKEY_HEX);387 const result = vm.do_secp256k1_verify(hashPtr, sigPtr, pubkeyPtr);388 expect(result).toEqual(1);389 });390 it('fails for large signature', () => {391 try {392 const sig = new Uint8Array([...testData.ECDSA_SIG_HEX, 0x00]);393 const hashPtr = writeData(vm, testData.ECDSA_HASH_HEX);394 const sigPtr = writeData(vm, sig);395 const pubkeyPtr = writeData(vm, testData.ECDSA_PUBKEY_HEX);396 vm.do_secp256k1_verify(hashPtr, sigPtr, pubkeyPtr);397 } catch (e) {398 expect(e).toEqual(399 new Error('Expected signature to be an Uint8Array with length 64')400 );401 }402 });403 it('fails for short signature', () => {404 try {405 const hashPtr = writeData(vm, testData.ECDSA_HASH_HEX);406 const sigPtr = vm.allocate(0);407 const pubkeyPtr = writeData(vm, testData.ECDSA_PUBKEY_HEX);408 vm.do_secp256k1_verify(hashPtr, sigPtr, pubkeyPtr);409 } catch (e) {410 expect(e).toEqual(411 new Error('Expected signature to be an Uint8Array with length 64')412 );413 }414 });415 it('fails for wrong pubkey format', () => {416 try {417 const pubKey = testData.ECDSA_PUBKEY_HEX;418 pubKey[0] ^= 0x01;419 const hashPtr = writeData(vm, testData.ECDSA_HASH_HEX);420 const sigPtr = writeData(vm, testData.ECDSA_SIG_HEX);421 const pubkeyPtr = writeData(vm, pubKey);422 vm.do_secp256k1_verify(hashPtr, sigPtr, pubkeyPtr);423 } catch (e) {424 expect(e).toEqual(new Error('Public Key could not be parsed'));425 }426 });427 it('fails for invalid pubkey', () => {428 try {429 const pubKey = testData.ECDSA_PUBKEY_HEX;430 pubKey[1] ^= 0x01;431 const hashPtr = writeData(vm, testData.ECDSA_HASH_HEX);432 const sigPtr = writeData(vm, testData.ECDSA_SIG_HEX);433 const pubkeyPtr = writeData(vm, pubKey);434 vm.do_secp256k1_verify(hashPtr, sigPtr, pubkeyPtr);435 } catch (e) {436 expect(e).toEqual(new Error('Public Key could not be parsed'));437 }438 });439 it('fails for large pubkey', () => {440 try {441 const pubKey = new Uint8Array([...testData.ECDSA_PUBKEY_HEX, 0x00]);442 const hashPtr = writeData(vm, testData.ECDSA_HASH_HEX);443 const sigPtr = writeData(vm, testData.ECDSA_SIG_HEX);444 const pubkeyPtr = writeData(vm, pubKey);445 vm.do_secp256k1_verify(hashPtr, sigPtr, pubkeyPtr);446 } catch (e) {447 expect(e).toEqual(448 new Error(449 'Expected public key to be an Uint8Array with length [33, 65]'450 )451 );452 }453 });454 it('failes for short pubkey', () => {455 try {456 const hashPtr = writeData(vm, testData.ECDSA_HASH_HEX);457 const sigPtr = writeData(vm, testData.ECDSA_SIG_HEX);458 const pubkeyPtr = writeData(vm, new Uint8Array(33));459 vm.do_secp256k1_verify(hashPtr, sigPtr, pubkeyPtr);460 } catch (e) {461 expect(e).toEqual(new Error('Public Key could not be parsed'));462 }463 });464 it('fails for empty pubkey', () => {465 try {466 const hashPtr = writeData(vm, testData.ECDSA_HASH_HEX);467 const sigPtr = writeData(vm, testData.ECDSA_SIG_HEX);468 const pubkeyPtr = writeData(vm, toAscii(''));469 vm.do_secp256k1_verify(hashPtr, sigPtr, pubkeyPtr);470 } catch (e) {471 expect(e).toEqual(472 new Error(473 'Expected public key to be an Uint8Array with length [33, 65]'474 )475 );476 }477 });478 it('fails for wrong data', () => {479 try {480 const hashPtr = writeData(vm, new Uint8Array(32).fill(0x22));481 const sigPtr = writeData(vm, new Uint8Array(64).fill(0x22));482 const pubkeyPtr = writeData(vm, new Uint8Array(65).fill(0x22));483 vm.do_secp256k1_verify(hashPtr, sigPtr, pubkeyPtr);484 } catch (e) {485 expect(e).toEqual(new Error('Public Key could not be parsed'));486 }487 });488});489describe('do_ed25519_verify', () => {490 let vm: VMInstance;491 beforeEach(async () => {492 vm = await createVM();493 });494 it('works', () => {495 const hashPtr = writeData(vm, testData.EDDSA_MSG_HEX);496 const sigPtr = writeData(vm, testData.EDDSA_SIG_HEX);497 const pubkeyPtr = writeData(vm, testData.EDDSA_PUBKEY_HEX);498 const result = vm.do_ed25519_verify(hashPtr, sigPtr, pubkeyPtr);499 expect(result).toEqual(0);500 });501 it('fails for invalid msg', () => {502 const hash = new Uint8Array([...testData.EDDSA_MSG_HEX, 0x01]);503 const hashPtr = writeData(vm, hash);504 const sigPtr = writeData(vm, testData.EDDSA_SIG_HEX);505 const pubkeyPtr = writeData(vm, testData.EDDSA_PUBKEY_HEX);506 const result = vm.do_ed25519_verify(hashPtr, sigPtr, pubkeyPtr);507 expect(result).toEqual(1);508 });509 it('fails for large msg', () => {510 const hashPtr = writeData(vm, new Uint8Array(33 * 1024).fill(0x22));511 const sigPtr = writeData(vm, testData.EDDSA_SIG_HEX);512 const pubkeyPtr = writeData(vm, testData.EDDSA_PUBKEY_HEX);513 const result = vm.do_ed25519_verify(hashPtr, sigPtr, pubkeyPtr);514 expect(result).toEqual(1);515 });516 it('fails for wrong msg', () => {517 const msg = new Uint8Array([...testData.EDDSA_MSG_HEX, 0x01]);518 const hashPtr = writeData(vm, msg);519 const sigPtr = writeData(vm, testData.EDDSA_SIG_HEX);520 const pubkeyPtr = writeData(vm, testData.EDDSA_PUBKEY_HEX);521 const result = vm.do_ed25519_verify(hashPtr, sigPtr, pubkeyPtr);522 expect(result).toEqual(1);523 });524 it('fails for invalid sig', () => {525 const sig = testData.EDDSA_SIG_HEX;526 sig[0] ^= 0x01;527 const hashPtr = writeData(vm, testData.EDDSA_MSG_HEX);528 const sigPtr = writeData(vm, sig);529 const pubkeyPtr = writeData(vm, testData.EDDSA_PUBKEY_HEX);530 const result = vm.do_ed25519_verify(hashPtr, sigPtr, pubkeyPtr);531 expect(result).toEqual(1);532 });533 it('fails for large sig', () => {534 const sig = new Uint8Array([...testData.EDDSA_SIG_HEX, 0x00]);535 const hashPtr = writeData(vm, testData.EDDSA_MSG_HEX);536 const sigPtr = writeData(vm, sig);537 const pubkeyPtr = writeData(vm, testData.EDDSA_PUBKEY_HEX);538 const result = vm.do_ed25519_verify(hashPtr, sigPtr, pubkeyPtr);539 expect(result).toEqual(1);540 });541 it('fails for short sig', () => {542 try {543 const hashPtr = writeData(vm, testData.EDDSA_MSG_HEX);544 const sigPtr = writeData(vm, new Uint8Array(32));545 const pubkeyPtr = writeData(vm, testData.EDDSA_PUBKEY_HEX);546 vm.do_ed25519_verify(hashPtr, sigPtr, pubkeyPtr);547 } catch (e) {548 expect(e).toEqual(new Error('Assertion failed'));549 }550 });551 it('fails for invalid pubkey', () => {552 const pub = testData.EDDSA_PUBKEY_HEX;553 pub[1] ^= 0x01;554 const hashPtr = writeData(vm, testData.EDDSA_MSG_HEX);555 const sigPtr = writeData(vm, testData.EDDSA_SIG_HEX);556 const pubkeyPtr = writeData(vm, pub);557 const result = vm.do_ed25519_verify(hashPtr, sigPtr, pubkeyPtr);558 expect(result).toEqual(1);559 });560 it('fails for large pubkey', () => {561 const pub = new Uint8Array([...testData.EDDSA_PUBKEY_HEX, 0x00]);562 const hashPtr = writeData(vm, testData.EDDSA_MSG_HEX);563 const sigPtr = writeData(vm, testData.EDDSA_SIG_HEX);564 const pubkeyPtr = writeData(vm, pub);565 const result = vm.do_ed25519_verify(hashPtr, sigPtr, pubkeyPtr);566 expect(result).toEqual(1);567 });568 it('fails for short pubkey', () => {569 try {570 const hashPtr = writeData(vm, testData.EDDSA_MSG_HEX);571 const sigPtr = writeData(vm, testData.EDDSA_SIG_HEX);572 const pubkeyPtr = writeData(vm, new Uint8Array(33));573 vm.do_ed25519_verify(hashPtr, sigPtr, pubkeyPtr);574 } catch (e) {575 expect(e).toEqual(new Error('Assertion failed'));576 }577 });578 it('fails for empty pubkey', () => {579 try {580 const hashPtr = writeData(vm, testData.EDDSA_MSG_HEX);581 const sigPtr = writeData(vm, testData.EDDSA_SIG_HEX);582 const pubkeyPtr = vm.allocate(0);583 vm.do_ed25519_verify(hashPtr, sigPtr, pubkeyPtr);584 } catch (e) {585 expect(e).toEqual(new Error('Assertion failed'));586 }587 });588 it('fails for wrong data', () => {589 try {590 const hashPtr = writeData(vm, new Uint8Array(32).fill(0x22));591 const sigPtr = writeData(vm, new Uint8Array(64).fill(0x22));592 const pubkeyPtr = writeData(vm, new Uint8Array(33).fill(0x22));593 vm.do_ed25519_verify(hashPtr, sigPtr, pubkeyPtr);594 } catch (e) {595 expect(e).toEqual(new Error('Assertion failed'));596 }597 });598});599describe('do_ed25519_batch_verify', () => {600 let vm: VMInstance;601 beforeEach(async () => {602 vm = await createVM();603 });604 it('works', () => {605 const hashPtr = writeObject(vm, [testData.ED25519_MSG_HEX]);606 const sigPtr = writeObject(vm, [testData.ED25519_SIG_HEX]);607 const pubkeyPtr = writeObject(vm, [testData.ED25519_PUBKEY_HEX]);608 const result = vm.do_ed25519_batch_verify(hashPtr, sigPtr, pubkeyPtr);609 expect(result).toEqual(0);610 });611 it('fails for wrong msg', () => {612 const msg = new Uint8Array([...testData.ED25519_MSG_HEX, 0x01]);613 const hashPtr = writeObject(vm, [msg]);614 const sigPtr = writeObject(vm, [testData.ED25519_SIG_HEX]);615 const pubkeyPtr = writeObject(vm, [testData.ED25519_PUBKEY_HEX]);616 const result = vm.do_ed25519_batch_verify(hashPtr, sigPtr, pubkeyPtr);617 expect(result).toEqual(1);618 });619 it('fails for invalid pubkey', () => {620 const hashPtr = writeObject(vm, [testData.ED25519_MSG_HEX]);621 const sigPtr = writeObject(vm, [testData.ED25519_SIG_HEX]);622 const pubkeyPtr = writeObject(vm, [new Uint8Array(0)]);623 const result = vm.do_ed25519_batch_verify(hashPtr, sigPtr, pubkeyPtr);624 expect(result).toEqual(1);625 });626});627describe('do_secp256k1_recover_pubkey', () => {628 let vm: VMInstance;629 beforeEach(async () => {630 vm = await createVM();631 });632 it('works', () => {633 const msgPtr = writeData(vm, testData.SECP256K1_MSG_HEX);634 const sigPtr = writeData(vm, testData.SECP256K1_SIG_HEX);635 const result = vm.do_secp256k1_recover_pubkey(636 msgPtr,637 sigPtr,638 testData.RECOVER_PARAM639 );640 expect(result).toEqual(testData.SECP256K1_PUBKEY_HEX);641 });642});643describe('do_query_chain', () => {644 it('fails for missing contract', () => {});645});646describe('db_scan', () => {647 let vm: VMInstance;648 beforeEach(async () => {649 vm = await createVM();650 });651 it('unbound works', () => {652 const idRegion = vm.do_db_scan(vm.allocate(0), vm.allocate(0), Order.Ascending);653 const id = toNumber(idRegion.data);654 expect(id).toBe(1);655 let item = vm.do_db_next(id);656 expectToBeKvp(item, testData.KEY1, testData.VALUE1);657 item = vm.do_db_next(id);658 expectToBeKvp(item, testData.KEY2, testData.VALUE2);659 item = vm.do_db_next(id);660 expect(item.ptr).toBe(0);661 });662 it('unbound descending works', () => {663 const idRegion = vm.do_db_scan(vm.allocate(0), vm.allocate(0), Order.Descending);664 const id = toNumber(idRegion.data);665 expect(id).toBe(1);666 let item = vm.do_db_next(id);667 expectToBeKvp(item, testData.KEY2, testData.VALUE2);668 item = vm.do_db_next(id);669 expectToBeKvp(item, testData.KEY1, testData.VALUE1);670 item = vm.do_db_next(id);671 expect(item.ptr).toBe(0);672 });673 it('bound works', () => {674 const idRegion = vm.do_db_scan(675 writeData(vm, toAscii('anna')),676 writeData(vm, toAscii('bert')),677 Order.Ascending);678 const id = toNumber(idRegion.data);679 expect(id).toBe(1);680 let item = vm.do_db_next(id);681 expectToBeKvp(item, testData.KEY1, testData.VALUE1);682 item = vm.do_db_next(id);683 expect(item.ptr).toBe(0);684 });685 it('bound descending works', () => {686 const idRegion = vm.do_db_scan(687 writeData(vm, toAscii('antler')),688 writeData(vm, toAscii('trespass')),689 Order.Descending);690 const id = toNumber(idRegion.data);691 expect(id).toBe(1);692 let item = vm.do_db_next(id);693 expectToBeKvp(item, testData.KEY2, testData.VALUE2);694 item = vm.do_db_next(id);695 expect(item.ptr).toBe(0);696 });697 it('multiple iterators', () => {698 const idRegion1 = vm.do_db_scan(vm.allocate(0), vm.allocate(0), Order.Ascending);699 const id1 = toNumber(idRegion1.data);700 expect(id1).toBe(1);701 const idRegion2 = vm.do_db_scan(vm.allocate(0), vm.allocate(0), Order.Descending);702 const id2 = toNumber(idRegion2.data);...

Full Screen

Full Screen

ST7735.js

Source:ST7735.js Github

copy

Full Screen

...65 }66 // Sets which pixels we are going to send data for67 st7735API.setAddrWindow = function(x0, y0, x1, y1) {68 this.writeCommand(this.cmdAddrs.CASET); // Set column addrs69 this.writeData([0, x0, 0, x1]);70 this.writeCommand(this.cmdAddrs.RASET); // Set row addrs71 this.writeData([0, y0, 0, y1]);72 this.writeCommand(this.cmdAddrs.RAMWR); // Save values to RAM73 }74 st7735API.initScreen = function() {75 this.csPin.write(0);76 this.rstPin.write(1);77 this.writeCommand(this.cmdAddrs.SWRESET);78 this.writeCommand(this.cmdAddrs.SLPOUT); // exit sleep79 this.writeCommand([0x26]);80 this.writeData([0x04]);81 this.writeCommand(this.cmdAddrs.FRMCTR1);82 this.writeData([0x0e]);83 this.writeData([0x10]);84 this.writeCommand(this.cmdAddrs.PWCTR1);85 this.writeData([0x08]);86 this.writeData([0]);87 this.writeCommand(this.cmdAddrs.PWCTR2);88 this.writeData([0x05]);89 this.writeCommand(this.cmdAddrs.VMCTR1);90 this.writeData([0x38]);91 this.writeData([0x40]);92 this.writeCommand(this.cmdAddrs.INVOFF);93 this.writeCommand(this.cmdAddrs.COLMOD);94 this.writeData([0x05]); // Use 16 bit color mode95 this.writeCommand(this.cmdAddrs.MADCTL); // If not set the colors will be inverted96 this.writeData([0xC0]);97 this.writeCommand(this.cmdAddrs.CASET); // Set number of columns98 this.writeData([0x00]);99 this.writeData([0x00]);100 this.writeData([0x00]);101 this.writeData([0x7F]);102 this.writeCommand(this.cmdAddrs.RASET); // Set number of rows103 this.writeData([0x00]);104 this.writeData([0x00]);105 this.writeData([0x00]);106 this.writeData([0x9F]);107 this.writeCommand(this.cmdAddrs.INVCTR);108 this.writeData([0x00]);109 this.writeCommand([0xF2]);110 this.writeData([1]);111 this.writeCommand(this.cmdAddrs.GMCTRP1);112 this.writeData([0x3f, 0x22, 0x20, 0x30, 0x29, 0x0c, 0x4e, 0xb7, 0x3c, 0x19, 0x22, 0x1e, 0x02, 0x01, 0x00]);113 this.writeCommand(this.cmdAddrs.GMCTRN1);114 this.writeData([0x00, 0x1b, 0x1f, 0x0f, 0x16, 0x13, 0x31, 0x84, 0x43, 0x06, 0x1d, 0x21, 0x3d, 0x3e, 0x3f]);115 this.writeCommand(this.cmdAddrs.DISPON);116 this.writeCommand(this.cmdAddrs.RAMWR);117 }118 return st7735API;119};...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('wpt');2var wpt = new WebPageTest('www.webpagetest.org', 'A.12345678901234567890123456789012');3 if (err) {4 console.log(err);5 } else {6 console.log(data);7 }8});

Full Screen

Using AI Code Generation

copy

Full Screen

1var wpt = require('./wpt.js');2wpt.writeData("foo", "bar", "baz", "qux");3exports.writeData = function (foo, bar, baz, qux) {4 var fs = require('fs');5 fs.writeFile("foo.txt", foo + "6" + qux, function (err) {7 if (err) {8 return console.log(err);9 }10 console.log("The file was saved!");11 });12};13fs.writeFile("foo.txt", foo + "14" + qux, function (err) {15 if (err) {16 return console.log(err);17 }18});

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run wpt automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful