class

Dogapi::V1::EmbedService

Inherits Dogapi::APIService < Reference < Object

================ EMBED API

Instance methods

create_embed(graph_json, description = {} of String => String)

Create an embeddable graph

:graph_json => JSON: graph definition :timeframe => String: representing the interval of the graph. Default is "1_hour" :size => String: representing the size of the graph. Default is "medium". :legend => String: flag representing whether a legend is displayed. Default is "no". :title => String: represents title of the graph. Default is "Embed created through API."

Source
enable_embed(embed_id)

Enable a specific embed

:embed_id => String: embed token for a specific embed

Source
get_all_embeds

Get all embeds for the API user's org

Source
get_embed(embed_id, description = {} of String => String)

Get a specific embed

:embed_id => String: embed token for a specific embed :size => String: "small", "medium"(defualt), "large", or "xlarge". :legend => String: "yes" or "no"(default) :template_vars => String: variable name => variable value (any number of template vars)

Source
revoke_embed(embed_id)

Revoke a specific embed

:embed_id => String: embed token for a specific embed

Source