/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
export const ProfileDataMode: any[] = [
  { label: "Include Children", value: "include" },
  { label: "Exclude Children", value: "exclude" },
];
export const ProfileDisplayMode: any[] = [
  { label: "Tree Graph", value: "tree" },
  { label: "Flame Graph", value: "flame" },
];
export const NewTaskField = {
  service: { key: "", label: "None" },
  monitorTime: { key: "0", label: "monitor now" },
  monitorDuration: { key: 5, label: "5 min" },
  minThreshold: 0,
  dumpPeriod: { key: 10, label: "10ms" },
  endpointName: "",
  maxSamplingCount: { key: 5, label: "5" },
};

export const InitTaskField = {
  serviceSource: [{ key: "", label: "None" }],
  monitorTimeEn: [
    { value: "0", label: "monitor now" },
    { value: "1", label: "set start time" },
  ],
  monitorTimeCn: [
    { value: "0", label: "此刻" },
    { value: "1", label: "设置时间" },
  ],
  monitorDuration: [
    { value: "5", label: "5 min" },
    { value: "10", label: "10 min" },
    { value: "15", label: "15 min" },
  ],
  dumpPeriod: [
    { value: "10", label: "10 ms" },
    { value: "20", label: "20 ms" },
    { value: "50", label: "50 ms" },
    { value: "100", label: "100 ms" },
  ],
  maxSamplingCount: [
    { value: "1", label: "1" },
    { value: "2", label: "2" },
    { value: "3", label: "3" },
    { value: "4", label: "4" },
    { value: "5", label: "5" },
    { value: "6", label: "6" },
    { value: "7", label: "7" },
    { value: "8", label: "8" },
    { value: "9", label: "9" },
  ],
};
