小编use*_*980的帖子

Kusto\KQL - 渲染简单计数值的时间表

我有一个 kql-query,它计算自过去 24 小时以来 Azure 存储中上传的 BLOBS 数量。在 Azure 日志分析中运行时,查询打击会返回预期的数字。

StorageBlobLogs
| where TimeGenerated > ago(1d) and OperationName has "PutBlob" and StatusText contains "success" a
| distinct Uri
| summarize count()
Run Code Online (Sandbox Code Playgroud)

我现在想在时间表中可视化这些信息以获得一些详细视图。尝试将“渲染时间表”添加到查询链中,如下所示

StorageBlobLogs
| where TimeGenerated > ago(1d) and OperationName has "PutBlob" and StatusText contains "success" a
| distinct Uri
| summarize count()
| render timechart
Run Code Online (Sandbox Code Playgroud)

但是,当执行查询时,我收到错误消息;

无法创建可视化 无法创建堆叠条形图,因为您缺少以下类型之一的列:int、long、decimal 或 real

关于如何实现这一点有什么建议吗?

azure-monitoring azure-blob-storage azure-log-analytics kql

6
推荐指数
1
解决办法
1万
查看次数

在双向hibernate映射中获取parent-id

我有一个弹簧休息应用程序,有两个实体与双向关系店(一对多,多对一).为了克服嵌套的提取问题,@ JsonManagedReference/@ JsonBackReference已用于实体之间的perent/child关系.

这些人看起来像这样:

@Entity
@Table(name = "Parent")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Parent implements java.io.Serializable {

    private Integer id;
    private List<Child> childList;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "ID", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }
    public void setId(Integer id) {
        this.id = id;
    }

    @OneToMany(mappedBy = "parent", fetch = FetchType.LAZY)
    @JsonManagedReference
    public List<Child> getChildList() {
        return childList;
    }

    public void setChildListe(List<Child> childListe) {
            this.childList = childList;
        }

    }


@Entity
@Table(name = "Child")
@JsonInclude(JsonInclude.Include.NON_NULL)
public …
Run Code Online (Sandbox Code Playgroud)

rest spring json hibernate

5
推荐指数
1
解决办法
481
查看次数

KQL 查询 - 在 where 子句中相对选择今天的数据

我需要一种方法来在 Azure Monitor 中选择“自午夜以来”的数据集 - 例如相对于当天。

使用 ago(1d) 显然不能解决问题:)

StorageBlobLogs
    | where TimeGenerated > ago(1d) and StatusText contains "success"
Run Code Online (Sandbox Code Playgroud)

干杯

azure-log-analytics kql azure-monitor

3
推荐指数
1
解决办法
1627
查看次数