mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-05 14:54:50 +08:00
92 lines
9.9 KiB
JSON
92 lines
9.9 KiB
JSON
|
|
{
|
|||
|
|
"sections": [
|
|||
|
|
"title",
|
|||
|
|
"description",
|
|||
|
|
"supported_soap_calls",
|
|||
|
|
"supported_rest_api_http_methods",
|
|||
|
|
"fields",
|
|||
|
|
"wsdl_segment"
|
|||
|
|
],
|
|||
|
|
"title": "TraceFlag - Tooling API",
|
|||
|
|
"description": "Represents a trace flag that triggers an Apex debug log at the specified logging level.",
|
|||
|
|
"supported_soap_calls": "`create()`, `delete()`, `describeSObjects()`, `query()`, `retrieve()`, `update()`, `upsert()`",
|
|||
|
|
"supported_rest_api_http_methods": "`Query`, `GET`, `POST`, `PATCH`, `DELETE`",
|
|||
|
|
"fields_columns": [
|
|||
|
|
"type",
|
|||
|
|
"properties",
|
|||
|
|
"description"
|
|||
|
|
],
|
|||
|
|
"fields": {
|
|||
|
|
"ApexCode": {
|
|||
|
|
"type": "picklist",
|
|||
|
|
"properties": "Create, Filter, Group, Restricted picklist, Sort, Update",
|
|||
|
|
"description": "The log category level for Apex code. Includes information about Apex code. Can also include log messages generated by data manipulation language (DML) statements, inline SOQL or SOSL queries, the start and completion of triggers, the start and completion of test methods, and so on. The following are valid values. NONE ERROR WARN INFO DEBUG FINE FINER FINEST This field is required."
|
|||
|
|
},
|
|||
|
|
"ApexProfiling": {
|
|||
|
|
"type": "picklist",
|
|||
|
|
"properties": "Create, Filter, Group, Restricted picklist, Sort, Update",
|
|||
|
|
"description": "The log category level for profiling information. Includes cumulative profiling information, such as the limits for your namespace, the number of emails sent, and so on. The following are valid values. NONE ERROR WARN INFO DEBUG FINE FINER FINEST This field is required."
|
|||
|
|
},
|
|||
|
|
"Callout": {
|
|||
|
|
"type": "picklist",
|
|||
|
|
"properties": "Create, Filter, Group, Restricted picklist, Sort, Update",
|
|||
|
|
"description": "The log category level for callouts. Includes the request-response XML that the server is sending and receiving from an external Web service. The request-response XML is useful when debugging issues related to SOAP API calls. The following are valid values. NONE ERROR WARN INFO DEBUG FINE FINER FINEST This field is required."
|
|||
|
|
},
|
|||
|
|
"Database": {
|
|||
|
|
"type": "picklist",
|
|||
|
|
"properties": "Create, Filter, Group, Restricted picklist, Sort, Update",
|
|||
|
|
"description": "The log category for database activity. Includes information about database activity, including every DML statement or inline SOQL or SOSL query. The following are valid values. NONE ERROR WARN INFO DEBUG FINE FINER FINEST This field is required."
|
|||
|
|
},
|
|||
|
|
"DebugLevelId": {
|
|||
|
|
"type": "reference",
|
|||
|
|
"properties": "Create, Filter, Group, Nillable, Sort, Update",
|
|||
|
|
"description": "The ID of the debug level assigned to this trace flag. A debug level, which is a set of log category levels, can be assigned to multiple trace flags."
|
|||
|
|
},
|
|||
|
|
"ExpirationDate": {
|
|||
|
|
"type": "dateTime",
|
|||
|
|
"properties": "Create, Filter, Sort, Update",
|
|||
|
|
"description": "The date and time that the trace flag expires. ExpirationDate must be less than 24 hours after StartDate. Only one trace flag per traced entity can be active at a time. If StartDate is null, the current time is used, and the ExpirationDate must be less than 24 hours from the current time.This field is required."
|
|||
|
|
},
|
|||
|
|
"LogType": {
|
|||
|
|
"type": "picklist",
|
|||
|
|
"properties": "Create, Filter, Group, Restricted picklist, Sort",
|
|||
|
|
"description": "The type of log to generate. The following are valid values. CLASS_TRACING DEVELOPER_LOG PROFILING (reserved for future use) USER_DEBUG When you open the Developer Console, it sets a DEVELOPER_LOG trace flag to log your activities. USER_DEBUG trace flags cause logging of an individual user’s activities. CLASS_TRACING trace flags override logging levels for Apex classes and triggers, but don’t generate logs. This field is required."
|
|||
|
|
},
|
|||
|
|
"ScopeId": {
|
|||
|
|
"type": "reference",
|
|||
|
|
"properties": "Create, Filter, Group, Nillable, Sort, Update",
|
|||
|
|
"description": "Deprecated. This field is available in API version 34.0 and earlier. A reference to a user. This field is used with the TracedEntityID field. When the value is user, the actions of the user or entity specified by TracedEntityID are traced to the system log at the described level. System logs are visible only to you. Use this scope for class-level filtering. If there are both user and entity-level flags, the user flags take precedence until a method from a class with an entity trace flag is entered. When the method returns, the user trace flags are restored. When the value is emptyid, the user’s actions are traced to the org’s debug log at the described level. Debug logs are visible to all administrators. This option is only available if TracedEntityID references a user (not an Apex class or Apex trigger). The variable emptyid can be the value 0000000000000000 or null. The scope defined here is reflected in the ApexLog Location field."
|
|||
|
|
},
|
|||
|
|
"StartDate": {
|
|||
|
|
"type": "dateTime",
|
|||
|
|
"properties": "Create, Filter, Group, Nillable, Sort, Update",
|
|||
|
|
"description": "The date and time when the trace flag takes effect. ExpirationDate must be less than 24 hours after StartDate. Only one trace flag per traced entity can be active at a time. If StartDate is null, ExpirationDate must be less than 24 hours from the current time."
|
|||
|
|
},
|
|||
|
|
"System": {
|
|||
|
|
"type": "picklist",
|
|||
|
|
"properties": "Create, Filter, Group, Restricted picklist, Sort, Update",
|
|||
|
|
"description": "The log category level for calls to all system methods, such as the System.debug method. The following are valid values. NONE ERROR WARN INFO DEBUG FINE FINER FINEST This field is required."
|
|||
|
|
},
|
|||
|
|
"TracedEntityId": {
|
|||
|
|
"type": "reference",
|
|||
|
|
"properties": "Create, Filter, Group, Sort, Update",
|
|||
|
|
"description": "A reference to the following: Apex class Apex trigger User This field is used with the LogType field. This field is required."
|
|||
|
|
},
|
|||
|
|
"Validation": {
|
|||
|
|
"type": "picklist",
|
|||
|
|
"properties": "Create, Filter, Group, Restricted picklist, Sort, Update",
|
|||
|
|
"description": "The log category level for validation rules. Includes information about validation rules, such as the name of the rule, or whether the rule evaluated true or false. The following are valid values. NONE ERROR WARN INFO DEBUG FINE FINER FINEST This field is required."
|
|||
|
|
},
|
|||
|
|
"Visualforce": {
|
|||
|
|
"type": "picklist",
|
|||
|
|
"properties": "Create, Filter, Group, Restricted picklist, Sort, Update",
|
|||
|
|
"description": "The log category level for Visualforce. Includes information about Visualforce events, including serialization and deserialization of the view state or the evaluation of a formula field in a Visualforce page. The following are valid values. NONE ERROR WARN INFO DEBUG FINE FINER FINEST This field is required."
|
|||
|
|
},
|
|||
|
|
"Workflow": {
|
|||
|
|
"type": "picklist",
|
|||
|
|
"properties": "Create, Filter, Group, Restricted picklist, Sort, Update",
|
|||
|
|
"description": "The log category level for workflow rules. Includes information for workflow rules, such as the rule name and the actions taken. This field is required. The following are valid values. NONE ERROR WARN INFO DEBUG FINE FINER FINEST"
|
|||
|
|
}
|
|||
|
|
},
|
|||
|
|
"wsdl_segment": "```xml\n<xsd:simpleType name=\"ID\">\n <xsd:restriction base=\"xsd:string\">\n <xsd:length value=\"18\"/>\n <xsd:pattern value=\"[a-zA-Z0-9]{18}\"/>\n </xsd:restriction>\n</xsd:simpleType>\n<xsd:complexType name=\"TraceFlag\">\n <xsd:complexContent>\n <xsd:extension base=\"ens:sObject\">\n <xsd:sequence>\n <xsd:element name=\"ApexCode\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n <xsd:element name=\"ApexProfiling\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n <xsd:element name=\"Callout\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n <xsd:element name=\"CreatedBy\" minOccurs=\"0\" type=\"ens:User\" nillable=\"true\"/>\n <xsd:element name=\"CreatedById\" minOccurs=\"0\" type=\"tns:ID\" nillable=\"true\"/>\n <xsd:element name=\"CreatedDate\" minOccurs=\"0\" type=\"xsd:dateTime\" nillable=\"true\"/>\n <xsd:element name=\"DataAccess\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n <xsd:element name=\"Database\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n <xsd:element name=\"DebugLevel\" minOccurs=\"0\" type=\"ens:DebugLevel\" nillable=\"true\"/>\n <xsd:element name=\"DebugLevelId\" minOccurs=\"0\" type=\"tns:ID\" nillable=\"true\"/>\n <xsd:element name=\"ExpirationDate\" minOccurs=\"0\" type=\"xsd:dateTime\" nillable=\"true\"/>\n <xsd:element name=\"IsDeleted\" minOccurs=\"0\" type=\"xsd:boolean\" nillable=\"true\"/>\n <xsd:element name=\"LastModifiedBy\" minOccurs=\"0\" type=\"ens:User\" nillable=\"true\"/>\n <xsd:element name=\"LastModifiedById\" minOccurs=\"0\" type=\"tns:ID\" nillable=\"true\"/>\n <xsd:element name=\"LastModifiedDate\" minOccurs=\"0\" type=\"xsd:dateTime\" nillable=\"true\"/>\n <xsd:element name=\"LogType\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n <xsd:element name=\"Nba\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n <xsd:element name=\"StartDate\" minOccurs=\"0\" type=\"xsd:dateTime\" nillable=\"true\"/>\n <xsd:element name=\"System\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n <xsd:element name=\"SystemModstamp\" minOccurs=\"0\" type=\"xsd:dateTime\" nillable=\"true\"/>\n <xsd:element name=\"TracedEntity\" minOccurs=\"0\" type=\"ens:sObject\" nillable=\"true\"/>\n <xsd:element name=\"TracedEntityId\" minOccurs=\"0\" type=\"tns:ID\" nillable=\"true\"/>\n <xsd:element name=\"Validation\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n <xsd:element name=\"Visualforce\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n <xsd:element name=\"Wave\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n <xsd:element name=\"Workflow\" minOccurs=\"0\" type=\"xsd:string\" nillable=\"true\"/>\n </xsd:sequence>\n </xsd:extension>\n </xsd:complexContent>\n</xsd:complexType>\n```"
|
|||
|
|
}
|