|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | +/** |
| 4 | + * apmplus_server |
| 5 | + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) |
| 6 | + * |
| 7 | + * OpenAPI spec version: common-version |
| 8 | + * |
| 9 | + * |
| 10 | + * NOTE: This class is auto generated by the swagger code generator program. |
| 11 | + * https://github.com/swagger-api/swagger-codegen.git |
| 12 | + * Do not edit the class manually. |
| 13 | + */ |
| 14 | + |
| 15 | +import { Client, ClientConfig, Command, buildRequestConfigFromMetaPath, CommandOutput } from '@volcengine/sdk-core'; |
| 16 | + |
| 17 | +import { GetTraceDetailRequest } from './types/index'; |
| 18 | +import { GetTraceDetailResponse } from './types/index'; |
| 19 | +import { GetTraceTrendRequest } from './types/index'; |
| 20 | +import { GetTraceTrendResponse } from './types/index'; |
| 21 | +import { ListSpanRequest } from './types/index'; |
| 22 | +import { ListSpanResponse } from './types/index'; |
| 23 | + |
| 24 | +// ============================================================================ |
| 25 | +// Output Type Definitions |
| 26 | +// ============================================================================ |
| 27 | +export type GetTraceDetailCommandOutput = CommandOutput<GetTraceDetailResponse>; |
| 28 | +export type GetTraceTrendCommandOutput = CommandOutput<GetTraceTrendResponse>; |
| 29 | +export type ListSpanCommandOutput = CommandOutput<ListSpanResponse>; |
| 30 | + |
| 31 | +/** |
| 32 | + * APMPLUSSERVERClient Service Client |
| 33 | + */ |
| 34 | +export class APMPLUSSERVERClient extends Client { |
| 35 | + constructor(config: ClientConfig = {}) { |
| 36 | + super({ |
| 37 | + protocol: 'https', |
| 38 | + region: 'cn-beijing', |
| 39 | + ...config, |
| 40 | + }); |
| 41 | + } |
| 42 | +} |
| 43 | + |
| 44 | +/** |
| 45 | + * Command to GetTraceDetail |
| 46 | + */ |
| 47 | +export class GetTraceDetailCommand extends Command< |
| 48 | + GetTraceDetailRequest, |
| 49 | + GetTraceDetailCommandOutput, |
| 50 | + 'GetTraceDetailCommand' |
| 51 | +> { |
| 52 | + static readonly metaPath = '/GetTraceDetail/2026-01-01/apmplus_server/post/application_json/'; |
| 53 | + |
| 54 | + constructor(input: GetTraceDetailRequest) { |
| 55 | + super(input); |
| 56 | + this.requestConfig = buildRequestConfigFromMetaPath(GetTraceDetailCommand.metaPath); |
| 57 | + } |
| 58 | +} |
| 59 | +/** |
| 60 | + * Command to GetTraceTrend |
| 61 | + */ |
| 62 | +export class GetTraceTrendCommand extends Command< |
| 63 | + GetTraceTrendRequest, |
| 64 | + GetTraceTrendCommandOutput, |
| 65 | + 'GetTraceTrendCommand' |
| 66 | +> { |
| 67 | + static readonly metaPath = '/GetTraceTrend/2026-01-01/apmplus_server/post/application_json/'; |
| 68 | + |
| 69 | + constructor(input: GetTraceTrendRequest) { |
| 70 | + super(input); |
| 71 | + this.requestConfig = buildRequestConfigFromMetaPath(GetTraceTrendCommand.metaPath); |
| 72 | + } |
| 73 | +} |
| 74 | +/** |
| 75 | + * Command to ListSpan |
| 76 | + */ |
| 77 | +export class ListSpanCommand extends Command< |
| 78 | + ListSpanRequest, |
| 79 | + ListSpanCommandOutput, |
| 80 | + 'ListSpanCommand' |
| 81 | +> { |
| 82 | + static readonly metaPath = '/ListSpan/2026-01-01/apmplus_server/post/application_json/'; |
| 83 | + |
| 84 | + constructor(input: ListSpanRequest) { |
| 85 | + super(input); |
| 86 | + this.requestConfig = buildRequestConfigFromMetaPath(ListSpanCommand.metaPath); |
| 87 | + } |
| 88 | +} |
| 89 | + |
| 90 | +export default { |
| 91 | + APMPLUSSERVERClient, |
| 92 | + GetTraceDetailCommand, |
| 93 | + GetTraceTrendCommand, |
| 94 | + ListSpanCommand, |
| 95 | +}; |
0 commit comments