// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ListIntegrationPolicyCustomScrapeJobRulesResponseBodyCustomScrapeJobRulesScrapeConfigs extends $dara.Model { /** * @remarks * The scrape job name. * * @example * mysql-exporter */ jobName?: string; /** * @remarks * The detailed information. * * @example * successful */ message?: string; /** * @remarks * The metrics path. * * @example * /metrics */ metricsPath?: string; /** * @remarks * The invocation method. * * @example * http */ scheme?: string; /** * @remarks * The scrape interval. * * @example * 30s */ scrapeInterval?: string; /** * @remarks * The scrape timeout period. * * @example * 60s */ scrapeTimeout?: string; /** * @remarks * The service discovery configurations. */ serviceDiscoveryConfigs?: string[]; static names(): { [key: string]: string } { return { jobName: 'jobName', message: 'message', metricsPath: 'metricsPath', scheme: 'scheme', scrapeInterval: 'scrapeInterval', scrapeTimeout: 'scrapeTimeout', serviceDiscoveryConfigs: 'serviceDiscoveryConfigs', }; } static types(): { [key: string]: any } { return { jobName: 'string', message: 'string', metricsPath: 'string', scheme: 'string', scrapeInterval: 'string', scrapeTimeout: 'string', serviceDiscoveryConfigs: { 'type': 'array', 'itemType': 'string' }, }; } validate() { if(Array.isArray(this.serviceDiscoveryConfigs)) { $dara.Model.validateArray(this.serviceDiscoveryConfigs); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListIntegrationPolicyCustomScrapeJobRulesResponseBodyCustomScrapeJobRules extends $dara.Model { /** * @remarks * The addon name. * * @example * cloud-ecs */ addonName?: string; /** * @remarks * The addon release name. * * @example * release-12345678 */ addonReleaseName?: string; /** * @remarks * The addon version. * * @example * 0.0.1 */ addonVersion?: string; /** * @remarks * The configuration YAML. * * @example * scrape_cofnigs: * - jobxxxxxx */ configYaml?: string; /** * @remarks * The enabling status. * * @example * mini */ enableStatus?: string; /** * @remarks * The encrypted YAML. * * @example * true */ encryptYaml?: boolean; /** * @remarks * The number of matched pods. * * @example * 1 */ matchedPodCount?: number; /** * @remarks * The detailed information. * * @example * ok */ message?: string; /** * @remarks * The service name. * * @example * dlab1 */ name?: string; /** * @remarks * The namespace. * * @example * prod-data */ namespace?: string; /** * @remarks * The custom configurations. */ scrapeConfigs?: ListIntegrationPolicyCustomScrapeJobRulesResponseBodyCustomScrapeJobRulesScrapeConfigs[]; static names(): { [key: string]: string } { return { addonName: 'addonName', addonReleaseName: 'addonReleaseName', addonVersion: 'addonVersion', configYaml: 'configYaml', enableStatus: 'enableStatus', encryptYaml: 'encryptYaml', matchedPodCount: 'matchedPodCount', message: 'message', name: 'name', namespace: 'namespace', scrapeConfigs: 'scrapeConfigs', }; } static types(): { [key: string]: any } { return { addonName: 'string', addonReleaseName: 'string', addonVersion: 'string', configYaml: 'string', enableStatus: 'string', encryptYaml: 'boolean', matchedPodCount: 'number', message: 'string', name: 'string', namespace: 'string', scrapeConfigs: { 'type': 'array', 'itemType': ListIntegrationPolicyCustomScrapeJobRulesResponseBodyCustomScrapeJobRulesScrapeConfigs }, }; } validate() { if(Array.isArray(this.scrapeConfigs)) { $dara.Model.validateArray(this.scrapeConfigs); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListIntegrationPolicyCustomScrapeJobRulesResponseBody extends $dara.Model { /** * @remarks * The cluster ID. * * @example * et15prod-et15storage */ clusterId?: string; /** * @remarks * The custom scrape job rules. */ customScrapeJobRules?: ListIntegrationPolicyCustomScrapeJobRulesResponseBodyCustomScrapeJobRules[]; /** * @remarks * The policy ID. * * @example * policy-15abcc24c06f4797832b5954198e1ed1 */ policyId?: string; /** * @remarks * Id of the request * * @example * 0CEC5375-C554-562B-A65F-9A629907C1F0 */ requestId?: string; static names(): { [key: string]: string } { return { clusterId: 'clusterId', customScrapeJobRules: 'customScrapeJobRules', policyId: 'policyId', requestId: 'requestId', }; } static types(): { [key: string]: any } { return { clusterId: 'string', customScrapeJobRules: { 'type': 'array', 'itemType': ListIntegrationPolicyCustomScrapeJobRulesResponseBodyCustomScrapeJobRules }, policyId: 'string', requestId: 'string', }; } validate() { if(Array.isArray(this.customScrapeJobRules)) { $dara.Model.validateArray(this.customScrapeJobRules); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }