MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / MessageTrend

Method MessageTrend

module/monitor/iml.go:936–951  ·  view source on GitHub ↗
(ctx context.Context, input *monitor_dto.CommonInput)

Source from the content-addressed store, hash-verified

934}
935
936func (i *imlMonitorStatisticModule) MessageTrend(ctx context.Context, input *monitor_dto.CommonInput) (*monitor_dto.MonMessageTrend, string, error) {
937 clusterId := cluster.DefaultClusterID
938 wheres, err := i.genCommonWheres(ctx, clusterId)
939 if err != nil {
940 return nil, "", err
941 }
942 executor, err := i.getExecutor(ctx, clusterId)
943 if err != nil {
944 return nil, "", err
945 }
946 result, timeInterval, err := executor.MessageTrend(ctx, formatTimeByMinute(input.Start), formatTimeByMinute(input.End), wheres)
947 if err != nil {
948 return nil, "", err
949 }
950 return monitor_dto.ToMonMessageTrend(result), timeInterval, nil
951}
952
953func (i *imlMonitorStatisticModule) InvokeTrend(ctx context.Context, input *monitor_dto.CommonInput) (*monitor_dto.MonInvokeCountTrend, string, error) {
954 clusterId := cluster.DefaultClusterID

Callers

nothing calls this directly

Calls 4

genCommonWheresMethod · 0.95
getExecutorMethod · 0.95
formatTimeByMinuteFunction · 0.70
MessageTrendMethod · 0.65

Tested by

no test coverage detected