prometheus rfc3339 php date 转换
生活随笔
收集整理的這篇文章主要介紹了
prometheus rfc3339 php date 转换
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
使用范圍查詢API https://prometheus.io/docs/prometheus/latest/querying/api/#range-queries
時間參數為 rfc3339 格式
使用其中的 RFC3339 和RFC3339_EXTENEDE 報錯返回400 ,
圖片來源:http://uk1.php.net/manual/en/class.datetime.php#datetime.constants.rfc3339
解決方案:
$start = $start ? $start : date('Y-m-d\TH:i:s\Z'); $end = $end ? $end : date('Y-m-d\TH:i:s\Z', time() + 30);總結
以上是生活随笔為你收集整理的prometheus rfc3339 php date 转换的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Composer update 问题:
- 下一篇: 多个iframe加载遇到的问题