当前位置: 首页 > news >正文

女人做春梦网站上海搜索引擎关键词优化

女人做春梦网站,上海搜索引擎关键词优化,微信搜一搜seo,武汉做营销型网站建设目录 0、版本号 1、登录页面 2、账号基本信息 3、数据库案例 4、可视化 5、java案例 0、版本号 InfluxDB v2.4.0 1、登录页面 http://127.0.0.1:8086/signin 账号:自己账号 密码:自己密码 2、账号基本信息 查看用户id和组织id!&…

目录

0、版本号

1、登录页面

2、账号基本信息

3、数据库案例

4、可视化

5、java案例


0、版本号

InfluxDB v2.4.0

1、登录页面

http://127.0.0.1:8086/signin

账号:自己账号 密码:自己密码

2、账号基本信息

查看用户id和组织id!!很重要 需要在作为参数请求接口

3、数据库案例

4、可视化

5、java案例

1、pom

       <dependency><groupId>com.influxdb</groupId><artifactId>influxdb-client-java</artifactId><version>6.11.0</version></dependency>

2、初始化WriteApiBlocking


import com.influxdb.client.InfluxDBClientFactory;
import com.influxdb.client.WriteApiBlocking;
import com.influxdb.client.domain.WritePrecision;
import org.chameleon.threadpool.monitor.PoolCollectData;import java.util.List;public class InfluxdbAssign {private final WriteApiBlocking writeApi;public InfluxdbAssign() {writeApi = InfluxDBClientFactory.create(Constant.INFLUXDB_URL,Constant.INFLUXDB_TOKEN,Constant.INFLUXDB_ORG,Constant.INFLUXDB_BUCKET).getWriteApiBlocking();}

3、写入                              

package example;import java.time.Instant;
import java.util.List;import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement;
import com.influxdb.client.InfluxDBClient;
import com.influxdb.client.InfluxDBClientFactory;
import com.influxdb.client.QueryApi;
import com.influxdb.client.WriteApiBlocking;
import com.influxdb.client.domain.WritePrecision;
import com.influxdb.client.write.Point;
import com.influxdb.query.FluxRecord;
import com.influxdb.query.FluxTable;public class InfluxDB2Example {private static char[] token = "my-token".toCharArray();private static String org = "my-org";private static String bucket = "my-bucket";public static void main(final String[] args) {InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://localhost:8086", token, org, bucket);//// 获取写的api//WriteApiBlocking writeApi = influxDBClient.getWriteApiBlocking();//// 写数据point的方式//Point point = Point.measurement("temperature").addTag("location", "west").addField("value", 55D).time(Instant.now().toEpochMilli(), WritePrecision.MS);writeApi.writePoint(point);//// Write by协议的方式写//writeApi.writeRecord(WritePrecision.NS, "temperature,location=north value=60.0");//// Write by 对象的方式写!!!推荐//Temperature temperature = new Temperature();temperature.location = "south";temperature.value = 62D;temperature.time = Instant.now();writeApi.writeMeasurement( WritePrecision.NS, temperature);//// Q查询数据//String flux = "from(bucket:\"my-bucket\") |> range(start: 0)";QueryApi queryApi = influxDBClient.getQueryApi();List<FluxTable> tables = queryApi.query(flux);for (FluxTable fluxTable : tables) {List<FluxRecord> records = fluxTable.getRecords();for (FluxRecord fluxRecord : records) {System.out.println(fluxRecord.getTime() + ": " + fluxRecord.getValueByKey("_value"));}}influxDBClient.close();}对应的POJO@Measurement(name = "temperature")private static class Temperature {@Column(tag = true)String location;@ColumnDouble value;@Column(timestamp = true)Instant time;}
}

http://www.zhongyajixie.com/news/22182.html

相关文章:

  • 网站建设项目方案搜索引擎优化的工具
  • 做网站月入100万百度识图扫一扫
  • 推广网站wap端怎么做长沙网站关键词推广
  • 哈尔滨h5建站模板网络广告案例以及分析
  • emlog和wordpress关键词seo排名怎么样
  • 长春建设局网站江苏搜索引擎优化
  • 做网站软件_手机同仁seo排名优化培训
  • 外贸网站如何换域名怎么可以在百度发布信息
  • 请专业公司做个网站要花多少钱北京seo代理商
  • c 网站建设报告哈尔滨seo优化培训
  • 网站域名需要公安备案谷歌浏览器官网入口
  • 网站建设 时间安排新站整站优化
  • 收费用的网站怎么做网络关键词
  • 动态网站设计心得体会小红书软文推广
  • 世界500强企业平均寿命视频优化是什么意思
  • 网站建设与管理课后总结关键词搜索名词解释
  • 做微信公众号微网站吗seo排名优化代理
  • 重生做代购网站网站推广的公司
  • 经销商怎么做网站小程序seo推广技巧
  • 潍坊网站排名提升全球十大搜索引擎排名及网址
  • 做色情诱导网站域名查询服务器
  • 做垃圾网站可行吗填写电话的广告
  • 如何做网站展示商品文明seo技术教程网
  • 官方网站面膜做微商网站推广软件
  • 零食电子商务网站建设策划书百度推广在哪里
  • 宁波哪里做网站的百度企业
  • alexa排名查询的特点适合seo软件
  • 上海公安门户网站官网迁移户口新政百度快速收录
  • 网站 提示建设中零售客户电商网站
  • 源码制作网站大一html网页制作作业