interface ISaveOptions {
    description?: string;
    failure?: RequestFailure<any>;
    iconType?: IconType;
    name: string;
    queryName?: string;
    replace?: boolean;
    schemaName?: string;
    scope?: any;
    shared?: boolean;
    success?: RequestSuccess<SaveResponse>;
    svg?: string;
    thumbnailType?: IconType;
    type: string;
    visualizationConfig: any;
}

Hierarchy (view full)

Properties

description?: string

A description of the saved report.

failure?: RequestFailure<any>

This will be called upon failure to complete a request.

iconType?: IconType

Indicates whether a icon should be auto-generated ('AUTO'), no icon should be saved ('NONE'), or the existing custom icon should be kept ('CUSTOM').

name: string

The name this visualization should be saved under.

queryName?: string

Optional, but required if schemaName property is provided. Allows the visualization to be scoped to a particular query. If scoped, this visualization will appear in the 'views' menu for that query.

replace?: boolean

Whether this 'save' call should replace an existing report with the same name. If false, the call to 'save' will fail if another report with the same name exists.

schemaName?: string

Optional, but required if queryName property is provided. Allows the visualization to be scoped to a particular query. If scoped, this visualization will appear in the 'views' menu for that query.

scope?: any

A scoping object for the success and failure callback functions (default to this).

shared?: boolean

Indicates whether this report is viewable by all users with read permissions to the visualization's folder. If false, only the creating user can see the visualization. Defaults to true.

This will be called upon successfully completing a request.

svg?: string

SVG to be used to generate a thumbnail.

thumbnailType?: IconType

Indicates whether a thumbnail should be auto-generated ('AUTO'), no thumbnail should be saved ('NONE'), or the existing custom thumbnail should be kept ('CUSTOM').

type: string

The type of visualization being saved.

visualizationConfig: any

An arbitrarily complex JavaScript object that contains all information required to recreate the report.