尝试使用命令import {Component, OnInit} from '@angular/core';
import {DashboardService} from "../service/dashboard.service";
@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.scss']
})
export class DashboardComponent implements OnInit {
barData: any;
constructor(private dashboardService: DashboardService) {
}
ngOnInit() {
this.barChart();
}
barChart(){
this.dashboardService.getCurruncyList().subscribe(data => {
this.barData = data.map(t => t.date);
response.map(function (o) {
return {
data: 22,
label: o.date
};
});
});
使用Elastalert为 port:5601 的基本身份验证受保护实例创建索引时,失败并显示错误:
elastalert-create-index
答案 0 :(得分:1)
似乎用于身份验证的默认端口是 Kibana 在端口elasticsearch.exceptions.SerializationError: Unknown mimetype, unable to deserialize: text/html
上运行的位置