use of org.opennms.netmgt.config.datacollection.Rrd in project opennms by OpenNMS.
the class SnmpCollectionForm method createBasicSnmpCollection.
/**
* Creates the basic SNMP collection.
*
* @return the basic example SNMP collection
*/
public SnmpCollection createBasicSnmpCollection() {
SnmpCollection collection = new SnmpCollection();
collection.setName("New Collection");
collection.setSnmpStorageFlag("select");
Rrd rrd = new Rrd();
rrd.setStep(300);
rrd.addRra("RRA:AVERAGE:0.5:1:2016");
rrd.addRra("RRA:AVERAGE:0.5:12:1488");
rrd.addRra("RRA:AVERAGE:0.5:288:366");
rrd.addRra("RRA:MAX:0.5:288:366");
rrd.addRra("RRA:MIN:0.5:288:366");
collection.setRrd(rrd);
return collection;
}
Aggregations