File

src/app/shared/model/about/grafana.model.ts

Description

Contains meta data about grafana.

Implements

Serializable

Example

Index

Properties
Methods

Methods

Public deserialize
deserialize(input: )
Parameters :
Name Type Optional Description
input
Returns : this
Public reset
reset()
Returns : void

Properties

Public refreshInterval
refreshInterval:
Default value : 10
Public token
token:
Public url
url:
import { Serializable } from '..';
import { isNumber } from 'util';

/**
 * Contains meta data about grafana.
 *
 * @author Damien Vitrac
 */
export class GrafanaInfo implements Serializable<GrafanaInfo> {

  public url = '';
  public token = '';
  public refreshInterval = 10;

  public reset() {
    this.url = '';
    this.token = '';
  }

  public deserialize(input) {
    if (input) {
      this.url = input['url'] ? input['url'] : '';
      this.token = input['token'] ? input['token'] : '';
      this.refreshInterval = isNumber(input['refreshInterval']) ? input['refreshInterval'] : 10;
    }
    return this;
  }


}

results matching ""

    No results matching ""