首页 \ 问答 \ 通过API在New Relic仪表板上显示图表(Displaying the charts from the New Relic dashboard over the API)

通过API在New Relic仪表板上显示图表(Displaying the charts from the New Relic dashboard over the API)

我是New Relic API的新手,并尝试从应用程序仪表板显示图表。 在“Dashboard HTML片段(一个应用程序)”部分中,只返回一个包含我想要的应用程序行的表(基本上与“Dashboard HTML片段(所有应用程序)”中的相同)。 我以为它会给我详细的图表和信息。 难道我做错了什么?


I'm new to the New Relic API and trying to display the charts from the application dashboard. In the part "Dashboard HTML fragment (One application)" is only returns a table with the row of the application I want (basically the same as in "Dashboard HTML fragment (All applications)"). I thought it's going to return me the detailed charts and information. Am I doing something wrong?


原文:https://stackoverflow.com/questions/19361839
更新时间:2022-08-31 10:08

最满意答案

这将是因为在幕后,所有CF正在做的是将日期转换为双打(或在你的情况下:字符串到日期到双打),并且晚上8点(1天的20/24)会有舍入错误它在预定的上限内; 而下午1点(1天的13/24)在预定的上限之外略微偏离。

当循环期望日期时,传递字符串可能没有帮助。


It'll be because under the hood, all CF is doing is converting the Dates to Doubles (or in your case: the Strings to Dates to Doubles), and 8pm (20/24ths of 1 day) will have a rounding error which leaves it within the intended upper boundary; whereas 1pm (13/24ths of 1 day) is slighty outside the intended upper boundary.

It probably doesn't help that you're passing a string when the loop is expecting dates.

相关问答

更多
  • 通过从方法returning ,其余代码将不会执行: if(str.length() <= 1) return str; 如果str.length()是<= 1那么该方法将返回正确的方法,并且该方法中不会执行其他代码行... By returning from the method the rest of the code will not be executed: if(str.length() <= 1) return str; If str.length() is <= 1 then the me ...
  • 你的程序不会在循环迭代3停止,而是在3次迭代后挂起。 这很可能是由于Queue :: Size()函数似乎进入无限循环。 我认为你的意思是大小如下: int Size() { int queueSize = 0; Node* element = FirstElement; if (nullptr != FirstElement) { while (nullptr != element->Previous) { e ...
  • 长话短说: 如果在unbraced if else语句中使用非循环宏,则会被搞砸。 if (a) VTAILQ_INSERT_BEFORE(c, d, e); else blah(b); 在这种情况下会破坏性的。 这里有更详细的答案: 为什么在宏中使用明显无意义的do-while和if-else语句? Long story short: If you use a non looped macro in an unbraced if else statement, you will get ...
  • 如果没有其他入口点且没有自修改代码,则可以通过一种独特的方式来执行代码: mov ecx,2 ; ecx = 2 xor eax,eax ; eax = 0, ecx = 2, SF = 0, ZF = 0 mov esi,eax ; eax = 0, ecx = 2, esi = 0, no changes to flags dec eax ; eax = 0xFFFFFFFF, ecx = 2, esi ...
  • 您应该在url中的access_token之后立即删除/,以便它读取graph.facebook.com/oauth/access_token? 然后是你的参数。 如果没有这样做,请显示您生成的整个示例网址(当然,真正的client_secret x'ed),因为我不熟悉urllib.urlencode以确保格式化,尽管该部分看起来一目了然。 You should remove the / immediately after access_token in the url so that it reads ...
  • 这将是因为在幕后,所有CF正在做的是将日期转换为双打(或在你的情况下:字符串到日期到双打),并且晚上8点(1天的20/24)会有舍入错误它在预定的上限内; 而下午1点(1天的13/24)在预定的上限之外略微偏离。 当循环期望日期时,传递字符串可能没有帮助。 It'll be because under the hood, all CF is doing is converting the Dates to Doubles (or in your case: the Strings to Dates to D ...
  • Do until rs2.eof If ORDERLINE("udfStringCol8") = trim(group) Then ' this doesn't happen 'some code here rs2.movenext ' So this doesn't move next End If loop Do until rs2.eof If ORDERLINE("udfStringCol8") ...
  • ecx是“调用者保存”寄存器之一,这意味着任何函数调用都可以修改ecx并且调用者的工作是在必要时保存/恢复它。 另见 : 根据绝大多数编译器符合的英特尔ABI,EAX,EDX和ECX可以在程序或功能中免费使用,无需保留。 你在循环中对printf调用可能是clobbers ecx 。 ecx is one of the "caller-saved" registers, meaning any function call can modify ecx and it is the caller's job t ...
  • 你检查过get_local_size总是返回正确的值吗? 你说“简而言之,矩阵的全长被划分为BLOCK_SIZE的本地块并且并行运行;”。 请记住,OpenCL仅允许在工作组中进行任何并发。 因此,如果您调用enqueueNDrange,其全局大小为[32,32],本地大小为[16,16],则第一个线程块可能从头到尾运行,然后是第二个,然后是第三个等。您无法在工作组。 你的EnqueueNDRange电话是什么? 获取示例输出所需的调用示例将受到高度赞赏(主要是对全局和本地大小参数感兴趣)。 (我在评论中问 ...
  • 你使用多线程吗? 如果是这样,我想知道这是不是一场竞争。 例如: 调用Update 我们假设_newSave是真的 RequestSave被调用 在RequestSave返回之前,再次调用Update ,但_newSave仍然是真的... I figured out the problem, apologies to everyone for wasting their time, and thank you for trying to help, turns out that simply switchi ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。