test_class.declarator: AGENT_ID = ""
test_class.modifier: private static final
test_class.original_string: private static final String AGENT_ID = "";
test_class.type: String
test_class.var_name: AGENT_ID
test_class.declarator: dataSource
test_class.modifier: private
test_class.original_string: private DataSource dataSource;
test_class.type: DataSource
test_class.var_name: dataSource
test_class.declarator: incidentDao
test_class.modifier: private
test_class.original_string: private IncidentDao incidentDao;
test_class.type: IncidentDao
test_class.var_name: incidentDao
test_class.file: agent/embedded/src/test/java/org/glowroot/agent/embedded/repo/IncidentDaoTest.java
test_class.identifier: IncidentDaoTest
test_case.body: @Test
      public void shouldNotExist() throws Exception {
          AlertCondition alertCondition = AlertCondition.newBuilder()
                  .setMetricCondition(MetricCondition.newBuilder()
                          .setMetric("transaction:x-percentile")
                          .setTransactionType("Web")
                          .setPercentile(OptionalDouble.newBuilder().setValue(95))
                          .setThreshold(SECONDS.toNanos(2))
                          .setTimePeriodSeconds(60)
                          .setMinTransactionCount(100)
                          .build())
                  .build();
          assertThat(incidentDao.readOpenIncident(AGENT_ID, alertCondition, AlertSeverity.HIGH))
                  .isNull();
      }
test_case.class_method_signature: IncidentDaoTest.shouldNotExist()
test_case.full_signature: @Test public void shouldNotExist()
test_case.identifier: shouldNotExist
test_case.invocations: build setMetricCondition newBuilder build setMinTransactionCount setTimePeriodSeconds setThreshold setPercentile setTransactionType setMetric newBuilder setValue newBuilder toNanos isNull assertThat readOpenIncident
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldNotExist()
focal_class.declarator: AGENT_ID = ""
focal_class.modifier: private static final
focal_class.original_string: private static final String AGENT_ID = "";
focal_class.type: String
focal_class.var_name: AGENT_ID
focal_class.declarator: incidentColumns = ImmutableList.<Column>of(
              ImmutableColumn.of("open_time", ColumnType.BIGINT),
              ImmutableColumn.of("resolve_time", ColumnType.BIGINT),
              ImmutableColumn.of("condition", ColumnType.VARBINARY),
              ImmutableColumn.of("severity", ColumnType.VARCHAR),
              ImmutableColumn.of("notification", ColumnType.VARBINARY))
focal_class.modifier: private static final
focal_class.original_string: private static final ImmutableList<Column> incidentColumns = ImmutableList.<Column>of(
              ImmutableColumn.of("open_time", ColumnType.BIGINT),
              ImmutableColumn.of("resolve_time", ColumnType.BIGINT),
              ImmutableColumn.of("condition", ColumnType.VARBINARY),
              ImmutableColumn.of("severity", ColumnType.VARCHAR),
              ImmutableColumn.of("notification", ColumnType.VARBINARY));
focal_class.type: ImmutableList<Column>
focal_class.var_name: incidentColumns
focal_class.declarator: incidentIndexes = ImmutableList.<Index>of(
              ImmutableIndex.of("incident_resolve_time_idx", ImmutableList.of("resolve_time")),
              ImmutableIndex.of("incident_condition_idx", ImmutableList.of("condition")))
focal_class.modifier: private static final
focal_class.original_string: private static final ImmutableList<Index> incidentIndexes = ImmutableList.<Index>of(
              ImmutableIndex.of("incident_resolve_time_idx", ImmutableList.of("resolve_time")),
              ImmutableIndex.of("incident_condition_idx", ImmutableList.of("condition")));
focal_class.type: ImmutableList<Index>
focal_class.var_name: incidentIndexes
focal_class.declarator: dataSource
focal_class.modifier: private final
focal_class.original_string: private final DataSource dataSource;
focal_class.type: DataSource
focal_class.var_name: dataSource
focal_class.file: agent/embedded/src/main/java/org/glowroot/agent/embedded/repo/IncidentDao.java
focal_class.identifier: IncidentDao
focal_class.interfaces: implements IncidentRepository
focal_class.class_method_signature: IncidentDao.IncidentDao(DataSource dataSource)
focal_class.full_signature:   IncidentDao(DataSource dataSource)
focal_class.identifier: IncidentDao
focal_class.parameters: (DataSource dataSource)
focal_class.signature:  IncidentDao(DataSource dataSource)
focal_class.class_method_signature: IncidentDao.insertOpenIncident(String agentRollupId, AlertCondition condition,
              AlertSeverity severity, AlertNotification notification, long openTime)
focal_class.full_signature: @Override public void insertOpenIncident(String agentRollupId, AlertCondition condition,
              AlertSeverity severity, AlertNotification notification, long openTime)
focal_class.identifier: insertOpenIncident
focal_class.modifiers: @Override public
focal_class.parameters: (String agentRollupId, AlertCondition condition,
              AlertSeverity severity, AlertNotification notification, long openTime)
focal_class.return: void
focal_class.signature: void insertOpenIncident(String agentRollupId, AlertCondition condition,
              AlertSeverity severity, AlertNotification notification, long openTime)
focal_class.class_method_signature: IncidentDao.readOpenIncident(String agentRollupId, AlertCondition condition,
              AlertSeverity severity)
focal_class.full_signature: @Override public @Nullable OpenIncident readOpenIncident(String agentRollupId, AlertCondition condition,
              AlertSeverity severity)
focal_class.identifier: readOpenIncident
focal_class.modifiers: @Override public @Nullable
focal_class.parameters: (String agentRollupId, AlertCondition condition,
              AlertSeverity severity)
focal_class.return: OpenIncident
focal_class.signature: OpenIncident readOpenIncident(String agentRollupId, AlertCondition condition,
              AlertSeverity severity)
focal_class.class_method_signature: IncidentDao.readOpenIncidents(String agentRollupId)
focal_class.full_signature: @Override public List<OpenIncident> readOpenIncidents(String agentRollupId)
focal_class.identifier: readOpenIncidents
focal_class.modifiers: @Override public
focal_class.parameters: (String agentRollupId)
focal_class.return: List<OpenIncident>
focal_class.signature: List<OpenIncident> readOpenIncidents(String agentRollupId)
focal_class.class_method_signature: IncidentDao.readAllOpenIncidents()
focal_class.full_signature: @Override public List<OpenIncident> readAllOpenIncidents()
focal_class.identifier: readAllOpenIncidents
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<OpenIncident>
focal_class.signature: List<OpenIncident> readAllOpenIncidents()
focal_class.class_method_signature: IncidentDao.resolveIncident(OpenIncident incident, long resolveTime)
focal_class.full_signature: @Override public void resolveIncident(OpenIncident incident, long resolveTime)
focal_class.identifier: resolveIncident
focal_class.modifiers: @Override public
focal_class.parameters: (OpenIncident incident, long resolveTime)
focal_class.return: void
focal_class.signature: void resolveIncident(OpenIncident incident, long resolveTime)
focal_class.class_method_signature: IncidentDao.readResolvedIncidents(long from)
focal_class.full_signature: @Override public List<ResolvedIncident> readResolvedIncidents(long from)
focal_class.identifier: readResolvedIncidents
focal_class.modifiers: @Override public
focal_class.parameters: (long from)
focal_class.return: List<ResolvedIncident>
focal_class.signature: List<ResolvedIncident> readResolvedIncidents(long from)
focal_class.class_method_signature: IncidentDao.deleteResolvedIncidentsBefore(long resolvedTime)
focal_class.full_signature:  void deleteResolvedIncidentsBefore(long resolvedTime)
focal_class.identifier: deleteResolvedIncidentsBefore
focal_class.parameters: (long resolvedTime)
focal_class.return: void
focal_class.signature: void deleteResolvedIncidentsBefore(long resolvedTime)
focal_method.body: @Override
      public @Nullable OpenIncident readOpenIncident(String agentRollupId, AlertCondition condition,
              AlertSeverity severity) throws Exception {
          return dataSource.query(new SingleOpenIncident(condition, severity));
      }
focal_method.class_method_signature: IncidentDao.readOpenIncident(String agentRollupId, AlertCondition condition,
              AlertSeverity severity)
focal_method.full_signature: @Override public @Nullable OpenIncident readOpenIncident(String agentRollupId, AlertCondition condition,
              AlertSeverity severity)
focal_method.identifier: readOpenIncident
focal_method.invocations: query
focal_method.modifiers: @Override public @Nullable
focal_method.parameters: (String agentRollupId, AlertCondition condition,
              AlertSeverity severity)
focal_method.return: OpenIncident
focal_method.signature: OpenIncident readOpenIncident(String agentRollupId, AlertCondition condition,
              AlertSeverity severity)