func StartStep(stepData map[string][]*types.StepData, stepName string) {
	if len(stepName) == 0 {
		log.Error("error while updating step data for Granular Metrics: step name can't be empty for stepData")
	}
	var ok bool

	stepValues, ok := stepData[stepName]
	if !ok {
		stepValues = []*types.StepData{}
		stepData[stepName] = stepValues
	}
	stepValue := &types.StepData{}

	stepValue.StepName = stepName
	stepValue.RetryID = len(stepValues)
	stepValue.StartTime = time.Now().Unix()
	stepValue.Status = "Starting"
	stepValues = append(stepValues, stepValue)
	stepData[stepName] = stepValues
}
// StartStep start a step of dce, and add a new item into the values, key is the stepName
// In the map, key will be step, value will be each retry result, and duration.
StartStep start a step of dce, and add a new item into the values, key is the stepName
In the map, key will be step, value will be each retry result, and duration.
// StartStep start a step of dce and add a new item into the values key is the stepName // In the map key will be step value will be each retry result and duration .
func StartStep(stepData map[string][]*types.StepData, stepName string) {
	if len(stepName) == 0 {
		log.Error("error while updating step data for Granular Metrics: step name can't be empty for stepData")
	}
	var ok bool
	stepValues, ok := stepData[stepName]
	if !ok {
		stepValues = []*types.StepData{}
		stepData[stepName] = stepValues
	}
	stepValue := &types.StepData{}
	stepValue.StepName = stepName
	stepValue.RetryID = len(stepValues)
	stepValue.StartTime = time.Now().Unix()
	stepValue.Status = "Starting"
	stepValues = append(stepValues, stepValue)
	stepData[stepName] = stepValues
}
func StartStep ( stepData map [ string ] [ ] * types . StepData , stepName string ) { if len ( stepName ) == 0 { log . Error ( " " ) } var ok bool stepValues , ok := stepData [ stepName ] if ! ok { stepValues = [ ] * types . StepData { } stepData [ stepName ] = stepValues } stepValue := & types . StepData { } stepValue . StepName = stepName stepValue . RetryID = len ( stepValues ) stepValue . StartTime = time . Now ( ) . Unix ( ) stepValue . Status = " " stepValues = append ( stepValues , stepValue ) stepData [ stepName ] = stepValues }
StartStep start a step of dce, and add a new item into the values, key is the stepName
In the map, key will be step, value will be each retry result, and duration.
StartStep start a step of dce and add a new item into the values key is the stepName In the map key will be step value will be each retry result and duration .