parameters: (anomaly_entity, bisect_status=None)
return_statement: return alert_dict
docstring: Returns a dictionary for an Anomaly which can be encoded as JSON.
  
    Args:
      anomaly_entity: An Anomaly entity.
      bisect_status: String status of bisect run.
  
    Returns:
      A dictionary which is safe to be encoded as JSON.
docstring_summary: Returns a dictionary for an Anomaly which can be encoded as JSON.
docstring_tokens: Returns a dictionary for an Anomaly which can be encoded as JSON .
function: def GetAnomalyDict(anomaly_entity, bisect_status=None):
    """Returns a dictionary for an Anomaly which can be encoded as JSON.
  
    Args:
      anomaly_entity: An Anomaly entity.
      bisect_status: String status of bisect run.
  
    Returns:
      A dictionary which is safe to be encoded as JSON.
    """
    alert_dict = _AlertDict(anomaly_entity)
    alert_dict.update({
        'median_after_anomaly': anomaly_entity.median_after_anomaly,
        'median_before_anomaly': anomaly_entity.median_before_anomaly,
        'percent_changed': '%s' % anomaly_entity.GetDisplayPercentChanged(),
        'improvement': anomaly_entity.is_improvement,
        'bisect_status': bisect_status,
        'recovered': anomaly_entity.recovered,
    })
    return alert_dict
function_tokens: def GetAnomalyDict ( anomaly_entity , bisect_status = None ) : alert_dict = _AlertDict ( anomaly_entity ) alert_dict . update ( { 'median_after_anomaly' : anomaly_entity . median_after_anomaly , 'median_before_anomaly' : anomaly_entity . median_before_anomaly , 'percent_changed' : '%s' % anomaly_entity . GetDisplayPercentChanged ( ) , 'improvement' : anomaly_entity . is_improvement , 'bisect_status' : bisect_status , 'recovered' : anomaly_entity . recovered , } ) return alert_dict