Skip to content
This repository was archived by the owner on Oct 20, 2025. It is now read-only.
This repository was archived by the owner on Oct 20, 2025. It is now read-only.

about parameter bug in anomaly-detection-algorithm doc  #477

@Shuimo03

Description

@Shuimo03

Describe this problem

In the example and parameters about inputTimeSeries parameters and holoinsight-AI in the algorithm parameters do not correspond:

{
  "inputTimeSeries": {
    "1681710540000": 559,
    "1681710600000": 597,
    "1681710660000": 505,
    "1681710720000": 572,
    "1681710780000": 515,
    "1681710840000": 552,
    "1681710900000": 549,
    "1681710960000": 521,
    "1681711020000": 500,
    "1681711080000": 564,
    "1681711140000": 517,
    "1681711200000": 5000
  },
    "intervalTime": 60000,
    "detectTime": 1681711200000,
    "algorithmConfig": {
    "algorithmType": "up",
    "sensitivity": "mid"
  },
    "ruleConfig": {
    "defaultDuration": 1,
    "customChangeRate": 0.1
  }
}

inputTimeSeries is lo lowercase, but holoinsight-AI is uppercase

    def build_req(self):
        """
        Builds and returns an AD request object based on the input body.

        @return: The built AD request object.
        """
        # Data processing
        ts = self.body.get("InputTimeSeries")
        print("ts:", ts)
        detect_time = self.body.get("detectTime")
        period = self.body.get("intervalTime")
        data_by_data = self.data_process(ts, detect_time, period, detect_length=self.period_mapper(period))

        # Detect information
        algorithm_type = self.body.get("algorithmConfig").get("algorithmType")
        detect_info = DetectInfo(sensitive=self.body.get("algorithmConfig").get("sensitivity", "mid"),
                                 algorithm_type=algorithm_type
                                 )

        # Rule information
        if self.body.get("ruleConfig") is None:

Steps to reproduce

  1. running holoinsight-AI service
  2. input example
  3. get error result
    image

Expected behavior

No response

Additional Information

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions