Why are Google Chart images not showing on incidents?

questions
events-api

(Mauricio Morales) #1

I’m pushing an incident thru the Events API v2, but the Google chart is not showing on the event. I can’t figure out what about it is causing it to be ignored.

PS: I migrated to Events API v2, but the JSON in the web log_entries still reads as V1 :|.

{
  "contexts": [
    {
      "type": "image",
      "src": "http://chart.apis.google.com/chart?cht=lc&chs=750x400&chco=FF0000%2C00FF00%2C0000FF%2CFFFF00&chxt=x%2Cy&chxr=0%2C0%2C29%7C1%2C0%2C1610&chdl=Regression%7CUsage%7CCummulative%7CQuota&chtt=Projected+Usage+for+2445581140783&chts=000000%2C16&chf=c%2Cs%2CDDDDDD&chd=t%3A5.96%2C6.02%2C5.53%2C6.02%2C5.96%2C7.89%2C2.55%2C4.78%2C4.60%2C4.35%2C4.16%2C3.91%2C3.73%2C3.48%2C3.29%2C3.04%2C2.86%2C2.61%2C2.42%2C2.17%2C1.99%2C1.74%2C1.55%2C1.30%2C1.12%2C0.87%2C0.68%2C0.43%2C0.25%7C5.96%2C6.02%2C5.53%2C6.02%2C5.96%2C7.89%2C2.55%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%2C_%7C5.96%2C11.99%2C17.52%2C23.54%2C29.50%2C37.39%2C39.94%2C44.72%2C49.32%2C53.66%2C57.83%2C61.74%2C65.47%2C68.94%2C72.24%2C75.28%2C78.14%2C80.75%2C83.17%2C85.34%2C87.33%2C89.07%2C90.62%2C91.93%2C93.04%2C93.91%2C94.60%2C95.03%2C95.28%7C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11%2C62.11",
      "href": null,
      "alt": "Projection Chart for Owner 2445581140783"
    }
  ],
  "description": "[TEST] OwnerID 2445581140783 projected to exceed Search quota.",
  "event_type": "trigger",
  "incident_key": "2445581140783|Search QuotaExceeded",
  "service_key": "XXX"
}

(Jay Chiarella) #2

Hi Mauricio,

The src field of the images type requires use of the HTTPS protocol. From your example, it seems the issue is that you sent over a HTTP link. You can read more about the Context Properties on our developer documentation here.

I hope that helps! Don’t hesitate to let us know if you have any other questions.


(Mauricio Morales) #3

Well that’s embarrasing :O… I knew that! :O.
That must be it. I’ll confirm back.


(Mauricio Morales) #4

Confirmed. That was it! Thanks a bunch!